resolver

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepsResolver

type DepsResolver struct {
	DefaultCachePath      string
	InsecureSkipTLSverify bool
	Downloader            downloader.Downloader
	Settings              *settings.Settings
	LogWriter             io.Writer
	ResolveFuncs          []resolveFunc
}

DepsResolver is the resolver for resolving dependencies.

func (*DepsResolver) Resolve

func (dr *DepsResolver) Resolve(options ...ResolveOption) error

Resolve resolves the dependencies of the package.

type ResolveOption

type ResolveOption func(*ResolveOptions) error

ResolveOption is the option for resolving dependencies.

func WithCachePath

func WithCachePath(cachePath string) ResolveOption

WithCachePath sets the path of the cache.

func WithEnableCache

func WithEnableCache(enableCache bool) ResolveOption

WithEnableCache sets the flag to enable the cache during the resolving the remote package.

func WithOffline

func WithOffline(offline bool) ResolveOption

WithOffline sets the offline option to resolve the package.

func WithResolveKclMod

func WithResolveKclMod(kMod *pkg.KclPkg) ResolveOption

type ResolveOptions

type ResolveOptions struct {

	// EnableCache is the flag to enable the cache during the resolving the remote package.
	EnableCache bool
	// CachePath is the path of the cache.
	CachePath string
	// Offline is the flag to resolve the package offline.
	Offline bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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