coordinator

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHub

type EventHub struct {
	// contains filtered or unexported fields
}

func NewEventHub

func NewEventHub(l log.FieldLogger) (*EventHub, error)

NewEventHub creates a new EventHub with topics pre-registered. The logger l does not need fields preset.

func (*EventHub) Close

func (h *EventHub) Close()

func (*EventHub) PublishExperimentEvent

func (h *EventHub) PublishExperimentEvent(source string, event ExperimentEventMsg)

func (*EventHub) PublishModelEvent

func (h *EventHub) PublishModelEvent(source string, event ModelEventMsg)

func (*EventHub) PublishPipelineEvent

func (h *EventHub) PublishPipelineEvent(source string, event PipelineEventMsg)

func (*EventHub) RegisterExperimentEventHandler

func (h *EventHub) RegisterExperimentEventHandler(
	name string,
	queueSize int,
	logger log.FieldLogger,
	handle func(event ExperimentEventMsg),
)

func (*EventHub) RegisterModelEventHandler

func (h *EventHub) RegisterModelEventHandler(
	name string,
	queueSize int,
	logger log.FieldLogger,
	handle func(event ModelEventMsg),
)

func (*EventHub) RegisterPipelineEventHandler

func (h *EventHub) RegisterPipelineEventHandler(
	name string,
	queueSize int,
	logger log.FieldLogger,
	handle func(event PipelineEventMsg),
)

type ExperimentEventMsg

type ExperimentEventMsg struct {
	ExperimentName    string
	UpdatedExperiment bool
	Status            *ExperimentEventStatus
	KubernetesMeta    *KubernetesMeta
}

func (ExperimentEventMsg) String

func (e ExperimentEventMsg) String() string

type ExperimentEventStatus

type ExperimentEventStatus struct {
	Active            bool
	CandidatesReady   bool
	MirrorReady       bool
	StatusDescription string
}

type KubernetesMeta

type KubernetesMeta struct {
	Namespace  string
	Generation int64
}

type ModelEventMsg

type ModelEventMsg struct {
	ModelName    string
	ModelVersion uint32
}

func (ModelEventMsg) String

func (m ModelEventMsg) String() string

type PipelineEventMsg

type PipelineEventMsg struct {
	PipelineName      string
	PipelineVersion   uint32
	UID               string
	ExperimentUpdate  bool
	ModelStatusChange bool
}

func (PipelineEventMsg) String

func (p PipelineEventMsg) String() string

type SequenceGenerator

type SequenceGenerator struct {
	// contains filtered or unexported fields
}

func (*SequenceGenerator) Generate

func (g *SequenceGenerator) Generate() string

Jump to

Keyboard shortcuts

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