Documentation ¶
Index ¶
Constants ¶
View Source
const ( Type = "Memory" TypeV1 = Type + runtime.VersionSeparator + "v1" )
View Source
const ATTR_REPOS = "ocm.software/ocm/api/credentials/extensions/repositories/memory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repositories ¶
type Repositories struct {
// contains filtered or unexported fields
}
func (*Repositories) GetRepository ¶
func (r *Repositories) GetRepository(name string) *Repository
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(name string) *Repository
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"` RepositoryName string `json:"repoName"` }
RepositorySpec describes a memory based repository interface.
func NewRepositorySpec ¶
func NewRepositorySpec(name string) *RepositorySpec
NewRepositorySpec creates a new memory 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.