directcreds

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Type   = "Credentials"
	TypeV1 = Type + runtime.VersionSeparator + "v1"
)

Variables

This section is empty.

Functions

func NewCredentials

func NewCredentials(props common.Properties) cpi.CredentialsSpec

func NewRepository

func NewRepository(creds cpi.Credentials) cpi.Repository

Types

type Repository

type Repository struct {
	Credentials cpi.Credentials
}

func (*Repository) ExistsCredentials

func (r *Repository) ExistsCredentials(name string) (bool, error)

func (*Repository) LookupCredentials

func (r *Repository) LookupCredentials(name string) (cpi.Credentials, error)

func (*Repository) WriteCredentials

func (r *Repository) WriteCredentials(name string, creds cpi.Credentials) (cpi.Credentials, error)

type RepositorySpec

type RepositorySpec struct {
	runtime.ObjectVersionedType `json:",inline"`
	Properties                  common.Properties `json:"properties"`
}

RepositorySpec describes a repository interface for single direct credentials.

func NewRepositorySpec

func NewRepositorySpec(credentials common.Properties) *RepositorySpec

NewRepositorySpec creates a new RepositorySpec.

func (*RepositorySpec) Credentials

func (a *RepositorySpec) Credentials(context cpi.Context, source ...cpi.CredentialsSource) (cpi.Credentials, error)

func (*RepositorySpec) GetCredentialsName

func (a *RepositorySpec) GetCredentialsName() string

func (*RepositorySpec) GetRepositorySpec

func (a *RepositorySpec) GetRepositorySpec(context cpi.Context) cpi.RepositorySpec

func (*RepositorySpec) GetType

func (a *RepositorySpec) GetType() string

func (*RepositorySpec) Repository

func (a *RepositorySpec) Repository(ctx cpi.Context, creds cpi.Credentials) (cpi.Repository, error)

Jump to

Keyboard shortcuts

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