ctfutils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveList

func ResolveList(ctx context.Context,
	resolver ctf.ComponentResolver,
	repoCtx cdv2.Repository,
	name,
	version string) (*cdv2.ComponentDescriptorList, error)

ResolveList resolves all component descriptors of a given root component descriptor.

func ResolveRecursive

func ResolveRecursive(ctx context.Context, resolver ctf.ComponentResolver, repoCtx cdv2.Repository, name, version string, cb ResolvedCallbackFunc) error

ResolveRecursive recursively resolves all component descriptors dependencies. Everytime a new component descriptor is resolved the given callback function is called. The resolve of further components can be stopped when - the callback returns true for the stop parameter - the callback returns an error - all components are successfully resolved.

Types

type ResolvedCallbackFunc

type ResolvedCallbackFunc func(descriptor *cdv2.ComponentDescriptor) (stop bool, err error)

ResolvedCallbackFunc describes a function that is called when a component descriptor is resolved. The function can optionally return an bool which when set to true stops the resolve of further component descriptors

Jump to

Keyboard shortcuts

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