v1

package
v0.0.0-...-d0acd22 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the sim v1 API group +kubebuilder:object:generate=true +groupName=sim.k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "sim.k8s.io", 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 NodeSimulator

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

	Spec   NodeSimulatorSpec   `json:"spec,omitempty"`
	Status NodeSimulatorStatus `json:"status,omitempty"`
}

NodeSimulator is the Schema for the nodesimulators API

func (*NodeSimulator) DeepCopy

func (in *NodeSimulator) DeepCopy() *NodeSimulator

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

func (*NodeSimulator) DeepCopyInto

func (in *NodeSimulator) DeepCopyInto(out *NodeSimulator)

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

func (*NodeSimulator) DeepCopyObject

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

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

type NodeSimulatorList

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

NodeSimulatorList contains a list of NodeSimulator

func (*NodeSimulatorList) DeepCopy

func (in *NodeSimulatorList) DeepCopy() *NodeSimulatorList

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

func (*NodeSimulatorList) DeepCopyInto

func (in *NodeSimulatorList) DeepCopyInto(out *NodeSimulatorList)

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

func (*NodeSimulatorList) DeepCopyObject

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

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

type NodeSimulatorSpec

type NodeSimulatorSpec struct {
	Number    int              `json:"number"`
	PodCIDRs  []string         `json:"podCIDRs,omitempty" protobuf:"bytes,7,opt,name=podCIDRs" patchStrategy:"merge"`
	Taints    []v1.Taint       `json:"taints,omitempty" protobuf:"bytes,5,opt,name=taints"`
	Addresses []v1.NodeAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,5,rep,name=addresses"`
	Capacity  v1.ResourceList  `json:"capacity,omitempty" protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"`
}

NodeSimulatorSpec defines the desired state of NodeSimulator

func (*NodeSimulatorSpec) DeepCopy

func (in *NodeSimulatorSpec) DeepCopy() *NodeSimulatorSpec

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

func (*NodeSimulatorSpec) DeepCopyInto

func (in *NodeSimulatorSpec) DeepCopyInto(out *NodeSimulatorSpec)

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

type NodeSimulatorStatus

type NodeSimulatorStatus struct {
	Phase string `json:"phase,omitempty"`
}

NodeSimulatorStatus defines the observed state of NodeSimulator

func (*NodeSimulatorStatus) DeepCopy

func (in *NodeSimulatorStatus) DeepCopy() *NodeSimulatorStatus

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

func (*NodeSimulatorStatus) DeepCopyInto

func (in *NodeSimulatorStatus) DeepCopyInto(out *NodeSimulatorStatus)

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