vault

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyRoleId       = "role_id"
	KeySecretId     = "secret_id"
	KeySecretIdFile = "secret_id_file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRoleAuth

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

func NewAppRoleAuth

func NewAppRoleAuth(client *api.Client, loginData map[string]string, mountPath string) (*AppRoleAuth, error)

func (*AppRoleAuth) Authenticate

func (t *AppRoleAuth) Authenticate() (string, error)

func (*AppRoleAuth) Cleanup

func (t *AppRoleAuth) Cleanup() error

type AuthMethod

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

type KubernetesAuth added in v1.8.0

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

func NewVaultKubernetesAuth added in v1.8.0

func NewVaultKubernetesAuth(client *api.Client, role string) (*KubernetesAuth, error)

func (*KubernetesAuth) Authenticate added in v1.8.0

func (t *KubernetesAuth) Authenticate() (string, error)

func (*KubernetesAuth) Cleanup added in v1.8.0

func (t *KubernetesAuth) Cleanup() error

type NoAuth added in v1.12.0

type NoAuth struct {
}

func NewNoAuth added in v1.12.0

func NewNoAuth() *NoAuth

func (*NoAuth) Authenticate added in v1.12.0

func (t *NoAuth) Authenticate() (string, error)

func (*NoAuth) Cleanup added in v1.12.0

func (t *NoAuth) Cleanup() error

type TokenAuth

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

func NewTokenAuth

func NewTokenAuth(token string) (*TokenAuth, error)

func (*TokenAuth) Authenticate

func (t *TokenAuth) Authenticate() (string, error)

func (*TokenAuth) Cleanup

func (t *TokenAuth) Cleanup() error

type TokenImplicitAuth added in v1.11.0

type TokenImplicitAuth struct {
}

func NewTokenImplicitAuth added in v1.11.0

func NewTokenImplicitAuth() *TokenImplicitAuth

func (*TokenImplicitAuth) Authenticate added in v1.11.0

func (t *TokenImplicitAuth) Authenticate() (string, error)

func (*TokenImplicitAuth) Cleanup added in v1.11.0

func (t *TokenImplicitAuth) Cleanup() error

type VaultClient

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

func NewVaultPki added in v1.2.0

func NewVaultPki(client *api.Client, auth AuthMethod, config *conf.Config) (*VaultClient, error)

func (*VaultClient) Cleanup

func (c *VaultClient) Cleanup() error

func (*VaultClient) FetchCa added in v1.12.0

func (c *VaultClient) FetchCa(binary bool) ([]byte, error)

func (*VaultClient) FetchCaChain added in v1.12.0

func (c *VaultClient) FetchCaChain() ([]byte, error)

func (*VaultClient) FetchCrl added in v1.12.0

func (c *VaultClient) FetchCrl(binary bool) ([]byte, error)

func (*VaultClient) Issue

func (c *VaultClient) Issue(opts *conf.Config) (*pki.CertData, error)

func (*VaultClient) ReadAcme added in v1.9.0

func (c *VaultClient) ReadAcme(commonName string, conf *conf.Config) (*pki.CertData, error)

func (*VaultClient) Revoke

func (c *VaultClient) Revoke(serial string) error

func (*VaultClient) Sign added in v1.4.0

func (c *VaultClient) Sign(csr string, opts *conf.Config) (*pki.Signature, error)

func (*VaultClient) Tidy

func (c *VaultClient) Tidy() error

Jump to

Keyboard shortcuts

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