Documentation ¶
Index ¶
- type CertficateRepo
- func (c *CertficateRepo) GenerateCertificate(ctx context.Context, cn string, ttl time.Duration) ([]byte, []byte, []byte, error)
- func (c *CertficateRepo) GetCACertificate(ctx context.Context) ([]byte, error)
- func (c *CertficateRepo) GetCertificate(ctx context.Context, sn string) ([]byte, bool, time.Time, error)
- func (c *CertficateRepo) SignCSR(ctx context.Context, csr []byte, cn string, ttl time.Duration) ([]byte, error)
- type SecretRepository
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 (*CertficateRepo) GetCACertificate ¶
func (c *CertficateRepo) GetCACertificate(ctx context.Context) ([]byte, error)
func (*CertficateRepo) GetCertificate ¶
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
Click to show internal directories.
Click to hide internal directories.