Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchActor = errors.New("no such pipeline")
ErrNoSuchActor is returned if the pipeline does not exist
View Source
var ErrNoSuchPipeline = errors.New("no such pipeline")
ErrNoSuchPipeline is returned if the pipeline does not exist
Functions ¶
This section is empty.
Types ¶
type ActorCache ¶
type ActorCache struct {
// contains filtered or unexported fields
}
ActorCache caches the pipeline definitions
func NewActorCache ¶
func NewActorCache(control *control.Client) *ActorCache
NewActorCache creates a ActorCache instance
type ActorMap ¶
type ActorMap struct { Events chan ActorState // contains filtered or unexported fields }
ActorMap holds a map of actors->status and keep it in sync by subscribing to actor events
func NewActorMap ¶
NewActorMap initialize the map and starts listening
func (*ActorMap) List ¶
func (am *ActorMap) List() (list []ActorState)
List returns the list of actors
func (*ActorMap) ListOnline ¶
ListOnline returns a list of online actors
type ActorState ¶
ActorState is emitted by the ActorMap when a actor status changes
type PipelineCache ¶
type PipelineCache struct {
// contains filtered or unexported fields
}
PipelineCache caches the pipeline definitions
func NewPipelineCache ¶
func NewPipelineCache(control *control.Client) *PipelineCache
NewPipelineCache creates a PipelineCache instance
func (*PipelineCache) Get ¶
func (pc *PipelineCache) Get(id api.UUID) (api.PipelineInfo, error)
Get returns a pipeline info
Click to show internal directories.
Click to hide internal directories.