ocmlib

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSecretCredsToCredContext

func AddSecretCredsToCredContext(secrets []corev1.Secret, provider credentials.ContextProvider) error

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 (c *ComponentVersion) GetResource(name string, identity map[string]string) (model.Resource, error)

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

type Factory

type Factory struct{}

func (*Factory) NewHelmOCIResource

func (f *Factory) NewHelmOCIResource(ctx context.Context,
	fs vfs.FileSystem, ociImageRef string,
	registryPullSecrets []corev1.Secret,
	ociConfig *config.OCIConfiguration,
	sharedCache cache.Cache) (model.TypedResourceProvider, error)

func (*Factory) NewHelmRepoResource

func (f *Factory) NewHelmRepoResource(ctx context.Context, helmChartRepo *helmv1alpha1.HelmChartRepo, lsClient client.Client, contextObj *lsv1alpha1.Context) (model.TypedResourceProvider, error)

func (*Factory) NewRegistryAccess

func (*Factory) NewRegistryAccess(ctx context.Context,
	fs vfs.FileSystem,
	secrets []corev1.Secret,
	sharedCache cache.Cache,
	localRegistryConfig *config.LocalRegistryConfiguration,
	ociRegistryConfig *config.OCIConfiguration,
	inlineCd *types.ComponentDescriptor,
	additionalBlobResolvers ...ctf.TypedBlobResolver) (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 (r *Resource) GetAccessType() string

func (*Resource) GetCachingIdentity

func (r *Resource) GetCachingIdentity(ctx context.Context) string

func (*Resource) GetName

func (r *Resource) GetName() string

func (*Resource) GetResource

func (r *Resource) GetResource() (*types.Resource, error)

func (*Resource) GetType

func (r *Resource) GetType() string

func (*Resource) GetTypedContent

func (r *Resource) GetTypedContent(ctx context.Context) (*model.TypedResourceContent, error)

func (*Resource) GetVersion

func (r *Resource) GetVersion() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL