Versions in this module Expand all Collapse all v0 v0.2.0 Feb 18, 2019 Changes in this version + func FilterExactPrefix(prefix string, cut string) func(client.Node) bool + func FilterPrefix(prefix string, cut string) func(client.Node) bool + func FilterRemoveDirectories() func(client.Node) bool + func IsFailedChecksumError(e error) bool + func IsNotExistError(e error) bool + func Load(servertype string) (caddy.Input, error) + func NewCluster() (certmagic.Storage, error) + type Cluster struct + func (c Cluster) Delete(key string) error + func (c Cluster) Exists(key string) bool + func (c Cluster) List(prefix string, recursive bool) ([]string, error) + func (c Cluster) Load(key string) ([]byte, error) + func (c Cluster) Lock(key string) error + func (c Cluster) Stat(key string) (certmagic.KeyInfo, error) + func (c Cluster) Store(key string, value []byte) error + func (c Cluster) Unlock(key string) error + type ClusterConfig struct + CaddyFile []byte + CaddyFilePath string + DisableCaddyLoad bool + KeyPrefix string + LockTimeout time.Duration + ServerIP []string + func NewClusterConfig(opts ...ConfigOption) (*ClusterConfig, error) + type ConfigOption func(c *ClusterConfig) error + func ConfigOptsFromEnvironment() (opts []ConfigOption) + func WithCaddyFile(s string) ConfigOption + func WithDisableCaddyfileLoad(s string) ConfigOption + func WithPrefix(s string) ConfigOption + func WithServers(s string) ConfigOption + func WithTimeout(s string) ConfigOption + type FailedChecksum struct + Key string + func (e FailedChecksum) Error() string + type Lock struct + Key string + Obtained string + Token string + type Metadata struct + Hash [20]byte + IsDir bool + Path string + Size int + Timestamp time.Time + func NewMetadata(key string, data []byte) Metadata + type NotExist struct + Key string + func (e NotExist) Error() string + type Service interface + Delete func(key string) error + List func(path string, filters ...func(client.Node) bool) ([]string, error) + Load func(key string) ([]byte, error) + Lock func(key string) error + Metadata func(key string) (*Metadata, error) + Store func(key string, value []byte) error + Unlock func(key string) error + func NewService(c *ClusterConfig) Service