Documentation ¶
Index ¶
Constants ¶
View Source
const ( Issued = 0 NotNeeded = 1 Error = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertData ¶ added in v1.5.0
func (*CertData) AsContainer ¶ added in v1.5.0
func (*CertData) HasCertificate ¶ added in v1.5.0
func (*CertData) HasPrivateKey ¶ added in v1.5.0
type IssueOutcome ¶
type IssueOutcome int
type IssueSink ¶ added in v1.8.0
type IssueSink interface { WriteCert(cert *CertData) error ReadCert() (*x509.Certificate, error) }
IssueSink defines pluggable sink to write certificate data to.
type Pki ¶
type Pki interface { // Issue issues a new certificate from the PKI Issue(opts *conf.Config) (*CertData, error) // Sign signs a CSR Sign(csr string, opts *conf.Config) (*Signature, error) // Revoke revokes a certificate by its serial number Revoke(serial string) error ReadAcme(commonName string, config *conf.Config) (*CertData, error) // Tidy cleans up the PKI blob storage of dangling certificates Tidy() error // Cleanup cleans up the used resources of the client is not related to PKI operations Cleanup() error }
type PkiCli ¶
type PkiCli struct {
// contains filtered or unexported fields
}
func NewPki ¶
func NewPki(pki Pki, strategy issue_strategies.IssueStrategy) (*PkiCli, error)
type StorageImplementation ¶ added in v1.8.0
type StorageImplementation interface { Read() ([]byte, error) CanRead() error Write([]byte) error CanWrite() error }
StorageImplementation is a simple wrapper around a key artifact (cert, key, ca, crl, csr). This enables decoupling from the actual resource (file-based, kubernetes, network, ..) and make it interchangeable.
Click to show internal directories.
Click to hide internal directories.