store

package
v0.0.0-...-82d39d6 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVaultKVMount       = "VAULT_KV_MOUNT"
	EnvVaultKVCertsPath   = "VAULT_KV_CERTS_PATH"
	EnvVaultKVAccountPath = "VAULT_KV_ACCOUNT_PATH"
	EnvVaultClientCert    = "VAULT_CLIENT_CERT_PATH"
	EnvVaultClientKey     = "VAULT_CLIENT_KEY_PATH"
	EnvVaultCACert        = "VAULT_CA_PATH"
	EnvVaultCertAuth      = "VAULT_CERT_AUTH"
	EnvVaultCertAuthRole  = "VAULT_CERT_AUTH_ROLE"

	VaultKVKeyCert = "cert"
	VaultKVKeyKey  = "key"
	VaultKVKeyCA   = "ca"
	VaultKVKeyPFX  = "pfx"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Retrieve(cn string) (*cert.Bundle, error)
	Store(*cert.Bundle) error

	StoreAccount(map[string]string) error
	RetrieveAccount() (map[string]string, error)
}

type VaultStore

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

func NewVaultStore

func NewVaultStore() (*VaultStore, error)

func (*VaultStore) Retrieve

func (s *VaultStore) Retrieve(cn string) (*cert.Bundle, error)

Retrieve implements Store

func (*VaultStore) RetrieveAccount

func (s *VaultStore) RetrieveAccount() (map[string]string, error)

RetrieveAccount implements Store

func (*VaultStore) Store

func (s *VaultStore) Store(cb *cert.Bundle) error

Store implements Store

func (*VaultStore) StoreAccount

func (s *VaultStore) StoreAccount(acc map[string]string) error

StoreAccount implements Store

Jump to

Keyboard shortcuts

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