Documentation ¶
Index ¶
- func CreateVaultSdkClient(vaultAddress string, vaultCaCertFilePath string, logger log.Logger) (*api.Client, error)
- func DecodeCert(cert []byte) (x509.Certificate, error)
- func InsertNth(s string, n int) string
- func Login(client *api.Client, roleID string, secretID string) error
- func ToHexInt(n *big.Int) string
- func Unseal(client *api.Client, unsealFile string, logger log.Logger) error
- type LoggingRoundTripper
- type VaultSecrets
- func (vs *VaultSecrets) CreateCA(ctx context.Context, caType secrets.CAType, CAName string, ca secrets.Cert) (secrets.Cert, error)
- func (vs *VaultSecrets) DeleteCA(ctx context.Context, caType secrets.CAType, ca string) error
- func (vs *VaultSecrets) DeleteCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) error
- func (vs *VaultSecrets) GetCA(ctx context.Context, caType secrets.CAType, caName string) (secrets.Cert, error)
- func (vs *VaultSecrets) GetCAs(ctx context.Context, caType secrets.CAType) (secrets.Certs, error)
- func (vs *VaultSecrets) GetCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) (secrets.Cert, error)
- func (vs *VaultSecrets) GetIssuedCerts(ctx context.Context, caType secrets.CAType, caName string) (secrets.Certs, error)
- func (vs *VaultSecrets) GetSecretProviderName(ctx context.Context) string
- func (vs *VaultSecrets) ImportCA(ctx context.Context, caType secrets.CAType, CAName string, ...) error
- func (vs *VaultSecrets) SignCertificate(ctx context.Context, caType secrets.CAType, caName string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVaultSdkClient ¶ added in v1.0.1
func DecodeCert ¶ added in v1.0.1
func DecodeCert(cert []byte) (x509.Certificate, error)
Types ¶
type LoggingRoundTripper ¶ added in v1.0.1
type LoggingRoundTripper struct {
// contains filtered or unexported fields
}
This type implements the http.RoundTripper interface
func NewLoggingRoundTripper ¶ added in v1.0.1
func NewLoggingRoundTripper(next http.RoundTripper) *LoggingRoundTripper
type VaultSecrets ¶ added in v1.0.1
type VaultSecrets struct {
// contains filtered or unexported fields
}
func NewVaultSecrets ¶
func NewVaultSecretsWithClient ¶ added in v1.0.1
func (*VaultSecrets) DeleteCert ¶ added in v1.0.1
func (*VaultSecrets) GetIssuedCerts ¶ added in v1.0.1
func (*VaultSecrets) GetSecretProviderName ¶ added in v1.0.1
func (vs *VaultSecrets) GetSecretProviderName(ctx context.Context) string
func (*VaultSecrets) SignCertificate ¶ added in v1.0.1
func (vs *VaultSecrets) SignCertificate(ctx context.Context, caType secrets.CAType, caName string, csr *x509.CertificateRequest) (string, error)
Click to show internal directories.
Click to hide internal directories.