Documentation ¶
Index ¶
- func NewDeployment(name, namespace string, replicas int32, options *NewDeploymentOptions) *appsv1beta1.Deployment
- func NewPod(name, namespace, hash string, options *NewPodOptions) *corev1.Pod
- func NewPods(name, namespace, hash string, replicas uint32, options *NewPodOptions) []*corev1.Pod
- func NewService(name, namespace string, labelsSelector map[string]string, ...) *corev1.Service
- type NewDeploymentOptions
- type NewPodOptions
- type NewServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeployment ¶
func NewDeployment(name, namespace string, replicas int32, options *NewDeploymentOptions) *appsv1beta1.Deployment
NewDeployment returns new Deployment instance for testing purpose
func NewPod ¶
func NewPod(name, namespace, hash string, options *NewPodOptions) *corev1.Pod
NewPod returns new Pod instance for testing purpose
func NewPods ¶
func NewPods(name, namespace, hash string, replicas uint32, options *NewPodOptions) []*corev1.Pod
NewPods returns a slice of new Pod instance
func NewService ¶
func NewService(name, namespace string, labelsSelector map[string]string, options *NewServiceOptions) *corev1.Service
NewService returns new corev1.Service instance
Types ¶
type NewDeploymentOptions ¶
type NewDeploymentOptions struct { CreationTime *metav1.Time Selector map[string]string Labels map[string]string }
NewDeploymentOptions used to provide Deployment creation options
type NewPodOptions ¶
NewPodOptions used to store Pod creation options
type NewServiceOptions ¶
type NewServiceOptions struct { Type corev1.ServiceType Ports []corev1.ServicePort }
NewServiceOptions used to provide Service creation options
Click to show internal directories.
Click to hide internal directories.