docker

package
v0.82.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL