memcached_datastore

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

memcached_datastore is a package that provides a datastore.Datastore implementation, connecting to Memcached

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemcachedDatastore

type MemcachedDatastore struct {
	datastore.Datastore
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

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