types

package
v1.11.0-jeff.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string, dfault string, combineWith ...string) string

GetEnv retrieves the environment variable key. If it does not exist it returns the default.

func HostEtc

func HostEtc(combineWith ...string) string

Types

type Backend

type Backend interface {
	GetKernelHeaders(directory string) error
	Close()
}

type Distro

type Distro struct {
	Display string
	Release string
	Family  string
}

type Logger

type Logger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

type Target

type Target struct {
	Distro    Distro
	OSRelease map[string]string
	Uname     Utsname
}

func NewTarget

func NewTarget() (Target, error)

type Utsname

type Utsname struct {
	Kernel  string
	Machine string
}

Jump to

Keyboard shortcuts

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