oci

package
v1.136.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 21 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKeySecretNamespace is the key to use to pass the secret namespace in the context.
	ContextKeySecretNamespace = secretNamespace{}
)

Functions

This section is empty.

Types

type HelmRegistry

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

HelmRegistry can pull OCI Helm Charts.

func NewHelmRegistry

func NewHelmRegistry(c client.Client) *HelmRegistry

NewHelmRegistry creates a new HelmRegistry. The client is used to get pull secrets if needed.

func (*HelmRegistry) Pull

Pull from the repository and return the compressed archive.

type Interface

type Interface interface {
	// Pull from the repository and return the Helm chart.
	// The context can be used to pass the secret namespace with the key ContextKeySecretNamespace.
	Pull(ctx context.Context, oci *gardencorev1.OCIRepository) ([]byte, error)
}

Interface represents an OCI compatible registry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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