localfs

package
v0.0.0-...-5d42ba7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidID = errors.New("invalid ID: email required")

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Root string
	ID   string
}

func New

func New(opts StorageOptions) (*Storage, error)

func (Storage) DeleteAuthorization

func (s Storage) DeleteAuthorization(domain string) (err error)

func (Storage) DeleteCert

func (s Storage) DeleteCert(domain string) (err error)

func (Storage) LoadAccount

func (s Storage) LoadAccount(acct interface{}) (err error)

Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Account`

func (Storage) LoadAuthorization

func (s Storage) LoadAuthorization(domain string, authz interface{}) (err error)

Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Authorization`

func (Storage) LoadCert

func (s Storage) LoadCert(domain string, cert *x509.Certificate) (err error)

func (Storage) LoadCertFullChain

func (s Storage) LoadCertFullChain(domain string, cert *x509.Certificate) (err error)

func (Storage) LoadCertIssuer

func (s Storage) LoadCertIssuer(domain string, cert *x509.Certificate) (err error)

func (Storage) LoadCertKey

func (s Storage) LoadCertKey(domain string, key *jwk.RsaPrivateKey) (err error)

func (Storage) LoadKey

func (s Storage) LoadKey(key *jwk.RsaPrivateKey) (err error)

func (Storage) SaveAccount

func (s Storage) SaveAccount(acct interface{}) (err error)

Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Account`

func (Storage) SaveAuthorization

func (s Storage) SaveAuthorization(domain string, authz interface{}) (err error)

Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a `acmeagent.Authorization`

func (Storage) SaveCert

func (s Storage) SaveCert(domain string, issuerCert, myCert *x509.Certificate) (err error)

func (Storage) SaveCertKey

func (s Storage) SaveCertKey(domain string, k *jwk.RsaPrivateKey) (err error)

func (Storage) SaveKey

func (s Storage) SaveKey(k *jwk.RsaPrivateKey) (err error)

type StorageOptions

type StorageOptions struct {
	Root string
	ID   string
}

Jump to

Keyboard shortcuts

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