api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func New

func New(cnf *config.Config) (*Api, error)

func (*Api) EnsureCertificate

func (p *Api) EnsureCertificate(domain string) error

func (*Api) GenerateCertificate

func (p *Api) GenerateCertificate(domain string) error

func (*Api) RenewCertificate

func (p *Api) RenewCertificate(domain string) error

func (*Api) SignCSR

func (p *Api) SignCSR(csrFile string) error

func (*Api) VerifyCertificate

func (p *Api) VerifyCertificate(domain string) (bool, error)

type PemCert

type PemCert struct {
	// contains filtered or unexported fields
}

func NewPemCert

func NewPemCert(certFile string) *PemCert

func (*PemCert) ExpireTime

func (p *PemCert) ExpireTime() time.Time

func (*PemCert) ExpiresIn

func (p *PemCert) ExpiresIn() time.Duration

func (*PemCert) IsExpiredAt

func (p *PemCert) IsExpiredAt(expire time.Time) bool

func (*PemCert) Parse

func (p *PemCert) Parse() error

Jump to

Keyboard shortcuts

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