store

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	CreateApp(app *types.Application) error
	UpdateApp(app *types.Application) error
	GetApp(appId string) (*types.Application, error)
	ListApps() ([]*types.Application, error)
	DeleteApp(appId string) error
	GetAppOpStatus(string) (string, error)

	CreateTask(string, *types.Task) error
	GetTask(string, string) (*types.Task, error)
	UpdateTask(string, *types.Task) error
	DeleteTask(string) error
	ListTasks(string) ([]*types.Task, error)

	CreateVersion(string, *types.Version) error
	GetVersion(string, string) (*types.Version, error)
	ListVersions(string) ([]*types.Version, error)
	DeleteVersion(string, string) error

	UpdateFrameworkId(frameworkId string) error
	GetFrameworkId() (string, int64)

	CreateCompose(ins *types.Compose) error
	DeleteCompose(id string) error
	UpdateCompose(ins *types.Compose) error // status, errmsg, updateAt
	GetCompose(id string) (*types.Compose, error)
	ListComposes() ([]*types.Compose, error)

	IsErrNotFound(err error) bool
}

func Setup added in v0.2.1

func Setup(typ string, zkURL *url.URL, etcdAddrs []string) (Store, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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