oci

package
v0.0.0-...-e7a8235 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyGraphWithProgress

func CopyGraphWithProgress(ctx context.Context, src content.ReadOnlyStorage, dst oras.Target, desc ocispec.Descriptor, progressWriter io.Writer) error

func Push

func Push(ctx context.Context, artifact Artifact, target oras.Target, opts PushOptions) (ocispec.Descriptor, error)

Types

type Artifact

type Artifact interface {
	ArtifactType() string
	Config() Blob
	Annotations() (map[string]string, error)
	SubArtifacts() []Artifact
	Blobs() []Blob
	Tag() string
}

type Blob

type Blob interface {
	MediaTyper
	Data() (io.ReadCloser, error)
}

func BlobFromBytes

func BlobFromBytes(mediaType string, data []byte) Blob

type MediaTyper

type MediaTyper interface {
	MediaType() string
}

type PushOptions

type PushOptions struct {
	ProgressWriter io.Writer
}

Jump to

Keyboard shortcuts

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