game

package
v0.0.0-...-7b4399e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOperator

NewOperator creates and returns a CompositeOperator with all the operands configured.

Types

type ConfigmapOperand

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

ConfigmapOperand implements an operand for ConfigMap.

func NewConfigmapOperand

func NewConfigmapOperand(
	name string,
	client client.Client,
	requires []string,
	requeueStrategy operand.RequeueStrategy,
	fs filesys.FileSystem,
) *ConfigmapOperand

func (*ConfigmapOperand) Delete

func (*ConfigmapOperand) Ensure

func (*ConfigmapOperand) Name

func (c *ConfigmapOperand) Name() string

func (*ConfigmapOperand) PostReady

func (c *ConfigmapOperand) PostReady(ctx context.Context, obj client.Object) error

func (*ConfigmapOperand) ReadyCheck

func (c *ConfigmapOperand) ReadyCheck(ctx context.Context, obj client.Object) (bool, error)

func (*ConfigmapOperand) RequeueStrategy

func (c *ConfigmapOperand) RequeueStrategy() operand.RequeueStrategy

func (*ConfigmapOperand) Requires

func (c *ConfigmapOperand) Requires() []string

type GameController

type GameController struct {
	Operator operatorv1.Operator
}

GameController is a controller that implements the CompositeReconciler contoller interface. It watches the Game CRD.

func NewGameController

func NewGameController(mgr ctrl.Manager, fs filesys.FileSystem, execStrategy executor.ExecutionStrategy) (*GameController, error)

NewGameController creates an Operator and a GameController that uses the created operator, and returns the GameController.

func (*GameController) Cleanup

func (gc *GameController) Cleanup(context.Context, client.Object) (result ctrl.Result, err error)

func (*GameController) Default

func (gc *GameController) Default(context.Context, client.Object)

func (*GameController) Initialize

func (gc *GameController) Initialize(ctx context.Context, obj client.Object, condn metav1.Condition) error

func (*GameController) Operate

func (gc *GameController) Operate(ctx context.Context, obj client.Object) (result ctrl.Result, err error)

func (*GameController) UpdateStatus

func (gc *GameController) UpdateStatus(context.Context, client.Object) error

func (*GameController) Validate

Jump to

Keyboard shortcuts

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