Documentation ¶
Index ¶
- func GenerateNNodes(namePrefix string, n int, label map[string]string) ([]runtime.Object, []v1.Node)
- func GenerateNPhysicalMachines(namePrefix string, n int, arg PhysicalMachineArg) ([]runtime.Object, []v1alpha1.PhysicalMachine)
- func GenerateNPods(namePrefix string, n int, podArg PodArg) ([]runtime.Object, []v1.Pod)
- func NewNode(name string, label map[string]string) v1.Node
- func NewPhysicalMachine(p PhysicalMachineArg) v1alpha1.PhysicalMachine
- func NewPod(p PodArg) v1.Pod
- type PhysicalMachineArg
- type PodArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNNodes ¶
func GenerateNPhysicalMachines ¶
func GenerateNPhysicalMachines( namePrefix string, n int, arg PhysicalMachineArg, ) ([]runtime.Object, []v1alpha1.PhysicalMachine)
func GenerateNPods ¶
func NewPhysicalMachine ¶
func NewPhysicalMachine(p PhysicalMachineArg) v1alpha1.PhysicalMachine
Types ¶
type PhysicalMachineArg ¶
type PhysicalMachineArg struct { Name string Namespace string Ans map[string]string Labels map[string]string Address string }
PhysicalMachineArg by default use `Namespace=metav1.NamespaceDefault`. For the others, the default values are empty.
type PodArg ¶
type PodArg struct { Name string Status v1.PodPhase Namespace string Ans map[string]string Labels map[string]string ContainerStatus v1.ContainerStatus Nodename string }
PodArg by default use `Status=corev1.PodRunning` and `Namespace=metav1.NamespaceDefault`. For the others, the default values are empty.
Click to show internal directories.
Click to hide internal directories.