host

package
v0.0.0-...-ae3a0a2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

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