store

package
v0.0.0-...-3887b96 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 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 {
	PutFrameworkID(string) error

	GetFrameworkID() (string, error)

	PutApp(*types.Application) error

	PutApps(...*types.Application) error

	GetApp(string) (*types.Application, error)

	GetApps(...string) ([]*types.Application, error)

	DeleteApp(string) error

	DeleteApps(...string) error

	AddAppInstance(appId string, increment int) error

	AddAppRunningInstance(appId string, increment int) error

	UpdateAppStatus(appId string, status string) error

	AddAppUpdatedInstance(appId string, increment int) error

	UpdateAppUpdatedInstance(appId string, instances int) error

	PutTasks(appId string, tasks ...*types.Task) error

	PutTask(appId string, task *types.Task) error

	UpdateTaskStatus(appId, taskId, status string) error

	GetTask(appId, taskId string) (*types.Task, error)

	GetTasks(appId string, taskIds ...string) ([]*types.Task, error)

	DeleteTask(appId, taskId string) error

	DeleteTasks(appId string, taskIds ...string) error

	PutHealthcheck(task *types.Task, port uint32, appId string) error

	GetHealthChecks(appId string) ([]*types.Check, error)

	DeleteHealthCheck(appId, healthCheckId string) error

	PutVersions(appId string, versions ...*types.ApplicationVersion) error

	PutVersion(appId string, version *types.ApplicationVersion) error

	GetVersions(appId string, versionIds ...string) ([]*types.ApplicationVersion, error)

	GetAndSortVersions(appId string, versionIds ...string) ([]*types.ApplicationVersion, error)

	GetVersion(appId, versionId string) (*types.ApplicationVersion, error)

	DeleteVersions(appId string, versionIds ...string) error

	DeleteVersion(appId, versionId string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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