class documentation

class AuthConfig(dict): (source)

View In Hierarchy

Undocumented

Class Method load_config Loads authentication data from a Docker configuration file in the given root directory or if config_path is passed use given path. Lookup priority: explicit config_path parameter > DOCKER_CONFIG environment variable > ~/...
Class Method parse_auth Parses authentication entries
Method __init__ Undocumented
Method add_auth Undocumented
Method get_all_credentials Undocumented
Method get_credential_store Undocumented
Method resolve_authconfig Returns the authentication data from the given auth configuration for a specific registry. As with the Docker client, legacy entries in the config with full URLs are stripped down to hostnames before checking for a match...
Property auths Undocumented
Property cred_helpers Undocumented
Property creds_store Undocumented
Property is_empty Undocumented
Method _get_store_instance Undocumented
Method _resolve_authconfig_credstore Undocumented
Instance Variable _credstore_env Undocumented
Instance Variable _stores Undocumented
@classmethod
def load_config(cls, config_path, config_dict, credstore_env=None): (source)

Loads authentication data from a Docker configuration file in the given root directory or if config_path is passed use given path. Lookup priority: explicit config_path parameter > DOCKER_CONFIG environment variable > ~/.docker/config.json > ~/.dockercfg

@classmethod
def parse_auth(cls, entries, raise_on_error=False): (source)

Parses authentication entries Args: entries: Dict of authentication entries. raise_on_error: If set to true, an invalid format will raise InvalidConfigFile Returns: Authentication registry.

def __init__(self, dct, credstore_env=None): (source)

Undocumented

def add_auth(self, reg, data): (source)

Undocumented

def get_all_credentials(self): (source)

Undocumented

def get_credential_store(self, registry): (source)

Undocumented

def resolve_authconfig(self, registry=None): (source)

Returns the authentication data from the given auth configuration for a specific registry. As with the Docker client, legacy entries in the config with full URLs are stripped down to hostnames before checking for a match. Returns None if no match was found.

Undocumented

@property
cred_helpers = (source)

Undocumented

@property
creds_store = (source)

Undocumented

Undocumented

def _get_store_instance(self, name): (source)

Undocumented

def _resolve_authconfig_credstore(self, registry, credstore_name): (source)

Undocumented

_credstore_env = (source)

Undocumented

Undocumented