types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultInfo

type VaultInfo struct {
	StatefulSet string   `json:"statefulSet"`
	Username    string   `json:"username,omitempty"`
	Password    string   `json:"password,omitempty"`
	UnsealKeys  []string `json:"unsealKeys,omitempty"`
	SecretPath  string   `json:"secretPath,omitempty"`
	Role        string   `json:"role,omitempty"`
}

VaultInfo represents the configuration data for a Vault instance.

func (*VaultInfo) JSON added in v0.1.0

func (i *VaultInfo) JSON() ([]byte, error)

JSON returns the JSON representation of the VaultInfo struct.

func (*VaultInfo) SecretMountAndPath added in v0.1.2

func (i *VaultInfo) SecretMountAndPath() (string, string)

SecretMountAndPath returns the mount and path components of the secret path.

func (*VaultInfo) ShouldShare added in v0.1.0

func (i *VaultInfo) ShouldShare() bool

ShouldShare returns true if the Vault instance should share its unseal keys.

Jump to

Keyboard shortcuts

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