Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClusterNotFound = fmt.Errorf("cluster not found")
)
Functions ¶
This section is empty.
Types ¶
type State ¶
type State interface {
Apply(*proto.Component) (int64, error)
// GetComponent(id string) (*proto.Component, error)
GetComponent(namespace, id string, sequence int64) (*proto.Component, error)
GetComponentByID(namespace, name string, compID string) (*proto.Component, error)
Finalize(id string) error
GetPending(id string) (*proto.Component, error)
GetTask(ctx context.Context) *proto.Component
GetTask2(ctx context.Context) *proto.Task
ListDeployments() ([]*proto.Deployment, error)
UpdateDeployment(d *proto.Deployment) error
UpsertNode(n *proto.Instance) error
LoadDeployment(id string) (*proto.Deployment, error)
LoadInstance(cluster, id string) (*proto.Instance, error)
// Close closes the state
Close() error
}
State stores the state of the Ensemble server
Click to show internal directories.
Click to hide internal directories.