Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatesToMonitor = []types.MachineState{ types.MachineStateStarting, types.MachineStateRunning, types.MachineStateDegraded, types.MachineStateError, }
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New( db *gorm.DB, volumeProvider types.VolumeProvider, networkProvider types.NetworkProvider, runtimeProvider types.RuntimeProvider, machine *types.Machine, ) *Controller
func (*Controller) GetMachine ¶
func (c *Controller) GetMachine() *types.Machine
func (*Controller) PublishEvent ¶
func (c *Controller) PublishEvent(event *corev1pb.MachineEvent)
func (*Controller) Stop ¶
func (c *Controller) Stop()
func (*Controller) SubscribeToEvents ¶
func (c *Controller) SubscribeToEvents(handler func(context.Context, *corev1pb.MachineEvent)) func()
Click to show internal directories.
Click to hide internal directories.