Documentation ¶
Index ¶
- type Catalog
- func (c *Catalog) DefaultConfig() *config.Config
- func (c *Catalog) DefaultConfigMap(name string) corev1.ConfigMap
- func (c *Catalog) DefaultPodTemplate(name string) corev1.PodTemplateSpec
- func (c *Catalog) DefaultPodTemplateWithActiveLabel(name string) corev1.PodTemplateSpec
- func (c *Catalog) DefaultQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) DefaultSecret(name string) corev1.Secret
- func (c *Catalog) DefaultStatefulSet(name string) appsv1.StatefulSet
- func (c *Catalog) DefaultStatefulSetWithActiveSinglePod(name string) appsv1.StatefulSet
- func (c *Catalog) DefaultStatefulSetWithReplicasN(name string) appsv1.StatefulSet
- func (c *Catalog) DefaultVolumeClaimTemplates(name string, storageClassName string) []corev1.PersistentVolumeClaim
- func (c *Catalog) DefaultVolumeMount(name string) corev1.VolumeMount
- func (c *Catalog) LabeledPod(name string, labels map[string]string) corev1.Pod
- func (c *Catalog) OwnedReferencesPodTemplate(name string) corev1.PodTemplateSpec
- func (c *Catalog) OwnedReferencesQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) OwnedReferencesStatefulSet(name string) appsv1.StatefulSet
- func (c *Catalog) PodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
- func (c *Catalog) QstsWithActiveSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithProbeSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithProbeSinglePodMultipleAZs(name string, cmd []string, zones []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithoutProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) Sleep1hPodSpec() corev1.PodSpec
- func (c *Catalog) StatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet
- func (c *Catalog) WrongPodTemplate(name string) corev1.PodTemplateSpec
- func (c *Catalog) WrongPodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
- func (c *Catalog) WrongQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) WrongQuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) WrongStatefulSet(name string) appsv1.StatefulSet
- func (c *Catalog) WrongStatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct{}
Catalog provides several instances for tests
func (*Catalog) DefaultConfig ¶
DefaultConfig for tests
func (*Catalog) DefaultConfigMap ¶
DefaultConfigMap for tests
func (*Catalog) DefaultPodTemplate ¶
func (c *Catalog) DefaultPodTemplate(name string) corev1.PodTemplateSpec
DefaultPodTemplate defines a pod template with the testpod label
func (*Catalog) DefaultPodTemplateWithActiveLabel ¶
func (c *Catalog) DefaultPodTemplateWithActiveLabel(name string) corev1.PodTemplateSpec
DefaultPodTemplateWithActiveLabel defines a pod template with an pod-active label
func (*Catalog) DefaultQuarksStatefulSet ¶
func (c *Catalog) DefaultQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
DefaultQuarksStatefulSet for use in tests
func (*Catalog) DefaultSecret ¶
DefaultSecret for tests
func (*Catalog) DefaultStatefulSet ¶
func (c *Catalog) DefaultStatefulSet(name string) appsv1.StatefulSet
DefaultStatefulSet for use in tests
func (*Catalog) DefaultStatefulSetWithActiveSinglePod ¶
func (c *Catalog) DefaultStatefulSetWithActiveSinglePod(name string) appsv1.StatefulSet
DefaultStatefulSetWithActiveSinglePod for use in tests
func (*Catalog) DefaultStatefulSetWithReplicasN ¶
func (c *Catalog) DefaultStatefulSetWithReplicasN(name string) appsv1.StatefulSet
DefaultStatefulSetWithReplicasN for use in tests
func (*Catalog) DefaultVolumeClaimTemplates ¶
func (c *Catalog) DefaultVolumeClaimTemplates(name string, storageClassName string) []corev1.PersistentVolumeClaim
DefaultVolumeClaimTemplates for use in tests
func (*Catalog) DefaultVolumeMount ¶
func (c *Catalog) DefaultVolumeMount(name string) corev1.VolumeMount
DefaultVolumeMount for use in tests
func (*Catalog) LabeledPod ¶ added in v0.0.3
LabeledPod defines a pod with labels
func (*Catalog) OwnedReferencesPodTemplate ¶
func (c *Catalog) OwnedReferencesPodTemplate(name string) corev1.PodTemplateSpec
OwnedReferencesPodTemplate defines a pod template with four references from VolumeSources, EnvFrom and Env
func (*Catalog) OwnedReferencesQuarksStatefulSet ¶
func (c *Catalog) OwnedReferencesQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
OwnedReferencesQuarksStatefulSet for use in tests
func (*Catalog) OwnedReferencesStatefulSet ¶
func (c *Catalog) OwnedReferencesStatefulSet(name string) appsv1.StatefulSet
OwnedReferencesStatefulSet for use in tests
func (*Catalog) PodTemplateWithLabelsAndMount ¶
func (c *Catalog) PodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
PodTemplateWithLabelsAndMount defines a pod template with a volume mount
func (*Catalog) QstsWithActiveSinglePod ¶
func (c *Catalog) QstsWithActiveSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithActiveSinglePod for use in tests
func (*Catalog) QstsWithProbeMultiplePods ¶
func (c *Catalog) QstsWithProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithProbeMultiplePods for use in tests
func (*Catalog) QstsWithProbeSinglePod ¶
func (c *Catalog) QstsWithProbeSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithProbeSinglePod for use in tests
func (*Catalog) QstsWithProbeSinglePodMultipleAZs ¶ added in v0.0.3
func (c *Catalog) QstsWithProbeSinglePodMultipleAZs(name string, cmd []string, zones []string) qstsv1a1.QuarksStatefulSet
QstsWithProbeSinglePodMultipleAZs for use in tests
func (*Catalog) QstsWithoutProbeMultiplePods ¶
func (c *Catalog) QstsWithoutProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithoutProbeMultiplePods for use in tests
func (*Catalog) QuarksStatefulSetWithPVC ¶
func (c *Catalog) QuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
QuarksStatefulSetWithPVC for use in tests
func (*Catalog) Sleep1hPodSpec ¶
Sleep1hPodSpec defines a simple pod that sleeps 60*60s for testing
func (*Catalog) StatefulSetWithPVC ¶
func (c *Catalog) StatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet
StatefulSetWithPVC for use in tests
func (*Catalog) WrongPodTemplate ¶
func (c *Catalog) WrongPodTemplate(name string) corev1.PodTemplateSpec
WrongPodTemplate defines a pod template with the wrong label/image
func (*Catalog) WrongPodTemplateWithLabelsAndMount ¶
func (c *Catalog) WrongPodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
WrongPodTemplateWithLabelsAndMount defines a pod template with wrong label/image and a volument mount
func (*Catalog) WrongQuarksStatefulSet ¶
func (c *Catalog) WrongQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
WrongQuarksStatefulSet for use in tests
func (*Catalog) WrongQuarksStatefulSetWithPVC ¶
func (c *Catalog) WrongQuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
WrongQuarksStatefulSetWithPVC for use in tests
func (*Catalog) WrongStatefulSet ¶
func (c *Catalog) WrongStatefulSet(name string) appsv1.StatefulSet
WrongStatefulSet for use in tests
func (*Catalog) WrongStatefulSetWithPVC ¶
func (c *Catalog) WrongStatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet
WrongStatefulSetWithPVC for use in tests