Documentation
¶
Index ¶
- type Runtime
- func (r *Runtime) GetLatest(ctx context.Context, moduleReq string) (string, bool, error)
- func (r *Runtime) GetModule(ctx context.Context, module string) (*structs.ModuleInfo, error)
- func (r *Runtime) GetPin(ctx context.Context, program string) (optional.Val[structs.Pin], error)
- func (r *Runtime) Install(ctx context.Context, program string, pin optional.Val[structs.Pin]) error
- func (r *Runtime) Parse(_ context.Context, str string) (string, error)
- func (r *Runtime) Remove(ctx context.Context, tool structs.Tool) error
- func (r *Runtime) Run(ctx context.Context, program string, args ...string) error
- func (r *Runtime) Version() string
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 (*Runtime) GetPin ¶ added in v0.43.0
GetPin fetches the GitHub release for program and records the SHA256 digest for every known platform that has a matching asset. Platforms that have no matching asset are skipped with a log message (DN-2). Returns an error if any matched asset has an empty digest (release predates digest support) or no assets were found for any platform.
func (*Runtime) Parse ¶
Parse will parse string to normal version. Supported strings:
golangci/golangci-lint@v2.5.0
Click to show internal directories.
Click to hide internal directories.