Documentation ¶
Index ¶
Constants ¶
View Source
const ( Type = cpi.AliasRepositoryType TypeV1 = Type + runtime.VersionSeparator + "v1" )
View Source
const ATTR_REPOS = "ocm.software/ocm/api/credentials/extensions/repositories/aliases"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repositories ¶
func (*Repositories) GetRepository ¶
func (c *Repositories) GetRepository(name string) *Repository
func (*Repositories) Set ¶
func (c *Repositories) Set(name string, spec cpi.RepositorySpec, creds cpi.CredentialsSource)
type Repository ¶
func NewRepository ¶
func NewRepository(name string, spec cpi.RepositorySpec, creds cpi.Credentials) *Repository
func (*Repository) GetRepository ¶
func (a *Repository) GetRepository(ctx cpi.Context, creds cpi.Credentials) (cpi.Repository, error)
type RepositorySpec ¶
type RepositorySpec struct { runtime.ObjectVersionedType `json:",inline"` Alias string `json:"alias"` }
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.