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 ¶
func (r *HelmRegistry) Pull(ctx context.Context, oci *gardencorev1.OCIRepository) ([]byte, error)
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.
Click to show internal directories.
Click to hide internal directories.