Documentation ¶
Index ¶
- func NewResource(res *types.Resource, blobResolver ctf.BlobResolver) model.Resource
- type ComponentVersion
- func (c *ComponentVersion) GetBlobResolver() (model.BlobResolver, error)
- 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) GetReferencedComponentVersion(ctx context.Context, componentRef *types.ComponentReference, ...) (model.ComponentVersion, error)
- func (c *ComponentVersion) GetRepositoryContext() *types.UnstructuredTypedObject
- func (c *ComponentVersion) GetResource(name string, selectors map[string]string) (model.Resource, error)
- func (c *ComponentVersion) GetSchemaVersion() string
- func (c *ComponentVersion) GetVersion() string
- type Factory
- func (*Factory) NewHelmOCIResource(ctx context.Context, fs vfs.FileSystem, ociImageRef string, ...) (model.TypedResourceProvider, error)
- func (*Factory) NewHelmRepoResource(ctx context.Context, helmChartRepo *helmv1alpha1.HelmChartRepo, ...) (model.TypedResourceProvider, error)
- func (*Factory) NewRegistryAccess(ctx context.Context, fs vfs.FileSystem, secrets []corev1.Secret, ...) (model.RegistryAccess, error)
- type RegistryAccess
- type Resource
- func (r *Resource) GetAccessType() string
- func (r *Resource) GetCachingIdentity(ctx context.Context) 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 NewResource ¶
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 (*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, 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, 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, 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 (r *RegistryAccess) GetComponentVersion(ctx context.Context, cdRef *lsv1alpha1.ComponentDescriptorReference) (model.ComponentVersion, error)
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) GetAccessType ¶
func (*Resource) GetCachingIdentity ¶
func (*Resource) GetTypedContent ¶
func (*Resource) GetVersion ¶
Click to show internal directories.
Click to hide internal directories.