cnudie

package
v0.107.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource(res *types.Resource, blobResolver ctf.BlobResolver) model.Resource

Types

type ComponentVersion

type ComponentVersion struct {
	// contains filtered or unexported fields
}

func (*ComponentVersion) GetBlobResolver

func (c *ComponentVersion) GetBlobResolver() (model.BlobResolver, error)

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) GetReferencedComponentVersion

func (c *ComponentVersion) GetReferencedComponentVersion(ctx context.Context, componentRef *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, selectors map[string]string) (model.Resource, error)

func (*ComponentVersion) GetSchemaVersion

func (c *ComponentVersion) GetSchemaVersion() string

func (*ComponentVersion) GetVersion

func (c *ComponentVersion) GetVersion() string

type Factory

type Factory struct{}

func (*Factory) NewHelmOCIResource

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

NewHelmOCIResource returns a helm chart resource that is stored in an OCI registry.

func (*Factory) NewHelmRepoResource

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

NewHelmRepoResource returns a helm chart resource that is stored in a helm chart repository.

func (*Factory) NewRegistryAccess

func (*Factory) NewRegistryAccess(ctx context.Context,
	fs vfs.FileSystem,
	ocmconfig *corev1.ConfigMap,
	secrets []corev1.Secret,
	sharedCache cache.Cache,
	localRegistryConfig *config.LocalRegistryConfiguration,
	ociRegistryConfig *config.OCIConfiguration,
	inlineCd *types.ComponentDescriptor,
	additionalBlobResolvers ...ctf.TypedBlobResolver) (model.RegistryAccess, error)

type RegistryAccess

type RegistryAccess struct {
	// contains filtered or unexported fields
}

func (*RegistryAccess) GetComponentVersion

func (*RegistryAccess) VerifySignature added in v0.104.0

func (r *RegistryAccess) VerifySignature(componentVersion model.ComponentVersion, name string, pkeyData []byte, caCertData []byte) error

VerifySignature is NOT supported in cnudie, only in OCM. Will always return error. Check if ocm is used before calling this function.

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

Jump to

Keyboard shortcuts

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