github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/api/types/auth.go (about)

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