vault

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromConfig added in v1.7.0

func FromConfig(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(req signature.SignHostKeyRequest) (string, error)

func (*SignatureClient) SignUserKey

func (c *SignatureClient) SignUserKey(req signature.SignUserKeyRequest) (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