Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the locustload v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=locustload.cndev.io
Package v1alpha1 contains API Schema definitions for the locustload v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=locustload.cndev.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "locustload.cndev.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type Locust ¶
type Locust struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocustSpec `json:"spec,omitempty"` Status LocustStatus `json:"status,omitempty"` }
Locust is the Schema for the locusts API +kubebuilder:subresource:status +kubebuilder:resource:path=locusts,scope=Namespaced
func (*Locust) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Locust.
func (*Locust) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Locust) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocustList ¶
type LocustList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Locust `json:"items"` }
LocustList contains a list of Locust
func (*LocustList) DeepCopy ¶
func (in *LocustList) DeepCopy() *LocustList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocustList.
func (*LocustList) DeepCopyInto ¶
func (in *LocustList) DeepCopyInto(out *LocustList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocustList) DeepCopyObject ¶
func (in *LocustList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocustSpec ¶
type LocustSpec struct { //HostURL is the url the loadtest is executed agains HostURL string `json:"hosturl"` //Image is the container with locust files tests Image string `json:"image"` //Users is the maximum number of users to simulate Users int `json:"users,omitempty"` //HatchRate is the maximum number of users to simulate HatchRate int `json:"hatchrate,omitempty"` //Slaves is the number of worker instances Slaves int32 `json:"slaves,omitempty"` }
LocustSpec defines the desired state of Locust
func (*LocustSpec) DeepCopy ¶
func (in *LocustSpec) DeepCopy() *LocustSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocustSpec.
func (*LocustSpec) DeepCopyInto ¶
func (in *LocustSpec) DeepCopyInto(out *LocustSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocustStatus ¶
type LocustStatus struct {
CurrentWorkers int32 `json:"currentworkers,omitempty"`
}
LocustStatus defines the observed state of Locust
func (*LocustStatus) DeepCopy ¶
func (in *LocustStatus) DeepCopy() *LocustStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocustStatus.
func (*LocustStatus) DeepCopyInto ¶
func (in *LocustStatus) DeepCopyInto(out *LocustStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.