oci

package
v4.10.5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ArtifactType is the vCluster artifact type
	ArtifactType = "application/vnd.loft.vcluster"

	// EtcdLayerMediaType is the reserved media type for the etcd snapshot
	EtcdLayerMediaType = "application/vnd.loft.vcluster.etcd.v1.tar+gzip"
)
View Source
const AzureContainerRegistryUsername = "00000000-0000-0000-0000-000000000000"

Variables

This section is empty.

Functions

func FillCredentials

func FillCredentials(o *snapshotapi.OCIOptions, isClient bool)

func FindLayerWithMediaType

func FindLayerWithMediaType(img remotev1.Image, mediaType string) (io.ReadCloser, error)

Types

type Credentials

type Credentials struct {
	ServerURL string
	Username  string
	Secret    string
}

Credentials holds the information shared between docker and the credentials store.

func GetAuthConfig

func GetAuthConfig(host string) (*Credentials, error)

func (*Credentials) AuthToken

func (c *Credentials) AuthToken() string

type Store

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

func NewStore

func NewStore(options *snapshotapi.OCIOptions) *Store

func (*Store) Delete

func (s *Store) Delete(_ context.Context) error

func (*Store) GetObject

func (s *Store) GetObject(ctx context.Context) (io.ReadCloser, error)

func (*Store) List

func (s *Store) List(ctx context.Context) ([]snapshotapi.Snapshot, error)

func (*Store) PutObject

func (s *Store) PutObject(ctx context.Context, body io.Reader) error

func (*Store) Target

func (s *Store) Target() string

Jump to

Keyboard shortcuts

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