version

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	GetVersion() Version
	GetDefaultGraph() ir.Graph
	GetDefaultGraphHash() string
	GetStarlarkInterpreter(buildContextDir string) starlark.Interpreter
}

Checker gets the version from the comment. # syntax=v0

func New

func New(file string) (Getter, error)

New returns a new version getter.

func NewByVersion added in v0.3.11

func NewByVersion(ver string) Getter

type Version

type Version string
const (
	// V1 is the v1 version of the starlark frontend language.
	V1 Version = "v1"
	// V0 is the v0 version of the starlark frontend language.
	// v0 is the default version of the language.
	V0 Version = "v0"
	// VersionUnknown is the unknown version of the starlark frontend language.
	VersionUnknown Version = "unknown"
)

Jump to

Keyboard shortcuts

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