anemos

package module
v0.0.0-...-7d1b802 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

README

engine

protoc --go_out=plugins=grpc:. grpc/anemos/v1alpha1/*.proto

Documentation

Index

Constants

View Source
const (
	MetaTaskRetry      = "anemos/meta:anemos:task:retry"
	MetaEventTimestamp = "anemos/meta:anemos:event:timestamp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Execute(*api.TaskInstance)
}

type Group

type Group interface {
	Node
	AddNode(node Node)
	Resolve()
}

type Node

type Node interface {
	Provider() string
	Operation() string
	Name() string
	Attributes() map[string]string
	//Name() (string)
	AddUpstream(name string, node Node)
	AddDownstream(name string, node Node)
	Upstream() map[string]Node
	Downstream() map[string]Node
	Status() NodeInstanceStatus
	EndStateReached() bool
	AssignSession(session Session)

	OnEvent(event *api.Event)
	OnStart(event *api.Event)
	OnProgress(event *api.Event)
	OnFinish(event *api.Event)
	OnCancel(event *api.Event)
	OnSkip(event *api.Event)
}

type NodeInstanceStatus

type NodeInstanceStatus int
const (
	Unknown NodeInstanceStatus = iota
	Retry
	Initialized
	Queue
	Start
	Success
	Skip
	Fail
)

type Observer

type Observer interface {
}

type Router

type Router interface {
	StartTask(node Node, instance *api.TaskInstance)
	StartVirtual(node Node, instance *api.TaskInstance)
	Fail(node Node, instance *api.TaskInstance)

	SignalDownstream(node Node)

	RegisterSession(session Session)
}

type Session

type Session interface {
	SetRouter(Router)
	Router() Router
	NewTaskInstance(node Node) *api.TaskInstance
}

type Trigger

type Trigger interface {
	Trigger(event *api.Event)
}

type Uri

type Uri struct {
	Kind      string
	Provider  string
	Operation string
	Name      string
	Id        string
	Status    string
}

func ParseUri

func ParseUri(us string) (*Uri, error)

func (Uri) String

func (uri Uri) String() string

Directories

Path Synopsis
grpc
anemos/v1alpha1
Package grpc_anemos_v1alpha1 is a generated protocol buffer package.
Package grpc_anemos_v1alpha1 is a generated protocol buffer package.
pkg
provider

Jump to

Keyboard shortcuts

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