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