Documentation ¶
Index ¶
- type Data
- type Npm
- func (n Npm) Changelog() string
- func (n Npm) Condition(source string) (bool, error)
- func (n Npm) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (n Npm) Source(workingDir string) (string, error)
- func (n Npm) Target(source string, dryRun bool) (bool, error)
- func (n Npm) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Versions map[string]versions DistTags distTags `json:"dist-tags,omitempty"` }
type Npm ¶
type Npm struct {
// contains filtered or unexported fields
}
Npm defines a resource of kind "npm"
func (Npm) Changelog ¶
Changelog returns the link to the found npm package version's deprecated info
func (Npm) ConditionFromSCM ¶
ConditionFromSCM checks if a key exists in a yaml file
type Spec ¶
type Spec struct { // Defines the specific npm package name Name string `yaml:",omitempty"` // Defines a specific package version Version string `yaml:",omitempty"` // Defines registry url URL string `yaml:",omitempty"` // VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest. VersionFilter version.Filter `yaml:",omitempty"` }
Spec defines a specification for an Npm package parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.