Documentation
¶
Index ¶
- func Execute()
- func NewServeCmd() *cobra.Command
- type AcmeCertificate
- type AcmeClient
- type AcmeConfig
- type AcmeUser
- type CertificatesApi
- func (c *CertificatesApi) AddCustomCertificate(file []byte, domain string) error
- func (c *CertificatesApi) DeleteCustomCertificate(domain string) error
- func (c *CertificatesApi) GetCertficate(domain string) (*AcmeCertificate, error)
- func (c *CertificatesApi) GetCertficates(email string) ([]*AcmeCertificate, error)
- func (c *CertificatesApi) IsCustomCertificate(domain string) bool
- func (c *CertificatesApi) ProvisionCertificates(email string, bundle bool, domains ...string) error
- func (c *CertificatesApi) RenewCertificate(email string, bundle bool, domains ...string) error
- func (c *CertificatesApi) RenewCertificates(bundle bool) error
- type CustomCert
- type MyUser
- type ServeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewServeCmd ¶
Types ¶
type AcmeCertificate ¶
type AcmeClient ¶
type AcmeConfig ¶
type AcmeConfig struct {
Accounts []*AcmeUser
CustomCerts []CustomCert
}
type AcmeUser ¶
type AcmeUser struct {
Email string
Key []byte
Certificates []*AcmeCertificate
}
type CertificatesApi ¶
type CertificatesApi struct {
Options ServeOptions
Config *AcmeConfig
}
func NewCertificatesApi ¶
func NewCertificatesApi(o ServeOptions) (*CertificatesApi, error)
func (*CertificatesApi) AddCustomCertificate ¶
func (c *CertificatesApi) AddCustomCertificate(file []byte, domain string) error
func (*CertificatesApi) DeleteCustomCertificate ¶
func (c *CertificatesApi) DeleteCustomCertificate(domain string) error
func (*CertificatesApi) GetCertficate ¶
func (c *CertificatesApi) GetCertficate(domain string) (*AcmeCertificate, error)
func (*CertificatesApi) GetCertficates ¶
func (c *CertificatesApi) GetCertficates(email string) ([]*AcmeCertificate, error)
func (*CertificatesApi) IsCustomCertificate ¶
func (c *CertificatesApi) IsCustomCertificate(domain string) bool
func (*CertificatesApi) ProvisionCertificates ¶
func (c *CertificatesApi) ProvisionCertificates(email string, bundle bool, domains ...string) error
func (*CertificatesApi) RenewCertificate ¶
func (c *CertificatesApi) RenewCertificate(email string, bundle bool, domains ...string) error
func (*CertificatesApi) RenewCertificates ¶
func (c *CertificatesApi) RenewCertificates(bundle bool) error
type CustomCert ¶
type MyUser ¶
type MyUser struct {
Email string
Registration *acme.RegistrationResource
// contains filtered or unexported fields
}
func (MyUser) GetPrivateKey ¶
func (u MyUser) GetPrivateKey() crypto.PrivateKey
func (MyUser) GetRegistration ¶
func (u MyUser) GetRegistration() *acme.RegistrationResource
Click to show internal directories.
Click to hide internal directories.