Documentation ¶
Index ¶
- func IsErrCredentialsNotFound(err error) bool
- func NewHelper(c *config.CLIConfig, helper string) (credentials.Store, error)
- type HelperStore
- type Store
- func (s *Store) Add(ctx context.Context, cred apiv1.Credential, skipChecks bool) error
- func (s *Store) Get(ctx context.Context, serverAddress string) (*apiv1.RegistryAuth, bool, error)
- func (s *Store) List(ctx context.Context) (result []apiv1.Credential, err error)
- func (s *Store) Remove(ctx context.Context, cred apiv1.Credential) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.