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
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.IFace Repo repo.IFace 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 }
Click to show internal directories.
Click to hide internal directories.