Documentation ¶
Index ¶
- Constants
- type AppRoleAuth
- type AuthMethod
- type KubernetesAuth
- type NoAuth
- type TokenAuth
- type TokenImplicitAuth
- type VaultClient
- func (c *VaultClient) Cleanup() error
- func (c *VaultClient) FetchCa(binary bool) ([]byte, error)
- func (c *VaultClient) FetchCaChain() ([]byte, error)
- func (c *VaultClient) FetchCrl(binary bool) ([]byte, 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 ¶
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)
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(role string) (*KubernetesAuth, error)
type TokenAuth ¶
type TokenAuth struct {
// contains filtered or unexported fields
}
func NewTokenAuth ¶
type TokenImplicitAuth ¶ added in v1.11.0
type TokenImplicitAuth struct { }
func NewTokenImplicitAuth ¶ added in v1.11.0
func NewTokenImplicitAuth() *TokenImplicitAuth
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) 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.