Documentation
¶
Index ¶
- type Info
- type Language
- func (l *Language) Changelog() string
- func (l *Language) Condition(source string) (bool, error)
- func (l *Language) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (g *Language) Source(workingDir string) (string, error)
- func (l *Language) Target(source string, dryRun bool) (bool, error)
- func (l *Language) 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 Language ¶
type Language struct {
Spec Spec
Version version.Version
// contains filtered or unexported fields
}
Language defines a resource of type "go language"
func New ¶
New returns a reference to a newly initialized Go Module object from a godmodule.Spec or an error if the provided Spec triggers a validation error.
func (*Language) ConditionFromSCM ¶
ConditionFromSCM checks that a specific golang version exists. SCM doesn't affect the result
type Spec ¶
type Spec struct {
// [C] Version defines a specific golang version
Version string `yaml:",omitempty"`
// [S] 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 a "Golang" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.