language

package
v0.55.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Stable  bool
	Version string
}

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

func New(spec interface{}) (*Language, error)

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) Changelog

func (l *Language) Changelog() string

Changelog returns a link to the Golang version

func (*Language) Condition

func (l *Language) Condition(source string, scm scm.ScmHandler, resultCondition *result.Condition) error

Condition checks if a specific stable Golang version is published

func (*Language) Source

func (g *Language) Source(workingDir string, resultSource *result.Source) error

Source returns the latest go module version

func (*Language) Target

func (l *Language) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error

Target is not supported for the Golang resource

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL