Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InlineKeyChain ¶ added in v0.36.0
type InlineKeyChain struct { /* username specifies the container registry username to use for authentication. compatible: * source * condition * target default: by default credentials are fetch from the local environment such as `~/.docker/config.json`. remark: Not compatible with token */ Username string `yaml:",omitempty"` /* password specifies the container registry password to use for authentication. Not compatible with token compatible: * source * condition * target default: by default credentials are fetch from the local environment such as `~/.docker/config.json`. remark: Not compatible with token */ Password string `yaml:",omitempty"` /* token specifies the container registry token to use for authentication. compatible: * source * condition * target default: by default credentials are fetch from the local environment such as `~/.docker/config.json`. remark: Not compatible with username/password */ Token string `yaml:",omitempty"` }
InlineKeyChain defines a keychain with OCI registry credentials
func (InlineKeyChain) Empty ¶ added in v0.36.0
func (kc InlineKeyChain) Empty() bool
Empty returns true if the keychain is empty
func (InlineKeyChain) Resolve ¶ added in v0.36.0
func (kc InlineKeyChain) Resolve(authn.Resource) (authn.Authenticator, error)
Resolve the inline keychain and return an authenticator
func (InlineKeyChain) Validate ¶ added in v0.36.0
func (kc InlineKeyChain) Validate() error
Validate validates the object and returns an error (with all the failed validation messages) if it is not valid
Click to show internal directories.
Click to hide internal directories.