Documentation ¶
Index ¶
- type Controller
- type ControllerEvent
- type ControllerState
- type Deployment
- type DeploymentActivatedEvent
- type DeploymentArtefact
- type DeploymentArtefactCreatedEvent
- type DeploymentCreatedEvent
- type DeploymentDeactivatedEvent
- type DeploymentReplicasUpdatedEvent
- type DeploymentSchemaUpdatedEvent
- type Runner
- type RunnerDeletedEvent
- type RunnerRegisteredEvent
- type State
- func (r *State) GetActiveDeploymentSchemas() []*schema.Module
- func (r *State) GetActiveDeployments() map[string]*Deployment
- func (r *State) GetDeployment(deployment model.DeploymentKey) (*Deployment, error)
- func (r *State) GetDeployments() map[string]*Deployment
- func (r *State) Runner(s string) optional.Option[Runner]
- func (r *State) Runners() []Runner
- func (r *State) RunnersForDeployment(deployment string) []Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Endpoint string Key model.ControllerKey }
type ControllerEvent ¶
type ControllerState ¶
type ControllerState eventstream.EventStream[State, ControllerEvent]
func NewInMemoryState ¶
func NewInMemoryState() ControllerState
type Deployment ¶
type DeploymentActivatedEvent ¶
type DeploymentActivatedEvent struct { Key model.DeploymentKey ActivatedAt time.Time MinReplicas int }
type DeploymentArtefact ¶
type DeploymentCreatedEvent ¶
type DeploymentCreatedEvent struct { Key model.DeploymentKey CreatedAt time.Time Module string Schema *schema.Module Artefacts []*DeploymentArtefact Language string }
type DeploymentDeactivatedEvent ¶
type DeploymentDeactivatedEvent struct { Key model.DeploymentKey ModuleRemoved bool }
type DeploymentReplicasUpdatedEvent ¶
type DeploymentReplicasUpdatedEvent struct { Key model.DeploymentKey Replicas int }
type DeploymentSchemaUpdatedEvent ¶
type DeploymentSchemaUpdatedEvent struct { Key model.DeploymentKey Schema *schema.Module }
type RunnerDeletedEvent ¶
type RunnerRegisteredEvent ¶
type RunnerRegisteredEvent struct { Key model.RunnerKey Time time.Time Endpoint string Module string Deployment model.DeploymentKey }
func (*RunnerRegisteredEvent) Handle ¶
func (r *RunnerRegisteredEvent) Handle(t State) (State, error)
func (*RunnerRegisteredEvent) VerboseMessage ¶
func (r *RunnerRegisteredEvent) VerboseMessage()
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) GetActiveDeploymentSchemas ¶
func (*State) GetActiveDeployments ¶
func (r *State) GetActiveDeployments() map[string]*Deployment
func (*State) GetDeployment ¶
func (r *State) GetDeployment(deployment model.DeploymentKey) (*Deployment, error)
func (*State) GetDeployments ¶
func (r *State) GetDeployments() map[string]*Deployment
func (*State) RunnersForDeployment ¶
Click to show internal directories.
Click to hide internal directories.