v1

package
v0.0.0-...-21cb609 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the nullgame v1 API group +kubebuilder:object:generate=true +groupName=nullgame.thenullchannel.dev

Index

Constants

View Source
const (
	GamePhasePending  = GamePhase("Pending")
	GamePhaseCreating = GamePhase("Creating")
	GamePhaseActive   = GamePhase("Active")
	GamePhaseFinished = GamePhase("Finished")
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nullgame.thenullchannel.dev", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Game

type Game struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GameSpec   `json:"spec,omitempty"`
	Status GameStatus `json:"status,omitempty"`
}

Game is the Schema for the games API

func (*Game) DeepCopy

func (in *Game) DeepCopy() *Game

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Game.

func (*Game) DeepCopyInto

func (in *Game) DeepCopyInto(out *Game)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Game) DeepCopyObject

func (in *Game) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GameList

type GameList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Game `json:"items"`
}

GameList contains a list of Game

func (*GameList) DeepCopy

func (in *GameList) DeepCopy() *GameList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameList.

func (*GameList) DeepCopyInto

func (in *GameList) DeepCopyInto(out *GameList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GameList) DeepCopyObject

func (in *GameList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GamePhase

type GamePhase string

type GameSpec

type GameSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	NumberOfGuessesOverride int `json:"numberOfGuessesOverride,omitempty"`
	// Foo is an example field of Game. Edit game_types.go to remove/update
	Solution NamespacedName `json:"solution,omitempty"`
}

GameSpec defines the desired state of Game

func (*GameSpec) DeepCopy

func (in *GameSpec) DeepCopy() *GameSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameSpec.

func (*GameSpec) DeepCopyInto

func (in *GameSpec) DeepCopyInto(out *GameSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GameStatus

type GameStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Phase           string `json:"phase,omitempty"`
	Current         string `json:"current,omitempty"`
	NumberOfGuesses int    `json:"numberOfGuesses,omitempty"`
	Status          string `json:"status,omitempty"`
}

GameStatus defines the observed state of Game

func (*GameStatus) DeepCopy

func (in *GameStatus) DeepCopy() *GameStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameStatus.

func (*GameStatus) DeepCopyInto

func (in *GameStatus) DeepCopyInto(out *GameStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GameStatus) SetCurrent

func (c *GameStatus) SetCurrent(guesses *[]Guess, phrase string)

SetCurrent sets the current amount of the phrase you have done

func (*GameStatus) SetTypedPhase

func (c *GameStatus) SetTypedPhase(p GamePhase)

type Guess

type Guess struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GuessSpec   `json:"spec,omitempty"`
	Status GuessStatus `json:"status,omitempty"`
}

Guess is the Schema for the guesses API

func (*Guess) DeepCopy

func (in *Guess) DeepCopy() *Guess

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Guess.

func (*Guess) DeepCopyInto

func (in *Guess) DeepCopyInto(out *Guess)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Guess) DeepCopyObject

func (in *Guess) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GuessList

type GuessList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Guess `json:"items"`
}

GuessList contains a list of Guess

func (*GuessList) DeepCopy

func (in *GuessList) DeepCopy() *GuessList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GuessList.

func (*GuessList) DeepCopyInto

func (in *GuessList) DeepCopyInto(out *GuessList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GuessList) DeepCopyObject

func (in *GuessList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GuessSpec

type GuessSpec struct {

	// Foo is an example field of Guess. Edit guess_types.go to remove/update
	Guess string `json:"guess,omitempty"`
	Game  string `json:"game,omitempty"`
}

GuessSpec defines the desired state of Guess

func (*GuessSpec) DeepCopy

func (in *GuessSpec) DeepCopy() *GuessSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GuessSpec.

func (*GuessSpec) DeepCopyInto

func (in *GuessSpec) DeepCopyInto(out *GuessSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GuessStatus

type GuessStatus struct {
}

GuessStatus defines the observed state of Guess

func (*GuessStatus) DeepCopy

func (in *GuessStatus) DeepCopy() *GuessStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GuessStatus.

func (*GuessStatus) DeepCopyInto

func (in *GuessStatus) DeepCopyInto(out *GuessStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespacedName

type NamespacedName struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
}

func (*NamespacedName) DeepCopy

func (in *NamespacedName) DeepCopy() *NamespacedName

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedName.

func (*NamespacedName) DeepCopyInto

func (in *NamespacedName) DeepCopyInto(out *NamespacedName)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (NamespacedName) ToObjectKey

func (n NamespacedName) ToObjectKey() client.ObjectKey

Jump to

Keyboard shortcuts

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