v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 5 Imported by: 0

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

View Source
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

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

func (in *Locust) DeepCopy() *Locust

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

func (*Locust) DeepCopyInto

func (in *Locust) DeepCopyInto(out *Locust)

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

func (*Locust) DeepCopyObject

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

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.

Jump to

Keyboard shortcuts

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