registry

package
v0.0.0-...-80e4a28 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials(ctx cpi.Context, insecure bool, userPasswordCreds, registryURL string) credentials.Credentials

func NoSchemeURL

func NoSchemeURL(url string) string

func ParseUserPass

func ParseUserPass(credentials string) (string, string)

Types

type OCIRepository

type OCIRepository interface {
	GetComponentVersion(archive *comparch.ComponentArchive, repo cpi.Repository) (cpi.ComponentVersionAccess, error)
	PushComponentVersion(archive *comparch.ComponentArchive, repo cpi.Repository, overwrite bool) error
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(ociRepository OCIRepository, repo cpi.Repository) (*Service, error)

func (*Service) GetComponentVersion

func (s *Service) GetComponentVersion(archive *comparch.ComponentArchive, insecure bool,
	userPasswordCreds, registryURL string,
) (cpi.ComponentVersionAccess, error)

func (*Service) PushComponentVersion

func (s *Service) PushComponentVersion(archive *comparch.ComponentArchive, insecure, overwrite bool,
	credentials, registryURL string,
) error

Jump to

Keyboard shortcuts

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