runtimegh

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

func Discover

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

Discover will return runtimes

func New

func New(fs fsh.FS, binToolDir string, ghClient *github.Client) *Runtime

func (*Runtime) GetLatest

func (r *Runtime) GetLatest(ctx context.Context, moduleReq 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(_ context.Context, str string) (string, error)

Parse will parse string to normal version. Supported strings:

golangci/golangci-lint@v2.5.0

func (*Runtime) Remove

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

func (r *Runtime) Version() string

Jump to

Keyboard shortcuts

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