Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { NewRequest(method, requestPath string) *vault.Request RawRequest(r *vault.Request) (*vault.Response, error) SetToken(v string) Token() string Sys() *vault.Sys }
Client implements functionality to talk to a Vault server.
type ClientBuilder ¶
type ClientBuilder func(namespace string, secretsLister configreader.ConfigReader, issuer cmapi.GenericIssuer) (Interface, error)
ClientBuilder is a function type that returns a new Interface. Can be used in tests to create a mock signer of Vault certificate requests.
type Interface ¶
type Interface interface { CA() (caPEM []byte, err error) Sign(csrPEM []byte, duration time.Duration) (certPEM []byte, caPEM []byte, err error) Sys() *vault.Sys IsVaultInitializedAndUnsealed() error }
Interface implements various high level functionality related to connecting with a Vault server, verifying its status and signing certificate request for Vault's certificate. TODO: Sys() is duplicated here and in Client interface
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault implements Interface and holds a Vault issuer, secrets lister and a Vault client.
func (*Vault) IsVaultInitializedAndUnsealed ¶
Click to show internal directories.
Click to hide internal directories.