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: 0 Imported by: 0

Documentation

Overview

This Datastore package holds a sole interface, which is used to interface with external storage mechanisms, such as Redis or Memcached, for storing private keys and their certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore interface {
	// GetPrivateKey gets the private key associated with the given domain.
	GetPrivateKey(domain string) ([]byte, error)
	// GetCertificate gets the certificate associated with the given domain.
	GetCertificate(domain string) ([]byte, error)
	// SavePrivateKey saves the private key associated with the given domain.
	SavePrivateKey(domain string, key []byte) error
	// SaveCertificate saves the certificate associated with the given domain.
	SaveCertificate(domain string, cert []byte) error
	// Close closes the datastore.
	Close() error
}

Datastore is an interface that defines the methods that a datastore must implement. It allows for retrieval of certificates and private keys from a remote database of some sort. WARNING: The security of this entire system is only as secure as its weakest link - make sure that the datastore is secure.

Directories

Path Synopsis
memcached_datastore is a package that provides a datastore.Datastore implementation, connecting to Memcached
memcached_datastore is a package that provides a datastore.Datastore implementation, connecting to Memcached
redis_datastore is a package that provides a datastore.Datastore implementation, connecting to Redis
redis_datastore is a package that provides a datastore.Datastore implementation, connecting to Redis

Jump to

Keyboard shortcuts

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