aliases

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Type   = cpi.AliasRepositoryType
	TypeV1 = Type + runtime.VersionSeparator + "v1"
)
View Source
const ATTR_REPOS = "github.com/open-component-model/ocm/pkg/contexts/credentials/repositories/aliases"

Variables

This section is empty.

Functions

This section is empty.

Types

type Repositories

type Repositories struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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

type Repository struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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