Documentation
¶
Index ¶
- Variables
- type GoMod
- func (g *GoMod) Changelog() string
- func (g *GoMod) Condition(source string) (bool, error)
- func (g *GoMod) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (g *GoMod) Source(workingDir string) (string, error)
- func (g *GoMod) Target(source string, dryRun bool) (changed bool, err error)
- func (g *GoMod) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (changed bool, files []string, message string, err error)
- type Spec
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrModuleNotFound error = errors.New("GO module not found")
)
View Source
var ( // ErrWrongSpec is returned when the Spec has wrong content ErrWrongSpec error = errors.New("wrong spec content") )
Functions ¶
This section is empty.
Types ¶
type GoMod ¶
type GoMod struct {
// contains filtered or unexported fields
}
GoMod 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 (*GoMod) ConditionFromSCM ¶
ConditionFromSCM checks that a specific golang version exists. SCM doesn't affect the result
type Spec ¶
type Spec struct {
// File defines the go.mod file, default to "go.mod"
File string `yaml:",omitempty"`
// Module defines the module path
Module string `yaml:",omitempty"`
// Indirect specifies if we manipulate an indirect dependency
Indirect bool `yaml:",omitempty"`
// Version Defines a specific golang version
Version string `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.