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