Documentation ¶
Index ¶
- type GoModule
- func (g *GoModule) Changelog() string
- func (g *GoModule) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (g *GoModule) Source(workingDir string, resultSource *result.Source) error
- func (g *GoModule) Target(source string, scm scm.ScmHandler, dryRun bool, releaseTarget *result.Target) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoModule ¶
type GoModule struct { Spec Spec Version version.Version // contains filtered or unexported fields }
GoModule defines a resource of type "gomodule"
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 (*GoModule) Changelog ¶
Changelog returns the changelog for a specific golang module, or an empty string if it couldn't find one
func (*GoModule) Condition ¶
func (g *GoModule) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
Condition checks if a go module with a specific version is published
type Spec ¶
type Spec struct { // Proxy may have the schemes https, http. file is not supported at this time. If a URL has no scheme, https is assumed // [S][C] Proxy allows to override GO proxy similarly to GOPROXY environment variable. Proxy string `yaml:",omitempty"` // [S][C] Module specifies the name of the module Module string `yaml:",omitempty" jsonschema:"required"` // [C] Defines a specific package 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 "gomodule" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.