github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/api/types/auth.go (about)

     1  package 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  }