oci

package
v0.24.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 22 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 AddFlags

func AddFlags(fs *pflag.FlagSet, options *Options)

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 Options

type Options struct {
	Repository string `json:"repository,omitempty"`
	Username   string `json:"username,omitempty"`
	Password   string `json:"password,omitempty"`

	SkipClientCredentials bool `json:"skip-client-credentials,omitempty"`
}

func (*Options) FillCredentials

func (o *Options) FillCredentials(isClient bool)

type Store

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

func NewStore

func NewStore(options *Options) *Store

func (*Store) GetObject

func (s *Store) GetObject(ctx context.Context) (io.ReadCloser, 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
JackTT - Gopher 🇻🇳