packagejson

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPackageVersion

func FindPackageVersion(name string, version string) (string, error)

Types

type Constraints

type Constraints map[string]string

type ValidationError

type ValidationError struct {
	Name                 string
	PackageJsonVersion   string
	Constraint           string
	VersionToBeInstalled string
}

type ValidationResult

type ValidationResult struct {
	Success bool
	Errors  []*ValidationError
}

type Validator

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

func NewValidator

func NewValidator(runtimeName string) *Validator

func (*Validator) Validate

func (dv *Validator) Validate(dependencies map[string]string) (*ValidationResult, error)

Jump to

Keyboard shortcuts

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