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
Click to show internal directories.
Click to hide internal directories.