acme

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory creates a new ACME backend implementing logical.Backend

Types

type Cache added in v0.0.6

type Cache struct {
	*sync.Mutex
}

func NewCache added in v0.0.6

func NewCache() *Cache

func (*Cache) Clear added in v0.0.6

func (c *Cache) Clear(ctx context.Context, storage logical.Storage) error

func (*Cache) Create added in v0.0.6

func (c *Cache) Create(ctx context.Context, storage logical.Storage, role *role, key string, cert *certificate.Resource) error

func (*Cache) Delete added in v0.0.6

func (c *Cache) Delete(ctx context.Context, storage logical.Storage, key string) error

func (*Cache) List added in v0.0.6

func (c *Cache) List(ctx context.Context, storage logical.Storage) ([]string, error)

func (*Cache) Read added in v0.0.6

func (c *Cache) Read(ctx context.Context, storage logical.Storage, role *role, key string) (*CacheEntry, error)

type CacheEntry added in v0.0.6

type CacheEntry struct {
	Users   int
	Account string

	// We have to copy all fields of the cert here as the []byte ones are not
	// exported in certificate.Resource
	Domain            string
	CertURL           string
	CertStableURL     string
	PrivateKey        []byte
	Cert              []byte
	IssuerCertificate []byte
	CSR               []byte
}

func NewCacheEntry added in v0.0.6

func NewCacheEntry(account string, cert *certificate.Resource) *CacheEntry

func (*CacheEntry) Certificate added in v0.0.6

func (ce *CacheEntry) Certificate() *certificate.Resource

func (*CacheEntry) Save added in v0.0.6

func (ce *CacheEntry) Save(ctx context.Context, storage logical.Storage, key string) error

Directories

Path Synopsis
sidecar module

Jump to

Keyboard shortcuts

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