oras

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//PackageMetaLayerMediaType  = "application/vnd.cncf.kform.package.meta.v1.tar+gzip"
	//PackageImageLayerMediaType = "application/vnd.cncf.kform.package.image.v1.tar+gzip"
	PackageLayerMediaType = "application/vnd.cncf.kform.package.v1.tar+gzip"
	ModuleMediaType       = "application/vnd.cncf.kform.module.v1+json"
	ProviderMediaType     = "application/vnd.cncf.kform.provider.v1+json"
)

Variables

This section is empty.

Functions

func DefaultCredential

func DefaultCredential(registry string) auth.CredentialFunc

func EmptyCredential

func EmptyCredential(ctx context.Context, hostport string) (auth.Credential, error)

func GetRepository

func GetRepository(ctx context.Context, ref string) (registry.Repository, error)

func Pull

func Pull(ctx context.Context, ref string, data store.Storer[[]byte]) error

func Push

func Push(ctx context.Context, kind string, ref string, pkgData []byte) error

Types

type Tags

type Tags []string

func GetTags

func GetTags(ctx context.Context, ref string) (Tags, error)

Jump to

Keyboard shortcuts

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