ocmutils

package
v0.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const DEFAULT_OCM_CONFIG = ".ocmconfig"
View Source
const DEFAULT_OCM_CONFIG_DIR = ".ocm"

Variables

This section is empty.

Functions

func Configure

func Configure(ctxp config.ContextProvider, path string, fss ...vfs.FileSystem) (ocm.Context, error)

func Configure2

func Configure2(ctx config.ContextProvider, path string, fss ...vfs.FileSystem) (ocm.Context, config.Config, error)

func ConfigureByData

func ConfigureByData(ctx config.ContextProvider, data []byte, info string) error

func ConfigureByData2

func ConfigureByData2(ctx config.ContextProvider, data []byte, info string) (config.Config, error)

func GetOCIArtifactRef

func GetOCIArtifactRef(ctxp ocm.ContextProvider, r ocm.ResourceAccess) (string, error)

func GetResourceData

func GetResourceData(acc ocm.AccessProvider) ([]byte, error)

func GetResourceDataForPath

func GetResourceDataForPath(cv ocm.ComponentVersionAccess, id metav1.Identity, path []metav1.Identity, resolvers ...ocm.ComponentVersionResolver) ([]byte, error)

func GetResourceReader

func GetResourceReader(acc ocm.AccessProvider) (io.ReadCloser, error)

func GetResourceReaderForPath

func GetResourceReaderForPath(cv ocm.ComponentVersionAccess, id metav1.Identity, path []metav1.Identity, resolvers ...ocm.ComponentVersionResolver) (io.ReadCloser, error)

func Walk

Walk traverses a component version graph using the WalkingStep to process found component version.

Types

type WalkingStep

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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