store

package
v0.0.0-...-4e63163 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package store implements the centralized store for GlusterD

We use etcd as the store backend, and use libkv as the frontend to etcd. libkv should allow us to change backends easily if required.

Index

Constants

View Source
const (
	// GlusterPrefix prefixes all paths in the store
	GlusterPrefix string = "gluster/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GDStore

type GDStore struct {
	store.Store
}

GDStore is the GlusterD centralized store

func New

func New() *GDStore

New creates a new GDStore

func (*GDStore) InitPrefix

func (s *GDStore) InitPrefix(p string) error

InitPrefix initializes the given prefix `p` in the store so that GETs on empty prefixes don't fail Returns error on failure, nil on success

Jump to

Keyboard shortcuts

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