resolution

package
v1.8.15 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadOpts = errors.New("failed to type case IOptions")
)

Functions

This section is empty.

Types

type DebrickedOptions added in v1.7.7

type DebrickedOptions struct {
	Path                 string
	Exclusions           []string
	Verbose              bool
	Regenerate           int
	NpmPreferred         bool
	ResolutionStrictness StrictnessLevel
}

type IOptions added in v1.7.7

type IOptions interface{}

type IResolution

type IResolution interface {
	Jobs() []job.IJob
	HasErr() bool
	GetJobErrorCount() int
}

type IResolver

type IResolver interface {
	Resolve(paths []string, options IOptions) (IResolution, error)
}

type IScheduler

type IScheduler interface {
	Schedule(jobs []job.IJob) (IResolution, error)
}

type Resolution

type Resolution struct {
	// contains filtered or unexported fields
}

func NewResolution

func NewResolution(jobs []job.IJob) Resolution

func (Resolution) GetJobErrorCount added in v1.7.10

func (r Resolution) GetJobErrorCount() int

func (Resolution) HasErr

func (r Resolution) HasErr() bool

func (Resolution) Jobs

func (r Resolution) Jobs() []job.IJob

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(
	finder file.IFinder,
	batchFactory resolutionFile.IBatchFactory,
	strategyFactory strategy.IFactory,
	scheduler IScheduler,
) Resolver

func (Resolver) GetExitCode added in v1.7.10

func (r Resolver) GetExitCode(resolution IResolution, options IOptions) (int, error)

func (Resolver) Resolve

func (r Resolver) Resolve(paths []string, options IOptions) (IResolution, error)

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(workers int) *Scheduler

func (*Scheduler) Schedule

func (scheduler *Scheduler) Schedule(jobs []job.IJob) (IResolution, error)

type StrictnessLevel added in v1.7.10

type StrictnessLevel int
const (
	NoFail StrictnessLevel = iota
	FailIfAllFail
	FailIfAnyFail
	FailOrWarn
)

func GetStrictnessLevel added in v1.7.10

func GetStrictnessLevel(level int) (StrictnessLevel, error)

Directories

Path Synopsis
pm
npm
pip

Jump to

Keyboard shortcuts

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