Documentation
¶
Index ¶
- Constants
- type ZKStore
- func (zk *ZKStore) CreateApp(app *types.Application) error
- func (zk *ZKStore) CreateCompose(cps *types.Compose) error
- func (zk *ZKStore) CreateTask(aid string, task *types.Task) error
- func (zk *ZKStore) CreateVersion(aid string, version *types.Version) error
- func (zk *ZKStore) DeleteApp(id string) error
- func (zk *ZKStore) DeleteCompose(idOrName string) error
- func (zk *ZKStore) DeleteTask(id string) error
- func (zk *ZKStore) GetApp(id string) (*types.Application, error)
- func (zk *ZKStore) GetCompose(idOrName string) (*types.Compose, error)
- func (zk *ZKStore) GetFrameworkId() string
- func (zk *ZKStore) GetLeader() (string, error)
- func (zk *ZKStore) GetTask(aid, tid string) (*types.Task, error)
- func (zk *ZKStore) GetVersion(aid, vid string) (*types.Version, error)
- func (zk *ZKStore) ListApps() ([]*types.Application, error)
- func (zk *ZKStore) ListComposes() ([]*types.Compose, error)
- func (zk *ZKStore) ListTaskHistory(aid, sid string) []*types.Task
- func (zk *ZKStore) ListTasks(id string) ([]*types.Task, error)
- func (zk *ZKStore) ListVersions(aid string) ([]*types.Version, error)
- func (zk *ZKStore) UpdateApp(app *types.Application) error
- func (zk *ZKStore) UpdateCompose(cps *types.Compose) error
- func (zk *ZKStore) UpdateFrameworkId(id string) error
- func (zk *ZKStore) UpdateTask(aid string, task *types.Task) error
Constants ¶
View Source
const LeaderElectionPath = "/leader-election" // TODO(nmg)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZKStore ¶
type ZKStore struct {
// contains filtered or unexported fields
}
func (*ZKStore) CreateVersion ¶
As Nested Field of AppHolder, CreateVersion Require Transaction Lock
func (*ZKStore) DeleteCompose ¶
func (*ZKStore) DeleteTask ¶
func (*ZKStore) GetFrameworkId ¶
func (*ZKStore) ListVersions ¶
func (*ZKStore) UpdateApp ¶
func (zk *ZKStore) UpdateApp(app *types.Application) error
All of AppHolder Write Ops Requires Transaction Lock
func (*ZKStore) UpdateFrameworkId ¶
Click to show internal directories.
Click to hide internal directories.