vault

package
v0.0.0-...-bff9524 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertficateRepo

type CertficateRepo struct {
	// contains filtered or unexported fields
}

func NewCertificateRepository

func NewCertificateRepository(v *vault.Vault, certificateMountPath, cnSuffix, pkiRoleID string) *CertficateRepo

func (*CertficateRepo) GenerateCertificate

func (c *CertficateRepo) GenerateCertificate(ctx context.Context, cn string, ttl time.Duration) ([]byte, []byte, []byte, error)

func (*CertficateRepo) GetCACertificate

func (c *CertficateRepo) GetCACertificate(ctx context.Context) ([]byte, error)

func (*CertficateRepo) GetCertificate

func (c *CertficateRepo) GetCertificate(ctx context.Context, sn string) ([]byte, bool, time.Time, error)

func (*CertficateRepo) SignCSR

func (c *CertficateRepo) SignCSR(ctx context.Context, csr []byte, cn string, ttl time.Duration) ([]byte, error)

type SecretRepository

type SecretRepository struct {
	// contains filtered or unexported fields
}

func NewSecretRepository

func NewSecretRepository(v *vault.Vault, enginePath string) *SecretRepository

func (*SecretRepository) GetCredentialsFunc

func (r *SecretRepository) GetCredentialsFunc(ctx context.Context, authType entity.RepositoryAuthType, secretPath string) entity.CredentialsFunc

func (*SecretRepository) GetSecret

func (r *SecretRepository) GetSecret(ctx context.Context, path, key string) (entity.Secret, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL