oci

package
v1.120.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 17 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextKeyPullSecretNamespace = pullSecretNamespace{}

ContextKeyPullSecretNamespace is the key to use to pass the pull secret namespace in the context.

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 pull secret namespace with the key ContextKeyPullSecretNamespace.
	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