Bases: object
Mixin so classes can register and run hooks.
Bind CLI arguments to a shell.py do_foo function.
Decorator for CLI args.
Encode the data using the base64 codec.
Helper to run an action on many resources.
Helper to run an action with return message.
Encode the data using the base64 codec.
Returns environment variables.
Returns the first environment variable set if none are non-empty, defaults to ‘’ or keyword arg default
Helper for the _find_* methods.
This method should be replaced with osc_utils.find_resource()
Retrieves service type from function.
Returns validation of a value as a UUID.
For our purposes, a UUID is a canonical form string: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
Decorator to mark authentication-non-required.
Checks to see if the function is marked as not requiring authentication with the @unauthenticated decorator. Returns True if decorator is set to True, False otherwise.
Like issubclass, but will just return False if not a class.
Adds ‘service_type’ attribute to decorated function.
Usage:
@service_type('database')
def mymethod(f):
...
Adds ‘unauthenticated’ attribute to decorated function.
Usage:
@unauthenticated
def mymethod(f):
...
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.