Documentation ¶
Index ¶
- Constants
- func FetchCert(vaultAddress, pkiMount string, binary bool) ([]byte, error)
- func FetchCertChain(vaultAddress, pkiMount string) ([]byte, error)
- func FetchCrl(vaultAddress, pkiMount string, binary bool) ([]byte, error)
- type AppRoleAuth
- type AuthMethod
- type KubernetesAuth
- type TokenAuth
- type TokenImplicitAuth
- type VaultClient
- func (c *VaultClient) Cleanup() error
- func (c *VaultClient) Issue(opts *conf.Config) (*pki.CertData, error)
- func (c *VaultClient) ReadAcme(commonName string, conf *conf.Config) (*pki.CertData, error)
- func (c *VaultClient) Revoke(serial string) error
- func (c *VaultClient) Sign(csr string, opts *conf.Config) (*pki.Signature, error)
- func (c *VaultClient) Tidy() error
Constants ¶
View Source
const ( KeyRoleId = "role_id" KeySecretId = "secret_id" KeySecretIdFile = "secret_id_file" )
Variables ¶
This section is empty.
Functions ¶
func FetchCertChain ¶ added in v1.1.0
Types ¶
type AppRoleAuth ¶
type AppRoleAuth struct {
// contains filtered or unexported fields
}
func NewAppRoleAuth ¶
func (*AppRoleAuth) Authenticate ¶
func (t *AppRoleAuth) Authenticate() (string, error)
func (*AppRoleAuth) Cleanup ¶
func (t *AppRoleAuth) Cleanup() error
type AuthMethod ¶
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 TokenAuth ¶
type TokenAuth struct {
// contains filtered or unexported fields
}
func NewTokenAuth ¶
func (*TokenAuth) Authenticate ¶
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) Revoke ¶
func (c *VaultClient) Revoke(serial string) error
func (*VaultClient) Tidy ¶
func (c *VaultClient) Tidy() error
Click to show internal directories.
Click to hide internal directories.