v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group. +kubebuilder:object:generate=true +groupName=core.ctf.backbone81

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "core.ctf.backbone81", Version: "v1alpha1"}

	// 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 APIKey

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

	Spec   APIKeySpec   `json:"spec,omitempty"`
	Status APIKeyStatus `json:"status,omitempty"`
}

APIKey is the Schema for the apikeys API.

func (*APIKey) DeepCopy

func (in *APIKey) DeepCopy() *APIKey

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

func (*APIKey) DeepCopyInto

func (in *APIKey) DeepCopyInto(out *APIKey)

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

func (*APIKey) DeepCopyObject

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

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

type APIKeyList

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

APIKeyList contains a list of APIKey.

func (*APIKeyList) DeepCopy

func (in *APIKeyList) DeepCopy() *APIKeyList

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

func (*APIKeyList) DeepCopyInto

func (in *APIKeyList) DeepCopyInto(out *APIKeyList)

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

func (*APIKeyList) DeepCopyObject

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

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

type APIKeySpec

type APIKeySpec struct {
	// ExpirationSeconds is the requested duration of validity of the API key.
	// +optional
	ExpirationSeconds *int64 `json:"expirationSeconds"`
}

APIKeySpec defines the desired state of APIKey.

func (*APIKeySpec) DeepCopy

func (in *APIKeySpec) DeepCopy() *APIKeySpec

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

func (*APIKeySpec) DeepCopyInto

func (in *APIKeySpec) DeepCopyInto(out *APIKeySpec)

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

type APIKeyStatus

type APIKeyStatus struct {
	// Key is the opaque API key.
	// +optional
	Key string `json:"token"`

	// ExpirationTimestamp is the time of expiration of the returned API key.
	// +optional
	ExpirationTimestamp metav1.Time `json:"expirationTimestamp"`
}

APIKeyStatus defines the observed state of APIKey.

func (*APIKeyStatus) DeepCopy

func (in *APIKeyStatus) DeepCopy() *APIKeyStatus

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

func (*APIKeyStatus) DeepCopyInto

func (in *APIKeyStatus) DeepCopyInto(out *APIKeyStatus)

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

type ChallengeDescription

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

	Spec   ChallengeDescriptionSpec   `json:"spec,omitempty"`
	Status ChallengeDescriptionStatus `json:"status,omitempty"`
}

ChallengeDescription is the Schema for the challengedescriptions API.

func (*ChallengeDescription) DeepCopy

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

func (*ChallengeDescription) DeepCopyInto

func (in *ChallengeDescription) DeepCopyInto(out *ChallengeDescription)

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

func (*ChallengeDescription) DeepCopyObject

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

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

type ChallengeDescriptionList

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

ChallengeDescriptionList contains a list of ChallengeDescription.

func (*ChallengeDescriptionList) DeepCopy

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

func (*ChallengeDescriptionList) DeepCopyInto

func (in *ChallengeDescriptionList) DeepCopyInto(out *ChallengeDescriptionList)

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

func (*ChallengeDescriptionList) DeepCopyObject

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

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

type ChallengeDescriptionSpec

type ChallengeDescriptionSpec struct {
	// Title is the name of the challenge
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Title string `json:"title"`

	// Description is the content of the challenge
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Description string `json:"description"`

	// Category is the category this challenge belongs to.
	// +kubebuilder:validation:Optional
	Category string `json:"category"`

	// Value is the number of points which are added upon solving the challenge.
	// +kubebuilder:default=0
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Minimum=0
	Value int `json:"value"`

	// Hints provides a list of hints to help solve the challenge.
	// +kubebuilder:validation:Optional
	Hints []ChallengeHint `json:"hints"`

	// Manifests provide the Kubernetes manifests which should be created when a new instance of the challenge is
	// requested. The manifests are placed in a dedicated namespace. The namespace provided in those manifests is
	// overwritten.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	Manifests []runtime.RawExtension `json:"manifests"`
}

ChallengeDescriptionSpec defines the desired state of ChallengeDescription.

func (*ChallengeDescriptionSpec) DeepCopy

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

func (*ChallengeDescriptionSpec) DeepCopyInto

func (in *ChallengeDescriptionSpec) DeepCopyInto(out *ChallengeDescriptionSpec)

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

type ChallengeDescriptionStatus

type ChallengeDescriptionStatus struct{}

ChallengeDescriptionStatus defines the observed state of ChallengeDescription.

func (*ChallengeDescriptionStatus) DeepCopy

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

func (*ChallengeDescriptionStatus) DeepCopyInto

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

type ChallengeHint

type ChallengeHint struct {
	// Description is the content of the hint.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Description string `json:"description"`

	// Cost is the number of points which are to be deducted from the overall score if this hint is being used.
	// +kubebuilder:default=0
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Minimum=0
	Cost int `json:"cost"`
}

func (*ChallengeHint) DeepCopy

func (in *ChallengeHint) DeepCopy() *ChallengeHint

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

func (*ChallengeHint) DeepCopyInto

func (in *ChallengeHint) DeepCopyInto(out *ChallengeHint)

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

type ChallengeInstance

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

	Spec   ChallengeInstanceSpec   `json:"spec,omitempty"`
	Status ChallengeInstanceStatus `json:"status,omitempty"`
}

ChallengeInstance is the Schema for the challengeinstances API.

func (*ChallengeInstance) DeepCopy

func (in *ChallengeInstance) DeepCopy() *ChallengeInstance

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

func (*ChallengeInstance) DeepCopyInto

func (in *ChallengeInstance) DeepCopyInto(out *ChallengeInstance)

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

func (*ChallengeInstance) DeepCopyObject

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

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

type ChallengeInstanceList

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

ChallengeInstanceList contains a list of ChallengeInstance.

func (*ChallengeInstanceList) DeepCopy

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

func (*ChallengeInstanceList) DeepCopyInto

func (in *ChallengeInstanceList) DeepCopyInto(out *ChallengeInstanceList)

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

func (*ChallengeInstanceList) DeepCopyObject

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

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

type ChallengeInstanceSpec

type ChallengeInstanceSpec struct {
	// ExpirationSeconds is the requested duration of validity of the Challenge instance.
	// +optional
	ExpirationSeconds *int64 `json:"expirationSeconds"`

	// ChallengeDescriptionName is the name of the ChallengeDescription this challenge instance is related to.
	// +kubebuilder:validation:Required
	ChallengeDescriptionName string `json:"challengeDescriptionName"`
}

ChallengeInstanceSpec defines the desired state of ChallengeInstance.

func (*ChallengeInstanceSpec) DeepCopy

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

func (*ChallengeInstanceSpec) DeepCopyInto

func (in *ChallengeInstanceSpec) DeepCopyInto(out *ChallengeInstanceSpec)

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

type ChallengeInstanceStatus

type ChallengeInstanceStatus struct {
	// ExpirationTimestamp is the time of expiration of the challenge instance.
	// +optional
	ExpirationTimestamp metav1.Time `json:"expirationTimestamp"`
}

ChallengeInstanceStatus defines the observed state of ChallengeInstance.

func (*ChallengeInstanceStatus) DeepCopy

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

func (*ChallengeInstanceStatus) DeepCopyInto

func (in *ChallengeInstanceStatus) DeepCopyInto(out *ChallengeInstanceStatus)

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

Jump to

Keyboard shortcuts

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