runtimego

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install added in v0.24.0

func Install(ctx context.Context, binToolDir, ver string) error

Types

type Runtime

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

func Discover added in v0.24.0

func Discover(ctx context.Context, binToolDir string) ([]*Runtime, error)

Discover will find all supported golang runtimes. It can be: - global installation - local ./bin/tools installation

func New

func New(binToolDir, goBin, goVer string) *Runtime

func (*Runtime) GetLatest

func (r *Runtime) GetLatest(ctx context.Context, module string) (string, bool, error)

func (*Runtime) GetModule

func (r *Runtime) GetModule(ctx context.Context, module string) (*structs.ModuleInfo, error)

func (*Runtime) Install

func (r *Runtime) Install(ctx context.Context, program string) error

func (*Runtime) Parse

func (r *Runtime) Parse(ctx context.Context, str string) (string, error)

Parse will parse string to normal version. github.com/kazhuravlev/toolset/cmd/toolset@latest github.com/kazhuravlev/toolset/cmd/toolset github.com/kazhuravlev/toolset/cmd/toolset@v4.2

func (*Runtime) Remove added in v0.22.0

func (r *Runtime) Remove(ctx context.Context, tool structs.Tool) error

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context, program string, args ...string) error

func (*Runtime) Version added in v0.24.0

func (r *Runtime) Version() string

Jump to

Keyboard shortcuts

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