Documentation ¶
Index ¶
- type SysStore
- func (sys *SysStore) AddDomain(email string, cert tlsfs.TLSDomainCertificate, replaceIfExists bool) error
- func (sys *SysStore) AddUser(acct tlsfs.Account) error
- func (sys *SysStore) GetCertificate(email string, domain string) (tlsfs.TLSDomainCertificate, error)
- func (sys *SysStore) GetUser(email string) (tlsfs.DomainAccount, error)
- func (sys *SysStore) RemoveDomain(email string, domain string) error
- func (sys *SysStore) RemoveUser(email string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SysStore ¶
type SysStore struct {
// contains filtered or unexported fields
}
SysStore implements the tslfs.CacheStore.
func (*SysStore) AddDomain ¶
func (sys *SysStore) AddDomain(email string, cert tlsfs.TLSDomainCertificate, replaceIfExists bool) error
AddDomain attempts to add certificate into associated domain if it does not exists but will override if replaceIfExists is true.
func (*SysStore) GetCertificate ¶
func (sys *SysStore) GetCertificate(email string, domain string) (tlsfs.TLSDomainCertificate, error)
GetCertificate returns the TLSDomainCertificate for the giving user through it's email and domain name if it exists, else an error is returned.
func (*SysStore) GetUser ¶
func (sys *SysStore) GetUser(email string) (tlsfs.DomainAccount, error)
GetUser returns a tlsfs.DomainAccount that contains a user with associated certificates.
func (*SysStore) RemoveDomain ¶
RemoveDomain removes associated domain from domains stored for giving user.
func (*SysStore) RemoveUser ¶
RemoveUser removes all certificates and user data associated with email.
Click to show internal directories.
Click to hide internal directories.