Documentation ¶
Index ¶
- Constants
- func NewCredentials(props common.Properties) cpi.CredentialsSpec
- func NewRepository(creds cpi.Credentials) cpi.Repository
- type Repository
- type RepositorySpec
- func (a *RepositorySpec) Credentials(context cpi.Context, source ...cpi.CredentialsSource) (cpi.Credentials, error)
- func (a *RepositorySpec) GetCredentialsName() string
- func (a *RepositorySpec) GetRepositorySpec(context cpi.Context) cpi.RepositorySpec
- func (a *RepositorySpec) GetType() string
- func (a *RepositorySpec) Repository(ctx cpi.Context, creds cpi.Credentials) (cpi.Repository, error)
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)
Click to show internal directories.
Click to hide internal directories.