resolution

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BadOptsErr = 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
}

type IOptions added in v1.7.7

type IOptions interface{}

type IResolution

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

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) 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) 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)

Directories

Path Synopsis
pm
npm
pip

Jump to

Keyboard shortcuts

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