pki

package
v0.0.0-...-85ffd96 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UID = "PKI"

Variables

This section is empty.

Functions

func NewSecretGetter

func NewSecretGetter(vc *vaultapi.Client, path string, role string, certOpts *CertOptions) secret.SecretGetter

func NewSecretManager

func NewSecretManager() secret.SecretManager

func NewSecretManagerWithOptions

func NewSecretManagerWithOptions(c *vaultapi.Client, opts map[string]string) (secret.SecretManager, error)

Types

type CertOptions

type CertOptions struct {
	CommonName        string `json:"common_name,omitempty"`
	AltName           string `json:"alt_name,omitempty"`
	IpSans            string `json:"ip_sans,omitempty"`
	UriSans           string `json:"uri_sans,omitempty"`
	OtherSans         string `json:"other_sans,omitempty"`
	Ttl               string `json:"ttl,omitempty"`
	Format            string `json:"format,omitempty"`
	PrivateKeyFormat  string `json:"private_key_format,omitempty"`
	ExcludeCnFromSans bool   `json:"exclude_cn_from_sans,omitempty"`
}

type SecretInfo

type SecretInfo struct {
	// Specifies the path where secret engine is enabled
	Path string

	// Specifies the role
	Role string

	CertOpts *CertOptions

	Client *vaultapi.Client
}

func New

func New() *SecretInfo

func (*SecretInfo) GetSecret

func (s *SecretInfo) GetSecret() (*vaultapi.Secret, error)

func (*SecretInfo) SetOptions

func (s *SecretInfo) SetOptions(c *vaultapi.Client, opts map[string]string) error

Jump to

Keyboard shortcuts

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