autocert

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

README

AUTOCERT Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name                     = "autocert"
	Version                  = "0.0.1"
	ActionRequestCertificate = "RequestCertificate"
	AttrPublicKey            = "publicKey"
	AttrPrivateKey           = "privateKey"
	AttrCloudflareAPIToken   = "CloudflareAPIToken"
	AttrDomains              = "domains"
	AttrEmails               = "emails"
	AttrProduction           = "production"
	StateSuccessfully        = "successfully"
	StateError               = "error"
)

Variables

Functions

func New

func New() supervisor.Pluggable

New ...

func NewActions

func NewActions() map[string]supervisor.ActorAction

entity action list

func NewAttr

func NewAttr() m.Attributes

store entity status in this struct

func NewSettings

func NewSettings() m.Attributes

entity settings

func NewStates

func NewStates() (states map[string]supervisor.ActorState)

state list entity

Types

type Actor

type Actor struct {
	*supervisor.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service supervisor.Service) (actor *Actor, err error)

NewActor ...

func (*Actor) Destroy

func (e *Actor) Destroy()

type Autocert

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

func NewAutocert

func NewAutocert(domains []string, ownerEmail []string, cloudflareAPIToken string, prod bool) *Autocert

func (*Autocert) PrivateKey

func (a *Autocert) PrivateKey() (pemEncoded []byte)

func (*Autocert) PublicKey

func (a *Autocert) PublicKey() (pemEncodedPub []byte)

func (*Autocert) RequestCertificate

func (a *Autocert) RequestCertificate(ctx context.Context) (err error)

func (*Autocert) Shutdown

func (a *Autocert) Shutdown()

func (*Autocert) Start

func (a *Autocert) Start()

Jump to

Keyboard shortcuts

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