"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/identity/generator.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Ussuri" series (latest release).

generator.py  (keystone-16.0.1):generator.py  (keystone-17.0.0)
skipping to change at line 19 skipping to change at line 19
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
"""ID Generator provider interface.""" """ID Generator provider interface."""
import abc import abc
import six
from keystone.common import manager from keystone.common import manager
import keystone.conf import keystone.conf
from keystone import exception from keystone import exception
CONF = keystone.conf.CONF CONF = keystone.conf.CONF
class Manager(manager.Manager): class Manager(manager.Manager):
"""Default pivot point for the identifier generator backend.""" """Default pivot point for the identifier generator backend."""
driver_namespace = 'keystone.identity.id_generator' driver_namespace = 'keystone.identity.id_generator'
_provides_api = 'id_generator_api' _provides_api = 'id_generator_api'
def __init__(self): def __init__(self):
super(Manager, self).__init__(CONF.identity_mapping.generator) super(Manager, self).__init__(CONF.identity_mapping.generator)
@six.add_metaclass(abc.ABCMeta) class IDGenerator(object, metaclass=abc.ABCMeta):
class IDGenerator(object):
"""Interface description for an ID Generator provider.""" """Interface description for an ID Generator provider."""
@abc.abstractmethod @abc.abstractmethod
def generate_public_ID(self, mapping): def generate_public_ID(self, mapping):
"""Return a Public ID for the given mapping dict. """Return a Public ID for the given mapping dict.
:param dict mapping: The items to be hashed. :param dict mapping: The items to be hashed.
The ID must be reproducible and no more than 64 chars in length. The ID must be reproducible and no more than 64 chars in length.
The ID generated should be independent of the order of the items The ID generated should be independent of the order of the items
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)