Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrCustomFieldsType ¶ added in v0.14.0
type ErrCustomFieldsType struct {
Type internalvanafiapi.CustomFieldType
}
ErrCustomFieldsType provides a common error structure for an invalid Venafi custom field type
func (ErrCustomFieldsType) Error ¶ added in v0.14.0
func (err ErrCustomFieldsType) Error() string
type Interface ¶
type Interface interface { Sign(csrPEM []byte, duration time.Duration, customFields []internalvanafiapi.CustomField) (cert []byte, err error) Ping() error ReadZoneConfiguration() (*endpoint.ZoneConfiguration, error) SetClient(endpoint.Connector) }
func New ¶
func New(namespace string, secretsLister corelisters.SecretLister, issuer cmapi.GenericIssuer) (Interface, error)
type Venafi ¶
type Venafi struct {
// contains filtered or unexported fields
}
Venafi is a implementation of govcert library to manager certificates from TPP or Venafi Cloud
func (*Venafi) ReadZoneConfiguration ¶
func (v *Venafi) ReadZoneConfiguration() (*endpoint.ZoneConfiguration, error)
func (*Venafi) Sign ¶
func (v *Venafi) Sign(csrPEM []byte, duration time.Duration, customFields []internalvanafiapi.CustomField) (cert []byte, err error)
This function sends a request to Venafi to for a signed certificate. The CSR will be decoded to be validated against the zone configuration policy. Upon the template being successfully defaulted and validated, the CSR will be sent, as is.
type VenafiClientBuilder ¶
type VenafiClientBuilder func(namespace string, secretsLister corelisters.SecretLister, issuer cmapi.GenericIssuer) (Interface, error)
Click to show internal directories.
Click to hide internal directories.