Versions in this module Expand all Collapse all v0 v0.1.1 Jan 6, 2020 Changes in this version + const PathFormatterError + const PathFormatterOK + const SourceRootNotInPrefix + type API interface + Get func(string, *api.QueryOptions) (*api.KVPair, *api.QueryMeta, error) + Put func(*api.KVPair, *api.WriteOptions) (*api.WriteMeta, error) + Txn func(api.KVTxnOps, *api.QueryOptions) (bool, *api.KVTxnResponse, *api.QueryMeta, error) + type File interface + Create func(kv Handler, repo repository.Repo) error + Delete func(kv Handler, repo repository.Repo) error + GetPath func() string + Update func(kv Handler, repo repository.Repo) error + func Init(path string, repo repository.Repo) File + type Handler interface + DeleteKV func(repository.Repo, string) error + DeleteTreeKV func(repository.Repo, string) error + HandleUpdate func(repository.Repo) error + PutKV func(repository.Repo, string, []byte) error + type KVHandler struct + func New(config *config.ConsulConfig) (*KVHandler, error) + func (h *KVHandler) Commit() error + func (h *KVHandler) Delete(key string, wOptions *api.WriteOptions) (*api.WriteMeta, error) + func (h *KVHandler) DeleteKV(repo repository.Repo, prefix string) error + func (h *KVHandler) DeleteTree(key string, wOptions *api.WriteOptions) (*api.WriteMeta, error) + func (h *KVHandler) DeleteTreeKV(repo repository.Repo, prefix string) error + func (h *KVHandler) HandleInit(repos []repository.Repo) error + func (h *KVHandler) HandleUpdate(repo repository.Repo) error + func (h *KVHandler) Put(kvPair *api.KVPair, wOptions *api.WriteOptions) (*api.WriteMeta, error) + func (h *KVHandler) PutKV(repo repository.Repo, prefix string, value []byte) error + func (h *KVHandler) UpdateToHead(repo repository.Repo) error + type TextFile struct + func (f *TextFile) Create(kv Handler, repo repository.Repo) error + func (f *TextFile) Delete(kv Handler, repo repository.Repo) error + func (f *TextFile) GetPath() string + func (f *TextFile) Update(kv Handler, repo repository.Repo) error + type TransactionIntegrityError struct + func (e *TransactionIntegrityError) Error() string + type YAMLFile struct + func (f *YAMLFile) Create(kv Handler, repo repository.Repo) error + func (f *YAMLFile) Delete(kv Handler, repo repository.Repo) error + func (f *YAMLFile) GetPath() string + func (f *YAMLFile) Update(kv Handler, repo repository.Repo) error