cmd

package
v0.0.0-...-0e73642 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

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

func NewServeCmd() *cobra.Command

Types

type AcmeCertificate

type AcmeCertificate struct {
	Domain            string
	CertUrl           string
	CertStableUrl     string
	Key               []byte
	Crt               []byte
	Csr               []byte
	IssuerCertificate []byte
	AccountRef        string
}

type AcmeClient

type AcmeClient struct {
	Acme *acme.Client
	User *MyUser
}

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 CustomCert struct {
	Domain string
	Pem    []byte
}

type MyUser

type MyUser struct {
	Email        string
	Registration *acme.RegistrationResource
	// contains filtered or unexported fields
}

func (MyUser) GetEmail

func (u MyUser) GetEmail() string

func (MyUser) GetPrivateKey

func (u MyUser) GetPrivateKey() crypto.PrivateKey

func (MyUser) GetRegistration

func (u MyUser) GetRegistration() *acme.RegistrationResource

type ServeOptions

type ServeOptions struct {
	HaproxyDir         string
	StorageDir         string
	Staging            bool
	BundleCertificates bool
	LetsencryptMail    string
	StatsPort          int
	StatsUser          string
	StatsPassword      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL