app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name         = "waltr"
	DefaultLabel = "app.kubernetes.io/name=vault"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIOpt added in v1.0.1

type CLIOpt func() func(a *State) *cobra.Command

type Opt

type Opt func(a *State)

Opt is configuration option for the application State

func WithVaultOpts

func WithVaultOpts(opts ...vault.ClientOption) Opt

WithVaultOpts configures waltr's VaultClient instance with custom Options from the vault-client-go package

type State added in v1.0.1

type State struct {
	*core.API

	// VaultClient is the HashCorp first-party Go Vault HTTP client, which waltr
	// uses for nearly all of its functionality
	VaultClient *vault.Client
}

State is the implementation for the `waltr` command-line application state

func New

func New(opts ...Opt) (*State, error)

New creates a newly initialized instance of the State type

Jump to

Keyboard shortcuts

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