cert

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 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 Account

type Account struct {
	Email        string       `json:"Email"`
	Registration Registration `json:"Registration"`
	PrivateKey   string       `json:"PrivateKey"`
	KeyType      string       `json:"KeyType"`
}

Account resolver account

type Acme

type Acme map[string]Resolver

Acme file type

type Body

type Body struct {
	Status  string   `json:"status"`
	Contact []string `json:"contact"`
}

Body registration body

type Cert added in v1.1.0

type Cert struct {
	Name      string
	NotBefore time.Time
	NotAfter  time.Time
}

Cert a certificate

func (*Cert) NotAfterString added in v1.1.0

func (c *Cert) NotAfterString() string

NotAfterString NotAfter as string

func (*Cert) NotBeforeString added in v1.1.0

func (c *Cert) NotBeforeString() string

NotBeforeString NotBefore as string

type Certificate

type Certificate struct {
	Domain      Domain `json:"domain"`
	Certificate string `json:"certificate"`
	Key         string `json:"key"`
	Store       string `json:"Store"`
}

Certificate a certificate

type Certs added in v1.1.0

type Certs interface {
	WatchFileChanges()
	Certs() []Cert
}

Certs all certificates

func New added in v1.2.0

func New(log *zap.SugaredLogger, acme string, certsDir string) (Certs, error)

New extract new certs

type Domain

type Domain struct {
	Main string `json:"main"`
}

Domain cert domain

type Registration

type Registration struct {
	Body Body   `json:"body"`
	URI  string `json:"uri"`
}

Registration account registration

type Resolver

type Resolver struct {
	Account      Account       `json:"Account"`
	Certificates []Certificate `json:"Certificates"`
}

Resolver cert resolver

Jump to

Keyboard shortcuts

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