Help us shape the future of Go! Take the 2026 Go Developer Survey

host

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MPL-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEnvDenyList = []string{
	"CONSUL_TOKEN",
	"CONSUL_HTTP_TOKEN",
	"VAULT_TOKEN",
	"NOMAD_LICENSE",
	"AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN",
	"GOOGLE_APPLICATION_CREDENTIALS",
}

DefaultEnvDenyList is the default set of environment variables that are filtered when passing the environment variables of the host to the task.

Update https://www.nomadproject.io/docs/configuration/client#env-denylist whenever this is changed.

Functions

This section is empty.

Types

type DiskUsage

type DiskUsage struct {
	DiskMB int64
	UsedMB int64
}

type HostData

type HostData struct {
	OS          string
	Network     []map[string]string
	ResolvConf  string
	Hosts       string
	Environment map[string]string
	Disk        map[string]DiskUsage
}

func MakeHostData

func MakeHostData() (*HostData, error)

Jump to

Keyboard shortcuts

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