Documentation ¶
Index ¶
- func GetSessionAndMutex(clientV3 *clientv3.Client, key, caller string) (context.CancelFunc, *concurrency.Session, *concurrency.Mutex, error)
- type Engine
- func (engine *Engine) Init() error
- func (engine *Engine) NewDeleter(instance *pb.Instance, instancesDir string) state.Deleter
- func (engine *Engine) NewGetter(options *pb.GetOptions, list *pb.InstanceList, instancesDir string) state.Getter
- func (engine *Engine) NewTemplatesGetter(list *pb.InstanceList, templatesDir string) state.TemplatesGetter
- func (engine *Engine) NewUpdater(instance *pb.Instance, instancesDir string) state.Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionAndMutex ¶
func GetSessionAndMutex(clientV3 *clientv3.Client, key, caller string) (context.CancelFunc, *concurrency.Session, *concurrency.Mutex, error)
GetSessionAndMutex gets an etcd lock
Types ¶
type Engine ¶
Engine fulfills the StateStore interface
func (*Engine) NewDeleter ¶
NewDeleter returns an initialized Deleter
func (*Engine) NewGetter ¶
func (engine *Engine) NewGetter(options *pb.GetOptions, list *pb.InstanceList, instancesDir string) state.Getter
NewGetter returns an initialized Getter
func (*Engine) NewTemplatesGetter ¶
func (engine *Engine) NewTemplatesGetter(list *pb.InstanceList, templatesDir string) state.TemplatesGetter
NewTemplatesGetter returns an initialized TemplatesGetter
Click to show internal directories.
Click to hide internal directories.