language

package
v0.49.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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) (bool, error)

Condition checks that a specific golang version exists

func (*Language) ConditionFromSCM

func (l *Language) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)

ConditionFromSCM checks that a specific golang version exists. SCM doesn't affect the result

func (*Language) Source

func (g *Language) Source(workingDir string) (string, error)

Source returns the latest go module version

func (*Language) Target

func (l *Language) Target(source string, dryRun bool) (bool, error)

Target is not supported for the Golang resource

func (*Language) TargetFromSCM

func (l *Language) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)

TargetFromSCM 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