vault

package
v0.0.0-...-d8cdd36 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientNotFound = fmt.Errorf("Client ID not found")
)

Functions

func RunServer

func RunServer(cfg *config.Config) error

func StartServer

func StartServer(cfg *config.Config) error

func StopServer

func StopServer(cfg *config.Config)

Types

type CobraFn

type CobraFn func(*cobra.Command, []string) error

func RunOnVault

func RunOnVault(cfg *config.Config, fn VaultFn) CobraFn

type Vault

type Vault interface {
	GetSecrets() (map[string]string, error)
	ModifySecrets(func(map[string]string) error) error
}

func Open

func Open(cfg *config.Config) (Vault, error)

type VaultFn

type VaultFn func(Vault, ...string) error

type VaultServer

type VaultServer struct {
	// contains filtered or unexported fields
}

func (*VaultServer) GetSecrets

func (s *VaultServer) GetSecrets(input struct{}, secrets *map[string]string) error

func (*VaultServer) Stop

func (s *VaultServer) Stop(input struct{}, output *struct{}) error

func (*VaultServer) StoreSecrets

func (s *VaultServer) StoreSecrets(secrets map[string]string, output *struct{}) error

Jump to

Keyboard shortcuts

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