machinecontroller

package
v0.0.0-...-b89aff2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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()

Jump to

Keyboard shortcuts

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