Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the nullgame v1 API group +kubebuilder:object:generate=true +groupName=nullgame.thenullchannel.dev
Index ¶
Constants ¶
const ( GamePhasePending = GamePhase("Pending") GamePhaseCreating = GamePhase("Creating") GamePhaseActive = GamePhase("Active") GamePhaseFinished = GamePhase("Finished") )
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Game.
func (*Game) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Game) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameList.
func (*GameList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GameList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameSpec.
func (*GameSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Guess.
func (*Guess) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Guess) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GuessList.
func (*GuessList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GuessList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GuessSpec.
func (*GuessSpec) DeepCopyInto ¶
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