Documentation
¶
Index ¶
- func CreateDummyRc() (string, error)
- func GetMockClient(baseUrl string, mockedToken string, mockedBody string, ...) *httpclient.MockClient
- type Data
- type Npm
- func (n Npm) Changelog() string
- func (n Npm) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (n Npm) Source(workingDir string, resultSource *result.Source) error
- func (n Npm) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
- type RcConfig
- type Registry
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDummyRc ¶ added in v0.44.0
func GetMockClient ¶ added in v0.44.0
func GetMockClient(baseUrl string, mockedToken string, mockedBody string, mockedHTTPStatusCode int) *httpclient.MockClient
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
type Spec ¶
type Spec struct {
// Defines the specific npm package name
Name string `yaml:",omitempty"`
// Defines a specific package version
Version string `yaml:",omitempty"`
// URL defines the registry url (defaults to `https://registry.npmjs.org/`)
URL string `yaml:",omitempty"`
// RegistryToken defines the token to use when connection to the registry
RegistryToken string `yaml:",omitempty"`
// VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest.
VersionFilter version.Filter `yaml:",omitempty"`
// NpmrcPath defines the path to the .npmrc file
NpmrcPath string `yaml:"npmrcpath,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.