cert

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(log *zap.SugaredLogger, acmePath string, certsDir string) error

Extract the certs from the acme file

func WatchFileChanges

func WatchFileChanges(log *zap.SugaredLogger, acmePath string, certsDir string)

WatchFileChanges watch acme file changes and update the certs

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 Certificate

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

Certificate a certificate

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