Documentation ¶
Index ¶
- func CreateVaultSdkClient(vaultAddress string, vaultCaCertFilePath string, logger log.Logger) (*api.Client, error)
- func DecodeCert(cert []byte) (x509.Certificate, error)
- func Login(client *api.Client, roleID string, secretID string) error
- func Unseal(client *api.Client, unsealFile string, logger log.Logger) error
- type VaultSecrets
- func (vs *VaultSecrets) CreateCA(ctx context.Context, caType dto.CAType, CAName string, ...) (dto.Cert, error)
- func (vs *VaultSecrets) DeleteCA(ctx context.Context, caType dto.CAType, ca string) error
- func (vs *VaultSecrets) DeleteCert(ctx context.Context, caType dto.CAType, caName string, serialNumber string) error
- func (vs *VaultSecrets) GetCA(ctx context.Context, caType dto.CAType, caName string) (dto.Cert, error)
- func (vs *VaultSecrets) GetCAs(ctx context.Context, caType dto.CAType) ([]dto.Cert, error)
- func (vs *VaultSecrets) GetCert(ctx context.Context, caType dto.CAType, caName string, serialNumber string) (dto.Cert, error)
- func (vs *VaultSecrets) GetIssuedCerts(ctx context.Context, caType dto.CAType, caName string, ...) ([]dto.Cert, error)
- func (vs *VaultSecrets) GetSecretProviderName(ctx context.Context) string
- func (vs *VaultSecrets) ImportCA(ctx context.Context, caType dto.CAType, CAName string, ...) (dto.Cert, error)
- func (vs *VaultSecrets) SignCertificate(ctx context.Context, caType dto.CAType, caName string, ...) (dto.SignResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVaultSdkClient ¶
func DecodeCert ¶
func DecodeCert(cert []byte) (x509.Certificate, error)
Types ¶
type VaultSecrets ¶
type VaultSecrets struct {
// contains filtered or unexported fields
}
func NewVaultSecrets ¶
func (*VaultSecrets) DeleteCert ¶
func (*VaultSecrets) GetIssuedCerts ¶
func (*VaultSecrets) GetSecretProviderName ¶
func (vs *VaultSecrets) GetSecretProviderName(ctx context.Context) string
func (*VaultSecrets) ImportCA ¶
func (vs *VaultSecrets) ImportCA(ctx context.Context, caType dto.CAType, CAName string, certificate x509.Certificate, privateKey dto.PrivateKey, enrollerTTL int) (dto.Cert, error)
func (*VaultSecrets) SignCertificate ¶
func (vs *VaultSecrets) SignCertificate(ctx context.Context, caType dto.CAType, caName string, csr *x509.CertificateRequest, signVerbatim bool, cn string) (dto.SignResponse, error)
Click to show internal directories.
Click to hide internal directories.