kubernetes

package
v0.0.0-...-9e9d5e8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignClientSetToContext

func AssignClientSetToContext(machinectx *MachineCtx, eventBuilder *events.EventBuilder) error

func AssignInitialCtx

func AssignInitialCtx(ctx context.Context, machineCtx interface{}, log logger.Handler) (interface{}, *events.Event, error)

func Connected

func Connected() machines.State

func Delete

func Delete() machines.State

func Disconnected

func Disconnected() machines.State

func Discovered

func Discovered() machines.State

func GenerateClientSetAction

func GenerateClientSetAction(k8sContext *models.K8sContext, eventBuilder *events.EventBuilder) (*kubernetes.Client, error)

func Ignored

func Ignored() machines.State

func Initial

func Initial() machines.State

func New

func New(ID string, userID uuid.UUID, log logger.Handler) (*machines.StateMachine, error)

func NotFound

func NotFound() machines.State

func Registered

func Registered() machines.State

Types

type ConnectAction

type ConnectAction struct{}

func (*ConnectAction) Execute

func (ca *ConnectAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*ConnectAction) ExecuteOnEntry

func (ca *ConnectAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

Execute On Entry and Exit should not return next eventtype i suppose, look again.

func (*ConnectAction) ExecuteOnExit

func (ca *ConnectAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

type DeleteAction

type DeleteAction struct{}

func (*DeleteAction) Execute

func (da *DeleteAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*DeleteAction) ExecuteOnEntry

func (da *DeleteAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*DeleteAction) ExecuteOnExit

func (da *DeleteAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

type DisconnectAction

type DisconnectAction struct{}

func (*DisconnectAction) Execute

func (da *DisconnectAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*DisconnectAction) ExecuteOnEntry

func (da *DisconnectAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*DisconnectAction) ExecuteOnExit

func (da *DisconnectAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

type DiscoverAction

type DiscoverAction struct{}

func (*DiscoverAction) Execute

func (da *DiscoverAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*DiscoverAction) ExecuteOnEntry

func (da *DiscoverAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

Execute On Entry and Exit should not return next eventtype i suppose, look again.

func (*DiscoverAction) ExecuteOnExit

func (da *DiscoverAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

type IgnoreAction

type IgnoreAction struct{}

func (*IgnoreAction) Execute

func (ia *IgnoreAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*IgnoreAction) ExecuteOnEntry

func (ia *IgnoreAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*IgnoreAction) ExecuteOnExit

func (ia *IgnoreAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

type MachineCtx

type MachineCtx struct {
	K8sContext          models.K8sContext
	MeshplayCtrlsHelper *models.MeshplayControllersHelper
	K8sCompRegHelper    *models.ComponentsRegistrationHelper
	EventBroadcaster    *models.Broadcast

	OperatorTracker   *models.OperatorTracker
	K8scontextChannel *models.K8scontextChan
	RegistryManager   *meshmodel.RegistryManager
	// contains filtered or unexported fields
}

func GetMachineCtx

func GetMachineCtx(machinectx interface{}, eb *events.EventBuilder) (*MachineCtx, error)

type NotFoundAction

type NotFoundAction struct{}

func (*NotFoundAction) Execute

func (ia *NotFoundAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*NotFoundAction) ExecuteOnEntry

func (ia *NotFoundAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*NotFoundAction) ExecuteOnExit

func (ia *NotFoundAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

type RegisterAction

type RegisterAction struct{}

func (*RegisterAction) Execute

func (ra *RegisterAction) Execute(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

func (*RegisterAction) ExecuteOnEntry

func (ra *RegisterAction) ExecuteOnEntry(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

Execute On Entry and Exit should not return next eventtype i suppose, look again.

func (*RegisterAction) ExecuteOnExit

func (ra *RegisterAction) ExecuteOnExit(ctx context.Context, machineCtx interface{}, data interface{}) (machines.EventType, *events.Event, error)

Jump to

Keyboard shortcuts

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