Documentation
¶
Index ¶
- Constants
- func Configure(ctx ocm.Context, path string, fss ...vfs.FileSystem) (ocm.Context, error)
- func ConfigureByData(ctx ocm.Context, data []byte, info string) error
- func GetOCIArtifactRef(ctx ocm.Context, r ocm.ResourceAccess) (string, error)
- func GetResourceData(acc ocm.ResourceAccess) ([]byte, error)
- func GetResourceDataForPath(cv ocm.ComponentVersionAccess, id metav1.Identity, path []metav1.Identity, ...) ([]byte, error)
- func GetResourceDataForRef(cv ocm.ComponentVersionAccess, ref metav1.ResourceReference, ...) ([]byte, error)
- func GetResourceReader(acc ocm.ResourceAccess) (io.ReadCloser, error)
- func GetResourceReaderForPath(cv ocm.ComponentVersionAccess, id metav1.Identity, path []metav1.Identity, ...) (io.ReadCloser, error)
- func GetResourceReaderForRef(cv ocm.ComponentVersionAccess, ref metav1.ResourceReference, ...) (io.ReadCloser, error)
- func MatchResourceReference(cv ocm.ComponentVersionAccess, typ string, ref metav1.ResourceReference, ...) (ocm.ResourceAccess, ocm.ComponentVersionAccess, error)
- func ResolveReferencePath(cv ocm.ComponentVersionAccess, path []metav1.Identity, ...) (ocm.ComponentVersionAccess, error)
- func ResolveResourceReference(cv ocm.ComponentVersionAccess, ref metav1.ResourceReference, ...) (ocm.ResourceAccess, ocm.ComponentVersionAccess, error)
- func Walk[T any](closure common.NameVersionInfo[T], cv ocm.ComponentVersionAccess, ...) (common.NameVersionInfo[T], error)
- type WalkingStep
Constants ¶
View Source
const DEFAULT_OCM_CONFIG = ".ocmconfig"
View Source
const DEFAULT_OCM_CONFIG_DIR = ".ocm"
Variables ¶
This section is empty.
Functions ¶
func GetOCIArtifactRef ¶
func GetResourceData ¶ added in v0.3.0
func GetResourceData(acc ocm.ResourceAccess) ([]byte, error)
func GetResourceDataForPath ¶ added in v0.4.0
func GetResourceDataForPath(cv ocm.ComponentVersionAccess, id metav1.Identity, path []metav1.Identity, resolvers ...ocm.ComponentVersionResolver) ([]byte, error)
func GetResourceDataForRef ¶ added in v0.4.0
func GetResourceDataForRef(cv ocm.ComponentVersionAccess, ref metav1.ResourceReference, resolvers ...ocm.ComponentVersionResolver) ([]byte, error)
func GetResourceReader ¶ added in v0.4.0
func GetResourceReader(acc ocm.ResourceAccess) (io.ReadCloser, error)
func GetResourceReaderForPath ¶ added in v0.4.0
func GetResourceReaderForPath(cv ocm.ComponentVersionAccess, id metav1.Identity, path []metav1.Identity, resolvers ...ocm.ComponentVersionResolver) (io.ReadCloser, error)
func GetResourceReaderForRef ¶ added in v0.4.0
func GetResourceReaderForRef(cv ocm.ComponentVersionAccess, ref metav1.ResourceReference, resolvers ...ocm.ComponentVersionResolver) (io.ReadCloser, error)
func MatchResourceReference ¶
func MatchResourceReference(cv ocm.ComponentVersionAccess, typ string, ref metav1.ResourceReference, resolver ocm.ComponentVersionResolver) (ocm.ResourceAccess, ocm.ComponentVersionAccess, error)
func ResolveReferencePath ¶
func ResolveReferencePath(cv ocm.ComponentVersionAccess, path []metav1.Identity, resolver ocm.ComponentVersionResolver) (ocm.ComponentVersionAccess, error)
func ResolveResourceReference ¶
func ResolveResourceReference(cv ocm.ComponentVersionAccess, ref metav1.ResourceReference, resolver ocm.ComponentVersionResolver) (ocm.ResourceAccess, ocm.ComponentVersionAccess, error)
func Walk ¶ added in v0.4.1
func Walk[T any](closure common.NameVersionInfo[T], cv ocm.ComponentVersionAccess, resolver ocm.ComponentVersionResolver, step WalkingStep[T]) (common.NameVersionInfo[T], error)
Walk traverses a component version graph using the WalkingStep to process found component version.
Types ¶
type WalkingStep ¶ added in v0.4.1
type WalkingStep[T any] func(state common.WalkingState[T, ocm.ComponentVersionAccess]) (bool, error)
WalkingStep is used to process a component version during graph traversal. If returned true, the traversal process follows local component references- If an error is returned the traversal is aborted with this error, Additionally, an info object of type T can be registered in the state for the component version.
Click to show internal directories.
Click to hide internal directories.