cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type BootstrapOptions

type BootstrapOptions struct {
	NumKeys int   // Number of fernet keys to create
	Period  int64 // Period between each key rotation
}

BootstrapOptions holds the extra options needed to bootstrap fernet keys

type Configuration

type Configuration struct {
	Vault        VaultConfiguration // Configuration
	Vaults       []VaultConfiguration
	Consul       ConsulConfiguration
	TTL          int              // Interval between each poll on vault
	SecretPath   string           // Path in vault for fernet-keys secret
	Health       bool             // Enable health endpoint
	HealthPeriod int              // Period between each health check in seconds
	Bootstrap    BootstrapOptions // Options needed to bootstrap secrets
}

Configuration holds all the configuration for locksmith

type ConsulConfiguration

type ConsulConfiguration struct {
	Address   string // Consul address
	Proxy     string // Proxy URL used to contact Consul
	Token     string // Consul token use to access consul to read configuration and write lockKey
	TokenFile string // Path to find Consul token
	Lock      bool   // Use consul lock system
	LockKey   string // What key is used for the consul lock system
}

ConsulConfiguration holds all the options to create a vault client

type VaultConfiguration

type VaultConfiguration struct {
	Address    string // Vault address
	Proxy      string // Path to proxy
	Token      string // Vault token used to identify with this vault
	TokenFile  string // Path to file containing vault token
	RenewToken bool   // Enable token renewal
}

VaultConfiguration holds all the options to create a vault client

Jump to

Keyboard shortcuts

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