Help us shape the future of Go! Take the 2026 Go Developer Survey

credentials

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHelper

func NewHelper(c *config.CLIConfig, helper string) (credentials.Store, error)

Types

type HelperStore

type HelperStore struct {
	// contains filtered or unexported fields
}

func (*HelperStore) Erase

func (h *HelperStore) Erase(serverAddress string) error

func (*HelperStore) Get

func (h *HelperStore) Get(serverAddress string) (types.AuthConfig, error)

func (*HelperStore) GetAll

func (h *HelperStore) GetAll() (map[string]types.AuthConfig, error)

func (*HelperStore) Store

func (h *HelperStore) Store(authConfig types.AuthConfig) error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewLocalOnlyStore

func NewLocalOnlyStore(cfg *config.CLIConfig) (*Store, error)

func NewStore

func NewStore(cfg *config.CLIConfig, c client.Client) (*Store, error)

func (*Store) Add

func (s *Store) Add(ctx context.Context, cred apiv1.Credential, skipChecks bool) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, serverAddress string) (*apiv1.RegistryAuth, bool, error)

func (*Store) List

func (s *Store) List(ctx context.Context) (result []apiv1.Credential, err error)

func (*Store) Remove

func (s *Store) Remove(ctx context.Context, cred apiv1.Credential) error

Jump to

Keyboard shortcuts

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