controllers

package
v0.0.0-...-fe45284 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column string
const (
	ColumnA Column = "A"
	ColumnB Column = "B"
	ColumnC Column = "C"
)

type Move

type Move struct {
	Symbol SlotSymbol
	Slot   Slot
}

func (Move) String

func (m Move) String() string

type Row

type Row string
const (
	Row1 Row = "1"
	Row2 Row = "2"
	Row3 Row = "3"
)

type Slot

type Slot struct {
	Column Column
	Row    Row
}

func (Slot) String

func (s Slot) String() string

type SlotSymbol

type SlotSymbol string
const (
	SlotSymbolX     SlotSymbol = "X"
	SlotSymbolO     SlotSymbol = "O"
	SlotSymbolEmpty SlotSymbol = " "
)

type Table

type Table map[Slot]SlotSymbol

func (Table) String

func (t Table) String() string

type TicTacToeReconciler

type TicTacToeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

TicTacToeReconciler reconciles a TicTacToe object

func (*TicTacToeReconciler) Reconcile

func (r *TicTacToeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*TicTacToeReconciler) SetupWithManager

func (r *TicTacToeReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Winner

type Winner string

Jump to

Keyboard shortcuts

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