cmd

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(version string) error

NewPlugin instantiates the plugin. nolint: funlen, cyclop

Types

type Options

type Options struct {
	Socket string `env:"SOCKET" envDefault:"unix:///opt/kms/vaultkms.socket"`

	Debug bool `env:"DEBUG"`

	// vault server
	VaultAddress   string `env:"VAULT_ADDR"`
	VaultNamespace string `env:"VAULT_NAMESPACE"`

	// vault auth
	VaultToken    string `env:"VAULT_TOKEN"`
	VaultK8sMount string `env:"VAULT_K8S_MOUNT" envDefault:"kubernetes"`
	VaultK8sRole  string `env:"VAULT_K8S_ROLE"`

	// vault transit
	VaultTransitKey   string `env:"VAULT_TRANSIT_KEY"   envDefault:"kms"`
	VaultTransitMount string `env:"VAULT_TRANSIT_MOUNT" envDefault:"transit"`

	Version bool
}

Jump to

Keyboard shortcuts

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