auth.go 761 B

12345678910111213141516171819202122
  1. package types
  2. // AuthConfig contains authorization information for connecting to a Registry
  3. type AuthConfig struct {
  4. Username string `json:"username,omitempty"`
  5. Password string `json:"password,omitempty"`
  6. Auth string `json:"auth,omitempty"`
  7. // Email is an optional value associated with the username.
  8. // This field is deprecated and will be removed in a later
  9. // version of docker.
  10. Email string `json:"email,omitempty"`
  11. ServerAddress string `json:"serveraddress,omitempty"`
  12. // IdentityToken is used to authenticate the user and get
  13. // an access token for the registry.
  14. IdentityToken string `json:"identitytoken,omitempty"`
  15. // RegistryToken is a bearer token to be sent to a registry
  16. RegistryToken string `json:"registrytoken,omitempty"`
  17. }