acme

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(version string) logical.Factory

Factory creates a new ACME backend implementing logical.Backend

Types

type Cache

type Cache struct {
	*sync.Mutex
}

func NewCache

func NewCache() *Cache

func (*Cache) Clear

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

func (*Cache) Create

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

func (*Cache) Delete

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

func (*Cache) List

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

func (*Cache) Read

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

type CacheEntry

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

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

func (*CacheEntry) Certificate

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

func (*CacheEntry) Save

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