credentials

package
v0.0.0-...-ba90866 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Username      string `json:"username,omitempty"`
	Password      string `json:"password,omitempty"`
	Auth          string `json:"auth,omitempty"`
	ServerAddress string `json:"serveraddress,omitempty"`
	IdentityToken string `json:"identitytoken,omitempty"`
	RegistryToken string `json:"registrytoken,omitempty"`
}

AuthConfig contains authentication info for a registry. It mirrors the kubernetes auth config and is used for our custom credential provider.

type Keyring

type Keyring struct {
	client.Client
	sync.Mutex
	// contains filtered or unexported fields
}

func NewKeyring

func NewKeyring(c client.Client) *Keyring

func (*Keyring) Add

func (k *Keyring) Add(sec ...client.ObjectKey)

func (*Keyring) Has

func (k *Keyring) Has(nn client.ObjectKey) bool

func (*Keyring) Lookup

func (k *Keyring) Lookup(ctx context.Context, name string) ([]*runtimev1.AuthConfig, bool, error)

func (*Keyring) Remove

func (k *Keyring) Remove(sec ...client.ObjectKey)

type SecretsRef

type SecretsRef struct {
	Object     *corev1.Secret
	References int
}

func (*SecretsRef) Add

func (s *SecretsRef) Add()

Jump to

Keyboard shortcuts

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