model

package
v0.0.0-...-041bb98 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationModel

type AuthorizationModel interface {
	Refresh() error

	Authorization() types.Authorization

	UpdateChallenge(challengeResponse types.ChallengeResponding) error
	SaveChallengeData(challengeResponse types.ChallengeResponding) error
}

type CertificateModel

type CertificateModel interface {
	Refresh() error

	Certificate() types.Certificate

	Revoke() error

	SetName(name string) error
	SetRevoked(revoked bool) error // this just sets the internal revoked state, it doesn't actually revoke anything
	SetPrivateKey(privateKey interface{}) error
}

type Controller

type Controller interface {
	GetDirectory(rootURL string, refresh bool) (DirectoryModel, error)

	LoadRegistration(name string) (RegistrationModel, error)
}

func MakeController

func MakeController(storage storage_interface.Storage) Controller

type DirectoryModel

type DirectoryModel interface {
	Refresh() error

	Directory() types.Directory

	NewRegistration(name string, signingKey types.SigningKey, contact []string) (RegistrationModel, error)
}

type RegistrationModel

type RegistrationModel interface {
	Registration() types.Registration
	Refresh() error
	Update(contact []string, AgreementURL *string) error

	AuthorizationInfos() (storage_interface.AuthorizationInfos, error)
	AuthorizationInfosWithStatus(status types.AuthorizationStatus) (storage_interface.AuthorizationInfos, error)
	Authorizations() ([]AuthorizationModel, error)
	LoadAuthorizationByURL(authURL string) (AuthorizationModel, error)
	FetchAllAuthorizations(updateAll bool) error
	ImportAuthorizationByURL(authURL string, refresh bool) (AuthorizationModel, error)
	GetAuthorizationByDNS(dnsIdentifier string, refresh bool) (AuthorizationModel, error)
	NewAuthorization(dnsIdentifier string) (AuthorizationModel, error)
	AuthorizeDNS(dnsIdentifier string) (AuthorizationModel, error)

	CertificateInfos() ([]storage_interface.CertificateInfo, error)
	CertificateInfosAll() ([]storage_interface.CertificateInfo, error)
	Certificates() ([]CertificateModel, error)
	CertificatesAll() ([]CertificateModel, error)
	LoadCertificate(locationOrName string) (CertificateModel, error)
	FetchAllCertificates(updateAll bool) error
	ImportCertificate(certURL string, refresh bool) (CertificateModel, error)
	NewCertificate(name string, csr pem.Block) (CertificateModel, error)
}

Jump to

Keyboard shortcuts

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