injector

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel  = "info"
	DefaultLogFormat = "standard"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

func (*Command) Help

func (c *Command) Help() string

func (*Command) Run

func (c *Command) Run(args []string) int

TODO Add flag for Vault TLS

func (*Command) Synopsis

func (c *Command) Synopsis() string

type Specification

type Specification struct {
	// Listen is the AGENT_INJECT_LISTEN environment variable.
	Listen string `split_words:"true" `

	// LogLevel is the AGENT_INJECT_LOG_LEVEL environment variable.
	LogLevel string `split_words:"true"`

	// LogFormat is the AGENT_INJECT_LOG_FORMAT environment variable
	LogFormat string `split_words:"true"`

	// TLSAuto is the AGENT_INJECT_TLS_AUTO environment variable.
	TLSAuto string `envconfig:"tls_auto"`

	// TLSAutoHosts is the AGENT_INJECT_TLS_AUTO_HOSTS environment variable.
	TLSAutoHosts string `envconfig:"tls_auto_hosts"`

	// TLSCertFile is the AGENT_INJECT_TLS_CERT_FILE environment variable.
	TLSCertFile string `envconfig:"tls_cert_file"`

	// TLSKeyFile is the AGENT_INJECT_TLS_KEY_FILE environment variable.
	TLSKeyFile string `envconfig:"tls_key_file"`

	// VaultAddr is the AGENT_INJECT_VAULT_ADDR environment variable.
	VaultAddr string `split_words:"true"`

	// VaultImage is the AGENT_INJECT_VAULT_IMAGE environment variable.
	VaultImage string `split_words:"true"`

	// VaultAuthPath is the AGENT_INJECT_VAULT_AUTH_PATH environment variable.
	VaultAuthPath string `split_words:"true"`

	// RevokeOnShutdown is AGENT_INJECT_REVOKE_ON_SHUTDOWN environment variable.
	RevokeOnShutdown string `split_words:"true"`

	// RunAsUser is the AGENT_INJECT_RUN_AS_USER environment variable. (uid)
	RunAsUser string `envconfig:"AGENT_INJECT_RUN_AS_USER"`

	// RunAsGroup is the AGENT_INJECT_RUN_AS_GROUP environment variable. (gid)
	RunAsGroup string `envconfig:"AGENT_INJECT_RUN_AS_GROUP"`

	// RunAsSameUser is the AGENT_INJECT_RUN_AS_SAME_USER environment variable.
	RunAsSameUser string `envconfig:"AGENT_INJECT_RUN_AS_SAME_USER"`

	// SetSecurityContext is the AGENT_INJECT_SET_SECURITY_CONTEXT environment variable.
	SetSecurityContext string `envconfig:"AGENT_INJECT_SET_SECURITY_CONTEXT"`

	// TelemetryPath is the AGENT_INJECT_TELEMETRY_PATH environment variable.
	TelemetryPath string `split_words:"true"`
}

Specification are the supported environment variables, prefixed with AGENT_INJECT. The names of the variables in the struct are split using camel case: Specification.VaultAddr = AGENT_INJECT_VAULT_ADDR

Jump to

Keyboard shortcuts

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