vault

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	Address   string `mapstructure:"address"`
	TokenFile string `mapstructure:"token-file" yaml:"token-file,omitempty"`
	Mount     string `mapstructure:"mount"`
	Secret    string `default:"%s/github-webhook" mapstructure:"secret" yaml:"secret"`
	Field     string `default:"secret" mapstructure:"field" yaml:"field"`
	// contains filtered or unexported fields
}

func (*Vault) GetSecret

func (v *Vault) GetSecret(targetName string) (secret string, err error)

GetSecret retrieves the secret for a specific target instance

func (*Vault) Initialize

func (v *Vault) Initialize() (err error)

func (*Vault) IsInitialized

func (v *Vault) IsInitialized() bool

Jump to

Keyboard shortcuts

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