Documentation ¶
Overview ¶
memcached_datastore is a package that provides a datastore.Datastore implementation, connecting to Memcached
Index ¶
- type MemcachedDatastore
- func (d *MemcachedDatastore) Close() error
- func (d *MemcachedDatastore) GetCertificate(domain string) ([]byte, error)
- func (d *MemcachedDatastore) GetPrivateKey(domain string) ([]byte, error)
- func (d *MemcachedDatastore) SaveCertificate(domain string, certBytes []byte) error
- func (d *MemcachedDatastore) SavePrivateKey(domain string, keyBytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemcachedDatastore ¶
MemcachedDatastore is the datastore implementation for Memcached. It implements the datastore.Datastore interface, and can be provided to the NKS to store and retrieve private keys and certificates.
func NewMemcachedDatastore ¶
func NewMemcachedDatastore(addr []string, network string) (*MemcachedDatastore, error)
NewMemcachedDatastore creates a new MemcachedDatastore for a given set of parameters. It returns a *MemcachedDatastore, which can be used by the NKS to store and retrieve private keys and certificates.
func (*MemcachedDatastore) Close ¶
func (d *MemcachedDatastore) Close() error
Close terminates the connection to the Memcached server. Note that this function is a no-op, as the memcached library used does not support the Close function.
func (*MemcachedDatastore) GetCertificate ¶
func (d *MemcachedDatastore) GetCertificate(domain string) ([]byte, error)
GetPrivateKey retrieves the certificate for a given domain from memcached.
func (*MemcachedDatastore) GetPrivateKey ¶
func (d *MemcachedDatastore) GetPrivateKey(domain string) ([]byte, error)
GetPrivateKey retrieves the private key for a given domain from memcached.
func (*MemcachedDatastore) SaveCertificate ¶
func (d *MemcachedDatastore) SaveCertificate(domain string, certBytes []byte) error
GetPrivateKey stores the certificate for a given domain in memcached.
func (*MemcachedDatastore) SavePrivateKey ¶
func (d *MemcachedDatastore) SavePrivateKey(domain string, keyBytes []byte) error
GetPrivateKey stores the private key for a given domain in memcached.