toolchain

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(bs *yabs.Yabs, version string) string

func Node added in v0.4.0

func Node(bs *yabs.Yabs, version string) string

Types

type DownloadURLFunc added in v0.4.0

type DownloadURLFunc func(ToolchainProvider) string

type Toolchain

type Toolchain struct {
	// contains filtered or unexported fields
}

func New

func New(y *yabs.Yabs) *Toolchain

func (*Toolchain) Go

func (t *Toolchain) Go(version string) string

type ToolchainProvider added in v0.4.0

type ToolchainProvider struct {
	// Type of Toolchain, e.g. `go`, `node`
	Type string
	// Version of toolchain to download
	Version string
	// Location of directory where bin lives, relative to archive
	BinLoc []string
	// Function to get the download URL of the toolchain, based on the provider
	DownloadURL DownloadURLFunc
}

func (ToolchainProvider) Download added in v0.4.0

func (tp ToolchainProvider) Download() error

func (ToolchainProvider) GetTargetName added in v0.4.0

func (tp ToolchainProvider) GetTargetName() string

func (ToolchainProvider) Register added in v0.4.0

func (tp ToolchainProvider) Register(y *yabs.Yabs)

Jump to

Keyboard shortcuts

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