goetcd

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2015 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIterVersion

func AddIterVersion(client *etcd.Client, module, version, role string) error

add version

func InitDir4Module

func InitDir4Module(client *etcd.Client, module string) error

init dir on etcd for module xxx

func InitDirTree4Module

func InitDirTree4Module(client *etcd.Client, module, path string)

func ListModules

func ListModules(client *etcd.Client) error

list modules in etcd

func NewEtcdClient

func NewEtcdClient(etcdaddr string) *etcd.Client

func Pass2NextPhase

func Pass2NextPhase(client *etcd.Client, module, from, to string) error

pass to next phase

Types

type EtcdConfig

type EtcdConfig struct {
	Client *etcd.Client
}

type FileModel

type FileModel struct {
	Name string
	Path string
	Hash string
	Fid  string
}

Jump to

Keyboard shortcuts

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