vault

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveVaultConfig added in v1.6.0

func DeriveVaultConfig(conf *config.Config) *api.Config

Types

type AuthMethod

type AuthMethod interface {
	Authenticate() (string, error)
}

type SignatureClient

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

func NewVaultSigner

func NewVaultSigner(client *api.Client, auth AuthMethod, opts ...VaultOpts) (*SignatureClient, error)

func (*SignatureClient) ReadCaCert

func (c *SignatureClient) ReadCaCert() (string, error)

func (*SignatureClient) SignHostKey

func (c *SignatureClient) SignHostKey(publicKeyData string) (string, error)

func (*SignatureClient) SignUserKey

func (c *SignatureClient) SignUserKey(publicKeyData string) (string, error)

type VaultOpts added in v1.6.0

type VaultOpts func(client *SignatureClient) error

func SshMountPath added in v1.6.0

func SshMountPath(path string) VaultOpts

func VaultRole added in v1.6.0

func VaultRole(role string) VaultOpts

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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