Documentation
¶
Index ¶
- func ConfigureCredentials(ctx context.Context, ocmCtx ocm.Context, c client.Client, ...) error
- func ConfigureTemplateFilesystem(ctx context.Context, cv ocm.ComponentVersionAccess, resourceName string) (vfs.FileSystem, error)
- func GetComponentVersion(ctx ocm.Context, session ocm.Session, repositoryURL, name, version string) (ocm.ComponentVersionAccess, error)
- func GetParentObject(ctx context.Context, c client.Client, kind, group string, ...) error
- func GetResourceForComponentVersion(cv ocm.ComponentVersionAccess, resourceName string) (ocm.ResourceAccess, *bytes.Buffer, error)
- func GetSnapshotName(repository, resourceName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureCredentials ¶
func ConfigureCredentials(ctx context.Context, ocmCtx ocm.Context, c client.Client, repositoryURL, secretRef, namespace string) error
ConfigureCredentials takes a repository url and secret ref and configures access to an OCI repository.
func ConfigureTemplateFilesystem ¶
func ConfigureTemplateFilesystem(ctx context.Context, cv ocm.ComponentVersionAccess, resourceName string) (vfs.FileSystem, error)
ConfigureTemplateFilesystem takes a version access and a resource name and sets up a virtual filesystem to work with.
func GetComponentVersion ¶
func GetParentObject ¶
func GetParentObject(ctx context.Context, c client.Client, kind, group string, source, parent client.Object) error
GetParentObject returns the first find in the owner references of a given object. T denotes the type that the user wants returned.
func GetResourceForComponentVersion ¶ added in v0.0.4
func GetResourceForComponentVersion(cv ocm.ComponentVersionAccess, resourceName string) (ocm.ResourceAccess, *bytes.Buffer, error)
GetResourceForComponentVersion returns the raw resource and the access for that resource.
func GetSnapshotName ¶
GetSnapshotName generates a snapshot name that should be used by all controllers.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.