types

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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"`
	MountPath   string   `json:"mountPath,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