ocm

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobAccess

func BlobAccess(cvp ComponentVersionProvider, res ResourceProvider) (blob bpi.BlobAccess, rerr error)

Types

type ComponentVersionProvider

type ComponentVersionProvider interface {
	GetComponentVersionAccess() (cpi.ComponentVersionAccess, error)
}

ComponentVersionProvider is a factory for component versions. Every call provides a separately closeable component versuion access. An implementation should not hold private views of objects, The life cycle of all those objects should be left to the creator of ComponentVersionProvider implementation. Therefore, it does not have a close method.

func ByRepositorySpecAndName

func ByRepositorySpecAndName(ctx cpi.ContextProvider, spec cpi.RepositorySpec, comp, vers string) ComponentVersionProvider

func ByResolverAndName

func ByResolverAndName(resolver cpi.ComponentVersionResolver, comp, vers string) ComponentVersionProvider

type ResourceProvider

type ResourceProvider interface {
	GetResource(cv cpi.ComponentVersionAccess) (cpi.ResourceAccess, cpi.ComponentVersionAccess, error)
}

ResourceProvider selects a resource from a component version. It should not hold any separately closeabvle view on an object. The lifecycle of those objects should be left to the creator of the implementation of this interface.

func ByResourceId

func ByResourceId(id metav1.Identity) ResourceProvider

func ByResourcePath

func ByResourcePath(id metav1.Identity, path ...metav1.Identity) ResourceProvider

func ByResourceSelector

func ByResourceSelector(sel ...rscsel.Selector) ResourceProvider

Jump to

Keyboard shortcuts

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