Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the tofan.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=tofan.io
Index ¶
- Variables
- type DynamicField
- type MetricTarget
- type ObjectTemplate
- func (in *ObjectTemplate) DeepCopy() *ObjectTemplate
- func (in *ObjectTemplate) DeepCopyInto(out *ObjectTemplate)
- func (in *ObjectTemplate) DeepCopyObject() runtime.Object
- func (in *ObjectTemplate) GetConditions() []metav1.Condition
- func (in *ObjectTemplate) SetConditions(conditions []metav1.Condition)
- type ObjectTemplateList
- type ObjectTemplateSpec
- type ObjectTemplateStatus
- type Report
- type ReportList
- type ReportSpec
- type ReportStatus
- type TestCase
- type TestCaseList
- type TestCaseSpec
- type TestCaseStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "tofan.io", 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 DynamicField ¶
type DynamicField struct { // Path specifies the JSON path to the field within the ObjectTemplate that needs to be dynamically set. Path string `json:"path"` // Values are the values to apply to the dynamic field as simple strings. Values map[string]extv1.JSON `json:"values"` }
DynamicField defines a field to dynamically set based on TestCase parameters.
func (*DynamicField) DeepCopy ¶
func (in *DynamicField) DeepCopy() *DynamicField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicField.
func (*DynamicField) DeepCopyInto ¶
func (in *DynamicField) DeepCopyInto(out *DynamicField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricTarget ¶
type MetricTarget struct { // Name is the name of the metric Name string `json:"name"` // Expr is the expression used to calculate or define the metric Expr string `json:"expr"` }
MetricTarget defines a target metric for collection by the testCase
func (*MetricTarget) DeepCopy ¶
func (in *MetricTarget) DeepCopy() *MetricTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricTarget.
func (*MetricTarget) DeepCopyInto ¶
func (in *MetricTarget) DeepCopyInto(out *MetricTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectTemplate ¶
type ObjectTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ObjectTemplateSpec `json:"spec,omitempty"` Status ObjectTemplateStatus `json:"status,omitempty"` }
ObjectTemplate is the Schema for the objecttemplates API
func (*ObjectTemplate) DeepCopy ¶
func (in *ObjectTemplate) DeepCopy() *ObjectTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectTemplate.
func (*ObjectTemplate) DeepCopyInto ¶
func (in *ObjectTemplate) DeepCopyInto(out *ObjectTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectTemplate) DeepCopyObject ¶
func (in *ObjectTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ObjectTemplate) GetConditions ¶
func (in *ObjectTemplate) GetConditions() []metav1.Condition
func (*ObjectTemplate) SetConditions ¶
func (in *ObjectTemplate) SetConditions(conditions []metav1.Condition)
type ObjectTemplateList ¶
type ObjectTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ObjectTemplate `json:"items"` }
ObjectTemplateList contains a list of ObjectTemplate
func (*ObjectTemplateList) DeepCopy ¶
func (in *ObjectTemplateList) DeepCopy() *ObjectTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectTemplateList.
func (*ObjectTemplateList) DeepCopyInto ¶
func (in *ObjectTemplateList) DeepCopyInto(out *ObjectTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectTemplateList) DeepCopyObject ¶
func (in *ObjectTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ObjectTemplateSpec ¶
type ObjectTemplateSpec struct { // NamePrefix is the prefix used for generated object names NamePrefix string `json:"namePrefix,omitempty"` // Template is the raw Kubernetes object template // +kubebuilder:pruning:PreserveUnknownFields Template runtime.RawExtension `json:"template"` }
ObjectTemplateSpec defines the desired state of ObjectTemplate
func (*ObjectTemplateSpec) DeepCopy ¶
func (in *ObjectTemplateSpec) DeepCopy() *ObjectTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectTemplateSpec.
func (*ObjectTemplateSpec) DeepCopyInto ¶
func (in *ObjectTemplateSpec) DeepCopyInto(out *ObjectTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectTemplateStatus ¶
type ObjectTemplateStatus struct { // Group is the API group of the objectTemplate. Group string `json:"group,omitempty"` // Version is the API Version of the objectTemplate. Version string `json:"version,omitempty"` // kind the kind of the objectTemplate. Kind string `json:"kind,omitempty"` // Conditions List of status conditions to indicate the status of Space Conditions []metav1.Condition `json:"conditions,omitempty"` }
ObjectTemplateStatus defines the observed state of ObjectTemplate
func (*ObjectTemplateStatus) DeepCopy ¶
func (in *ObjectTemplateStatus) DeepCopy() *ObjectTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectTemplateStatus.
func (*ObjectTemplateStatus) DeepCopyInto ¶
func (in *ObjectTemplateStatus) DeepCopyInto(out *ObjectTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Report ¶
type Report struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReportSpec `json:"spec,omitempty"` Status ReportStatus `json:"status,omitempty"` }
Report is the Schema for the reports API
func (*Report) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Report.
func (*Report) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Report) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReportList ¶
type ReportList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Report `json:"items"` }
ReportList contains a list of Report
func (*ReportList) DeepCopy ¶
func (in *ReportList) DeepCopy() *ReportList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportList.
func (*ReportList) DeepCopyInto ¶
func (in *ReportList) DeepCopyInto(out *ReportList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReportList) DeepCopyObject ¶
func (in *ReportList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReportSpec ¶
type ReportSpec struct { // Foo is an example field of Report. Edit report_types.go to remove/update Foo string `json:"foo,omitempty"` }
ReportSpec defines the desired state of Report
func (*ReportSpec) DeepCopy ¶
func (in *ReportSpec) DeepCopy() *ReportSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportSpec.
func (*ReportSpec) DeepCopyInto ¶
func (in *ReportSpec) DeepCopyInto(out *ReportSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReportStatus ¶
type ReportStatus struct { }
ReportStatus defines the observed state of Report
func (*ReportStatus) DeepCopy ¶
func (in *ReportStatus) DeepCopy() *ReportStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportStatus.
func (*ReportStatus) DeepCopyInto ¶
func (in *ReportStatus) DeepCopyInto(out *ReportStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCase ¶
type TestCase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestCaseSpec `json:"spec,omitempty"` Status TestCaseStatus `json:"status,omitempty"` }
TestCase is the Schema for the testcases API
func (*TestCase) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCase.
func (*TestCase) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestCase) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestCase) GetConditions ¶
func (*TestCase) SetConditions ¶
type TestCaseList ¶
type TestCaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestCase `json:"items"` }
TestCaseList contains a list of TestCase
func (*TestCaseList) DeepCopy ¶
func (in *TestCaseList) DeepCopy() *TestCaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseList.
func (*TestCaseList) DeepCopyInto ¶
func (in *TestCaseList) DeepCopyInto(out *TestCaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestCaseList) DeepCopyObject ¶
func (in *TestCaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestCaseSpec ¶
type TestCaseSpec struct { // Reference to a ObjectTemplate ObjectTemplateRef objectTemplateReference `json:"objectTemplateRef,omitempty"` // Action specifies the operation to perform with the ObjectTemplate (e.g., create, delete) Action string `json:"action,omitempty"` // Count specifies the number of instances to create/delete Count int `json:"count"` // Concurrency specifies how many operations can be performed concurrently Concurrency int `json:"concurrency"` // DynamicFields specifies how to dynamically set fields in the ObjectTemplate based on the test case. DynamicFields []DynamicField `json:"dynamicFields,omitempty"` // TargetMetrics defines the metrics that should be collected during the test TargetMetrics []MetricTarget `json:"targetMetrics,omitempty"` }
TestCaseSpec defines the desired state of TestCase
func (*TestCaseSpec) DeepCopy ¶
func (in *TestCaseSpec) DeepCopy() *TestCaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseSpec.
func (*TestCaseSpec) DeepCopyInto ¶
func (in *TestCaseSpec) DeepCopyInto(out *TestCaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseStatus ¶
type TestCaseStatus struct { // Phase indicates the testcase exec phase Phase string `json:"phase,omitempty"` // Conditions List of status conditions to indicate the status of Space Conditions []metav1.Condition `json:"conditions,omitempty"` }
TestCaseStatus defines the observed state of TestCase
func (*TestCaseStatus) DeepCopy ¶
func (in *TestCaseStatus) DeepCopy() *TestCaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseStatus.
func (*TestCaseStatus) DeepCopyInto ¶
func (in *TestCaseStatus) DeepCopyInto(out *TestCaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.