store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

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

	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)

	UpdateFrameworkId(frameworkId string) error
	GetFrameworkId() string

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

	GetLeader() (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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