DockerCredentials¶
- class controller.models.domain.docker.DockerCredentials(username, password)¶
Bases:
object
Holds the credentials for one Docker API server.
Attributes Summary
Authentication string for
Authorization
header.Credentials in encoded form suitable for
Authorization
.Methods Summary
from_config
(config)Create from a Docker config entry (such as a pull secret).
Convert the credentials to a Docker config entry.
Attributes Documentation
- authorization¶
Authentication string for
Authorization
header.
- credentials¶
Credentials in encoded form suitable for
Authorization
.
Methods Documentation
- classmethod from_config(config)¶
Create from a Docker config entry (such as a pull secret).
This requires the
auth
field be set and ignores theusername
andpassword
field.