oci

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewORASClient

func NewORASClient(ref string, username, password string) (*auth.Client, error)

NewORASClient creates an ORAS client, possibly authenticated.

Types

type Manager

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

func NewManager

func NewManager(
	insecure bool,
	username, password string,
	cacheOverride string,
) *Manager

func (*Manager) Equals

func (mg *Manager) Equals(ctx context.Context, ref1, ref2 string) (bool, error)

Equals compare the references and returns whether they are equal or not. To do so, it resolves the digests of the references if exist

func (*Manager) Load

func (mg *Manager) Load(
	ctx context.Context,
	ref string,
) (dir string, err error)

Load a reference (a deployment scenario, distributed as an OCI artifact). It will also ensure its basic validity, i.e., if it is a supported runtime, and if uses a binary that it has been copied.

Returns the directory it has been loaded into, ready to use, or an error.

Jump to

Keyboard shortcuts

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