hostcheck

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectHostFacts

func DetectHostFacts(rt Runtime) map[string]any

func Run

func Run(decoded stepspec.CheckHost, runner Runner, rt Runtime, errCode string) (map[string]any, error)

Types

type Runner

type Runner interface {
	LookPath(file string) (string, error)
}

type Runtime

type Runtime struct {
	ReadHostFile  func(string) ([]byte, error)
	CurrentGOOS   func() string
	CurrentGOARCH func() string
}

func DefaultRuntime

func DefaultRuntime() Runtime

func ResolveRuntime

func ResolveRuntime(rt Runtime) Runtime

Jump to

Keyboard shortcuts

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