Documentation ¶
Index ¶
- func AddSecretCredsToCredContext(secrets []corev1.Secret, provider credentials.ContextProvider) error
- func ApplyOCMConfigMapToOCMContext(octx ocm.Context, ocmconfig *corev1.ConfigMap) error
- func NewResource(access ocm.ResourceAccess) model.Resource
- type ComponentVersion
- func (c *ComponentVersion) GetComponentDescriptor() *types.ComponentDescriptor
- func (c *ComponentVersion) GetComponentReference(name string) *types.ComponentReference
- func (c *ComponentVersion) GetComponentReferences() []types.ComponentReference
- func (c *ComponentVersion) GetName() string
- func (c *ComponentVersion) GetOCMObject() ocm.ComponentVersionAccess
- func (c *ComponentVersion) GetReferencedComponentVersion(ctx context.Context, ref *types.ComponentReference, ...) (model.ComponentVersion, error)
- func (c *ComponentVersion) GetRepositoryContext() *types.UnstructuredTypedObject
- func (c *ComponentVersion) GetResource(name string, identity map[string]string) (model.Resource, error)
- func (c *ComponentVersion) GetSchemaVersion() string
- func (c *ComponentVersion) GetVersion() string
- type CredentialSource
- type Factory
- func (f *Factory) NewHelmOCIResource(ctx context.Context, fs vfs.FileSystem, ocmconfig *corev1.ConfigMap, ...) (model.TypedResourceProvider, error)
- func (f *Factory) NewHelmRepoResource(ctx context.Context, ocmconfig *corev1.ConfigMap, ...) (model.TypedResourceProvider, error)
- func (*Factory) NewRegistryAccess(ctx context.Context, options *model.RegistryAccessOptions) (model.RegistryAccess, error)
- type HelmChartProvider
- type RegistryAccess
- func (r *RegistryAccess) Close() error
- func (r *RegistryAccess) GetComponentVersion(ctx context.Context, cdRef *lsv1alpha1.ComponentDescriptorReference) (_ model.ComponentVersion, rerr error)
- func (r *RegistryAccess) NewComponentVersion(cv ocm.ComponentVersionAccess) (model.ComponentVersion, error)
- func (r *RegistryAccess) VerifySignature(componentVersion model.ComponentVersion, name string, pkeyData []byte, ...) error
- type Resource
- func (r *Resource) GetAccessType() string
- func (r *Resource) GetName() string
- func (r *Resource) GetResource() (*types.Resource, error)
- func (r *Resource) GetType() string
- func (r *Resource) GetTypedContent(ctx context.Context) (*model.TypedResourceContent, error)
- func (r *Resource) GetVersion() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSecretCredsToCredContext ¶
func AddSecretCredsToCredContext(secrets []corev1.Secret, provider credentials.ContextProvider) error
func ApplyOCMConfigMapToOCMContext ¶ added in v0.106.0
func NewResource ¶
func NewResource(access ocm.ResourceAccess) model.Resource
Types ¶
type ComponentVersion ¶
type ComponentVersion struct {
// contains filtered or unexported fields
}
func (*ComponentVersion) GetComponentDescriptor ¶
func (c *ComponentVersion) GetComponentDescriptor() *types.ComponentDescriptor
func (*ComponentVersion) GetComponentReference ¶
func (c *ComponentVersion) GetComponentReference(name string) *types.ComponentReference
func (*ComponentVersion) GetComponentReferences ¶
func (c *ComponentVersion) GetComponentReferences() []types.ComponentReference
func (*ComponentVersion) GetName ¶
func (c *ComponentVersion) GetName() string
func (*ComponentVersion) GetOCMObject ¶
func (c *ComponentVersion) GetOCMObject() ocm.ComponentVersionAccess
func (*ComponentVersion) GetReferencedComponentVersion ¶
func (c *ComponentVersion) GetReferencedComponentVersion(ctx context.Context, ref *types.ComponentReference, repositoryContext *types.UnstructuredTypedObject, overwriter componentoverwrites.Overwriter) (model.ComponentVersion, error)
func (*ComponentVersion) GetRepositoryContext ¶
func (c *ComponentVersion) GetRepositoryContext() *types.UnstructuredTypedObject
func (*ComponentVersion) GetResource ¶
func (*ComponentVersion) GetSchemaVersion ¶
func (c *ComponentVersion) GetSchemaVersion() string
func (*ComponentVersion) GetVersion ¶
func (c *ComponentVersion) GetVersion() string
type CredentialSource ¶
type CredentialSource struct {
// contains filtered or unexported fields
}
func NewHelmCredentialSource ¶
func NewHelmCredentialSource(lsClient client.Client, auth helmv1alpha1.Auth, namespace string) *CredentialSource
func (*CredentialSource) Credentials ¶
func (c *CredentialSource) Credentials(ctx credentials.Context, _ ...credentials.CredentialsSource) (credentials.Credentials, error)
type Factory ¶
type Factory struct{}
func (*Factory) NewHelmOCIResource ¶
func (f *Factory) NewHelmOCIResource(ctx context.Context, fs vfs.FileSystem, ocmconfig *corev1.ConfigMap, ociImageRef string, registryPullSecrets []corev1.Secret, ociConfig *config.OCIConfiguration) (model.TypedResourceProvider, error)
func (*Factory) NewHelmRepoResource ¶
func (f *Factory) NewHelmRepoResource(ctx context.Context, ocmconfig *corev1.ConfigMap, helmChartRepo *helmv1alpha1.HelmChartRepo, lsClient client.Client, contextObj *lsv1alpha1.Context) (model.TypedResourceProvider, error)
func (*Factory) NewRegistryAccess ¶
func (*Factory) NewRegistryAccess(ctx context.Context, options *model.RegistryAccessOptions) (model.RegistryAccess, error)
type HelmChartProvider ¶
type HelmChartProvider struct {
// contains filtered or unexported fields
}
func (*HelmChartProvider) GetTypedContent ¶
func (h *HelmChartProvider) GetTypedContent(ctx context.Context) (_ *model.TypedResourceContent, rerr error)
type RegistryAccess ¶
type RegistryAccess struct {
// contains filtered or unexported fields
}
func (*RegistryAccess) Close ¶
func (r *RegistryAccess) Close() error
func (*RegistryAccess) GetComponentVersion ¶
func (r *RegistryAccess) GetComponentVersion(ctx context.Context, cdRef *lsv1alpha1.ComponentDescriptorReference) (_ model.ComponentVersion, rerr error)
func (*RegistryAccess) NewComponentVersion ¶
func (r *RegistryAccess) NewComponentVersion(cv ocm.ComponentVersionAccess) (model.ComponentVersion, error)
func (*RegistryAccess) VerifySignature ¶ added in v0.104.0
func (r *RegistryAccess) VerifySignature(componentVersion model.ComponentVersion, name string, pkeyData []byte, caCertData []byte) error
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) GetAccessType ¶
func (*Resource) GetTypedContent ¶
func (*Resource) GetVersion ¶
Directories ¶
Path | Synopsis |
---|---|
Package repository provides a read-only implementation of an ocm repository.
|
Package repository provides a read-only implementation of an ocm repository. |
inline
Package inline defines a repository type "inline", that allows to include the whole repository in its specification through interpreting yaml as file system.
|
Package inline defines a repository type "inline", that allows to include the whole repository in its specification through interpreting yaml as file system. |
local
Package local defines a repository type "local", that resembles the legacy implementation for interpreting directories as ocm repositories.
|
Package local defines a repository type "local", that resembles the legacy implementation for interpreting directories as ocm repositories. |
Package resourcetypehandlers provides handler for specific resource types.
|
Package resourcetypehandlers provides handler for specific resource types. |
Click to show internal directories.
Click to hide internal directories.