oci

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 21 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(ref1, ref2 string) (bool, error)

func (*Manager) Load

func (mg *Manager) Load(
	ctx context.Context,
	ref string,
) (string, 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