Documentation ¶
Index ¶
- Constants
- func NewSecretGetter(vc *vaultapi.Client, path string, role string, certOpts *CertOptions) secret.SecretGetter
- func NewSecretManager() secret.SecretManager
- func NewSecretManagerWithOptions(c *vaultapi.Client, opts map[string]string) (secret.SecretManager, error)
- type CertOptions
- type SecretInfo
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
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) SetOptions ¶
Click to show internal directories.
Click to hide internal directories.