Documentation
¶
Index ¶
- Constants
- Variables
- func KeyNotFoundError(n string) error
- type Client
- func (c *Client) Commit(ft *models.Feature, deleted bool) error
- func (c *Client) Delete(key string, scope string) error
- func (c *Client) Get(key string, v interface{}) error
- func (c *Client) GetInfo() (*models.Info, error)
- func (c *Client) InitRepo(create bool) error
- func (c *Client) KVsToFeatureMap(kvb stores.KVBytes) (*models.FeatureMap, error)
- func (c *Client) List(prefix string, scope string) (models.Features, error)
- func (c *Client) Namespace() string
- func (c *Client) Push() error
- func (c *Client) SendStatEvent(f *models.Feature, delete bool) error
- func (c *Client) Set(ft *models.Feature) error
- func (c *Client) UpdateCurrentSHA() (string, error)
- func (c *Client) Watch()
- func (c *Client) WriteOutputFile(kvb stores.KVBytes)
- type ClientIFace
- type MockRepo
- func (mr *MockRepo) Clone() error
- func (mr *MockRepo) Commit(bts []byte, msg string) error
- func (mr *MockRepo) Create() error
- func (mr *MockRepo) CurrentSHA() (string, error)
- func (mr *MockRepo) Enabled() bool
- func (mr *MockRepo) Exists() bool
- func (mr *MockRepo) Init()
- func (mr *MockRepo) Pull() error
- func (mr *MockRepo) Push() error
- type MockStore
Constants ¶
View Source
const InfoNameSpace = "info"
Variables ¶
View Source
var ErrNilValue = errors.New("value cannot be nil")
View Source
var ErrRepoExists = errors.New("repository already exists")
View Source
var ErrTypeChange = errors.New("cannot change existing feature types")
Functions ¶
func KeyNotFoundError ¶
Types ¶
type Client ¶
type Client struct {
Store stores.StoreIFace
Repo repo.IFace
Watcher watchers.KVWatcherIFace
Stats *godspeed.Godspeed
// contains filtered or unexported fields
}
func (*Client) KVsToFeatureMap ¶ added in v0.2.2
KVsToFeatures helper for unmarshalling `KVBytes` to a `FeatureMap`
func (*Client) UpdateCurrentSHA ¶ added in v0.2.2
func (*Client) WriteOutputFile ¶
type ClientIFace ¶
type ClientIFace interface {
List(prefix string, scope string) (models.Features, error)
Set(ft *models.Feature) error
Get(key string, v interface{}) error
Delete(key string, scope string) error
GetInfo() (*models.Info, error)
InitRepo(create bool) error
Commit(ft *models.Feature, deleted bool) error
Push() error
UpdateCurrentSHA() (string, error)
Watch()
Namespace() string
}
type MockRepo ¶
type MockRepo struct {
// contains filtered or unexported fields
}
func (*MockRepo) CurrentSHA ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.