Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access interface { Authenticate(accessToken string) error ListTemplates(accessToken string) error ReadTemplate(accessToken string, templateName string) error DeleteTemplate(accessToken string, templateName string) error ManageTemplate(accessToken string, templateName string) error CreateTemplate(accessToken string) error ListSSHTemplates(accessToken string) error CreateSSHTemplate(accessToken string) error ReadSSHTemplate(accessToken string, templateName string) error DeleteSSHTemplate(accessToken string, templateName string) error ManageSSHTemplate(accessToken string, templateName string) error CreateSSHCertificate(accessToken string, templateName string) error Purge(accessToken string) error CRLPurge(accessToken string) error CreateCertificate(accessToken string, templateName string) error RevokeCertificate(accessToken string, serialNumber string) error SignCertificate(accessToken string, templateName string) error GenerateIntermediateCSR(accessToken string) error SetIntermediateCertificate(accessToken string) error SetCAChain(accessToken string) error }
Access ------------------ Interface that defines all the methods that will be required to develop a backend system's Access Control objects
type Storage ¶
type Storage interface { InitConfig() error CreateCertificate(certificateData types.CreateCertificateData) error ListCertificates() ([]*big.Int, error) GetCertificate(serialNumber *big.Int) (string, error) RevokeCertificate(serialNumber *big.Int, reasonCode int, revocationDate time.Time) error CreateTemplate(template types.Template) error ListTemplates() ([]string, error) GetTemplate(templateName string) (types.Template, error) DeleteTemplate(templateName string) error CreateSSHTemplate(template types.SSHTemplate) error ListSSHTemplates() ([]string, error) GetSSHTemplate(templateName string) (types.SSHTemplate, error) DeleteSSHTemplate(templateName string) error WriteSigningCert(encodedCert string) error GetSigningCert() (string, error) WriteSigningKey(encodedKey string) error GetSigningKey() (string, error) WriteCRL(encodedCRL string) error GetCRL() (string, error) WriteCAChain(pemBundle []string) error GetCAChain() ([]string, error) GetRevokedCerts() ([]types.RevokedCertificate, error) CertificateRevoked(serialNumber *big.Int) (types.RevokedCertificate, error) GetAccessControl() Access }
Storage ----------------------------------- Interface that defines the methods and associated access control getter for a backend system's Storage objects
Click to show internal directories.
Click to hide internal directories.