requirements

package
v0.0.0-...-b6fc690 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBuildError

func IsBuildError(err error) bool

Types

type ErrNoMatches

type ErrNoMatches struct {
	*locale.LocalizedError
	Query        string
	Alternatives *string
}

type PackageVersion

type PackageVersion struct {
	captain.NameVersionValue
}

func (*PackageVersion) Set

func (pv *PackageVersion) Set(arg string) error

type Requirement

type Requirement struct {
	Name          string
	Version       string
	Revision      *int
	BitWidth      int // Only needed for platform requirements
	Namespace     *model.Namespace
	NamespaceType *model.NamespaceType
	Operation     types.Operation
	// contains filtered or unexported fields
}

Requirement represents a package, language or platform requirement For now, be aware that you should never provide BOTH ns AND nsType, one or the other should always be nil, but never both. The refactor should clean this up.

type RequirementOperation

type RequirementOperation struct {

	// The remainder is redundant with the above. Refactoring this will follow in a later story so as not to blow
	// up the one that necessitates adding the primer at this level.
	// https://activestatef.atlassian.net/browse/DX-2869
	Output    output.Outputer
	Prompt    prompt.Prompter
	Project   *project.Project
	Auth      *authentication.Auth
	Config    *config.Instance
	Analytics analytics.Dispatcher
	SvcModel  *model.SvcModel
	// contains filtered or unexported fields
}

func NewRequirementOperation

func NewRequirementOperation(prime primeable) *RequirementOperation

func (*RequirementOperation) ExecuteRequirementOperation

func (r *RequirementOperation) ExecuteRequirementOperation(ts *time.Time, requirements ...*Requirement) (rerr error)

ExecuteRequirementOperation executes the operation on the requirement This has become quite unwieldy, and is ripe for a refactor - https://activestatef.atlassian.net/browse/DX-1897

type ResolveNamespaceError

type ResolveNamespaceError struct {
	Name string
}

func (ResolveNamespaceError) Error

func (e ResolveNamespaceError) Error() string

Jump to

Keyboard shortcuts

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