sysstore

package
v0.0.0-...-49c5947 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(dir string) *SysStore

New returns a new instance of a SysStore.

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) AddUser

func (sys *SysStore) AddUser(acct tlsfs.Account) error

AddUser adds the giving user into the underline filesystem.

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

func (sys *SysStore) RemoveDomain(email string, domain string) error

RemoveDomain removes associated domain from domains stored for giving user.

func (*SysStore) RemoveUser

func (sys *SysStore) RemoveUser(email string) error

RemoveUser removes all certificates and user data associated with email.

Jump to

Keyboard shortcuts

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