Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificatesInfo ¶
type CertificatesInfo struct {
NotAfter, NotBefore *time.Time
DNS, IPs, Issuers string
AuthorityKeyID string
SubjectKeyID string
Serial string
Algorithm string
Sha1FingerPrint string
Sha256FingerPrint string
Subject string
SubjectAlternativeNames string
}
Information about stored certificates to be returned by the API.
func ParseCertificatesInfo ¶
func ParseCertificatesInfo(bundle []byte) (*CertificatesInfo, error)
type Storage ¶
type Storage interface { GetAll() ([]string, error) Get(name string) (string, int64, error) GetContents(name string) (string, error) GetRawContents(name string) (io.ReadCloser, error) GetCertificatesInfo(name string) (*CertificatesInfo, error) Delete(name string) error Replace(name string, config string) (string, error) Create(name string, contents io.ReadCloser) (string, int64, error) }
Click to show internal directories.
Click to hide internal directories.