vault

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 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(loginData map[string]string, mountPath string) (*AppRoleAuth, error)

func (*AppRoleAuth) Cleanup

func (t *AppRoleAuth) Cleanup(ctx context.Context, client *api.Client) error

func (*AppRoleAuth) Login added in v1.13.2

func (t *AppRoleAuth) Login(ctx context.Context, client *api.Client) (*api.Secret, error)

type AuthMethod

type AuthMethod interface {
	Login(ctx context.Context, client *api.Client) (*api.Secret, error)
	Cleanup(ctx context.Context, client *api.Client) 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(role string) (*KubernetesAuth, error)

func (*KubernetesAuth) Cleanup added in v1.8.0

func (t *KubernetesAuth) Cleanup(ctx context.Context, client *api.Client) error

func (*KubernetesAuth) Login added in v1.13.2

func (t *KubernetesAuth) Login(ctx context.Context, client *api.Client) (*api.Secret, error)

type NoAuth added in v1.12.0

type NoAuth struct {
}

func NewNoAuth added in v1.12.0

func NewNoAuth() *NoAuth

func (*NoAuth) Cleanup added in v1.12.0

func (t *NoAuth) Cleanup(ctx context.Context, client *api.Client) error

func (*NoAuth) Login added in v1.13.2

func (t *NoAuth) Login(ctx context.Context, client *api.Client) (*api.Secret, error)

type TokenAuth

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

func NewTokenAuth

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

func (*TokenAuth) Cleanup

func (t *TokenAuth) Cleanup(ctx context.Context, client *api.Client) error

func (*TokenAuth) Login added in v1.13.2

func (t *TokenAuth) Login(ctx context.Context, client *api.Client) (*api.Secret, error)

type TokenImplicitAuth added in v1.11.0

type TokenImplicitAuth struct {
}

func NewTokenImplicitAuth added in v1.11.0

func NewTokenImplicitAuth() *TokenImplicitAuth

func (*TokenImplicitAuth) Cleanup added in v1.11.0

func (t *TokenImplicitAuth) Cleanup(_ context.Context, _ *api.Client) error

func (*TokenImplicitAuth) Login added in v1.13.2

func (t *TokenImplicitAuth) Login(_ context.Context, _ *api.Client) (*api.Secret, 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