Documentation ¶
Index ¶
- Constants
- func PrintSeparately(a ...interface{})
- func StartServer() *httptest.Server
- type Framework
- func (f *Framework) AcknowledgeClusterAlertNotification(meta metav1.ObjectMeta, hostname string) error
- func (f *Framework) CleanClusterAlert()
- func (f *Framework) CleanNodeAlert()
- func (f *Framework) CleanPodAlert()
- func (f *Framework) CountNode() (int32, error)
- func (f *Framework) CreateClusterAlert(obj *api.ClusterAlert) error
- func (f *Framework) CreateDeployment(obj *apps.Deployment) error
- func (f *Framework) CreateNamespace() error
- func (f *Framework) CreateNodeAlert(obj *api.NodeAlert) error
- func (f *Framework) CreatePod(obj *core.Pod) (*core.Pod, error)
- func (f *Framework) CreatePodAlert(obj *api.PodAlert) error
- func (f *Framework) CreateReplicaSet(obj *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
- func (f *Framework) CreateService(obj *core.Service) error
- func (f *Framework) CreateStatefulSet(obj *apps.StatefulSet) (*apps.StatefulSet, error)
- func (f *Framework) CreateWebHookSecret(obj *core_v1.Secret) error
- func (f *Framework) DeleteClusterAlert(meta metav1.ObjectMeta) error
- func (f *Framework) DeleteDeployment(obj *apps.Deployment) error
- func (f *Framework) DeleteNamespace() error
- func (f *Framework) DeleteNodeAlert(meta metav1.ObjectMeta) error
- func (f *Framework) DeletePod(meta metav1.ObjectMeta) error
- func (f *Framework) DeletePodAlert(meta metav1.ObjectMeta) error
- func (f *Framework) DeleteReplicaSet(obj *extensions.ReplicaSet) error
- func (f *Framework) DeleteService(meta metav1.ObjectMeta) error
- func (f *Framework) DeleteStatefulSet(obj *apps.StatefulSet) error
- func (f *Framework) EventuallyClusterAlertIcingaNotification(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyClusterAlertIcingaService(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyDeployment(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyHTTPServerResponse(serverURL string) GomegaAsyncAssertion
- func (f *Framework) EventuallyIcingaAPI() GomegaAsyncAssertion
- func (f *Framework) EventuallyNodeAlertIcingaService(meta metav1.ObjectMeta, nodeAlertSpec api.NodeAlertSpec) GomegaAsyncAssertion
- func (f *Framework) EventuallyPodAlertIcingaService(meta metav1.ObjectMeta, podAlertSpec api.PodAlertSpec) GomegaAsyncAssertion
- func (f *Framework) EventuallyPodRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyReplicaSet(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyServiceLoadBalancer(meta metav1.ObjectMeta, portName string) GomegaAsyncAssertion
- func (f *Framework) EventuallyStatefulSet(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) ForceCheckClusterAlert(meta metav1.ObjectMeta, hostname string, times int) error
- func (f *Framework) GetClusterAlert(meta metav1.ObjectMeta) (*api.ClusterAlert, error)
- func (f *Framework) GetNodeAlert(meta metav1.ObjectMeta) (*api.NodeAlert, error)
- func (f *Framework) GetPodAlert(meta metav1.ObjectMeta) (*api.PodAlert, error)
- func (f *Framework) GetPodList(actual interface{}) (*core.PodList, error)
- func (f *Framework) GetReplicaSet(meta metav1.ObjectMeta) (*extensions.ReplicaSet, error)
- func (f *Framework) GetServiceEndpoint(meta metav1.ObjectMeta, portName string) (string, error)
- func (f *Framework) GetStatefulSet(meta metav1.ObjectMeta) (*apps.StatefulSet, error)
- func (f *Framework) Invoke() *Invocation
- func (f *Framework) KubeClient() kubernetes.Interface
- func (f *Framework) MonitoringClient() mon_cs.MonitoringV1alpha1Interface
- func (f *Framework) Namespace() string
- func (f *Framework) SendClusterAlertCustomNotification(meta metav1.ObjectMeta, hostname string) error
- func (f *Framework) SetIcingaClient(icingaClient *icinga.Client) *Framework
- type Invocation
- func (f *Invocation) ClusterAlert() *api.ClusterAlert
- func (f *Invocation) Deployment() *apps.Deployment
- func (f *Invocation) GetIcingaApiPassword(objectMeta metav1.ObjectMeta) (string, error)
- func (f *Invocation) GetWebHookSecret() *core_v1.Secret
- func (f *Invocation) NodeAlert() *api.NodeAlert
- func (f *Invocation) Pod() *core.Pod
- func (f *Invocation) PodAlert() *api.PodAlert
- func (f *Invocation) PodTemplate() core.PodTemplateSpec
- func (f *Invocation) ReplicaSet() *extensions.ReplicaSet
- func (f *Invocation) StatefulSet() *apps.StatefulSet
- type Message
Constants ¶
View Source
const ( TestSourceDataVolumeName = "source-data" TestSourceDataMountPath = "/source/data" )
View Source
const (
TEST_HEADLESS_SERVICE = "headless"
)
Variables ¶
This section is empty.
Functions ¶
func PrintSeparately ¶
func PrintSeparately(a ...interface{})
func StartServer ¶
Types ¶
type Framework ¶
type Framework struct { Provider string // contains filtered or unexported fields }
func New ¶
func New(kubeClient kubernetes.Interface, apiExtKubeClient crd_cs.ApiextensionsV1beta1Interface, extClient cs.Interface, icingaClient *icinga.Client, provider, storageClass string) *Framework
func (*Framework) AcknowledgeClusterAlertNotification ¶
func (f *Framework) AcknowledgeClusterAlertNotification(meta metav1.ObjectMeta, hostname string) error
func (*Framework) CleanClusterAlert ¶
func (f *Framework) CleanClusterAlert()
func (*Framework) CleanNodeAlert ¶
func (f *Framework) CleanNodeAlert()
func (*Framework) CleanPodAlert ¶
func (f *Framework) CleanPodAlert()
func (*Framework) CreateClusterAlert ¶
func (f *Framework) CreateClusterAlert(obj *api.ClusterAlert) error
func (*Framework) CreateDeployment ¶
func (f *Framework) CreateDeployment(obj *apps.Deployment) error
func (*Framework) CreateNamespace ¶
func (*Framework) CreateReplicaSet ¶
func (f *Framework) CreateReplicaSet(obj *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
func (*Framework) CreateStatefulSet ¶
func (f *Framework) CreateStatefulSet(obj *apps.StatefulSet) (*apps.StatefulSet, error)
func (*Framework) CreateWebHookSecret ¶
func (*Framework) DeleteClusterAlert ¶
func (f *Framework) DeleteClusterAlert(meta metav1.ObjectMeta) error
func (*Framework) DeleteDeployment ¶
func (f *Framework) DeleteDeployment(obj *apps.Deployment) error
func (*Framework) DeleteNamespace ¶
func (*Framework) DeleteNodeAlert ¶
func (f *Framework) DeleteNodeAlert(meta metav1.ObjectMeta) error
func (*Framework) DeletePodAlert ¶
func (f *Framework) DeletePodAlert(meta metav1.ObjectMeta) error
func (*Framework) DeleteReplicaSet ¶
func (f *Framework) DeleteReplicaSet(obj *extensions.ReplicaSet) error
func (*Framework) DeleteService ¶
func (f *Framework) DeleteService(meta metav1.ObjectMeta) error
func (*Framework) DeleteStatefulSet ¶
func (f *Framework) DeleteStatefulSet(obj *apps.StatefulSet) error
func (*Framework) EventuallyClusterAlertIcingaNotification ¶
func (f *Framework) EventuallyClusterAlertIcingaNotification(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyClusterAlertIcingaService ¶
func (f *Framework) EventuallyClusterAlertIcingaService(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyDeployment ¶
func (f *Framework) EventuallyDeployment(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyHTTPServerResponse ¶
func (*Framework) EventuallyIcingaAPI ¶
func (f *Framework) EventuallyIcingaAPI() GomegaAsyncAssertion
func (*Framework) EventuallyNodeAlertIcingaService ¶
func (f *Framework) EventuallyNodeAlertIcingaService(meta metav1.ObjectMeta, nodeAlertSpec api.NodeAlertSpec) GomegaAsyncAssertion
func (*Framework) EventuallyPodAlertIcingaService ¶
func (f *Framework) EventuallyPodAlertIcingaService(meta metav1.ObjectMeta, podAlertSpec api.PodAlertSpec) GomegaAsyncAssertion
func (*Framework) EventuallyPodRunning ¶
func (f *Framework) EventuallyPodRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyReplicaSet ¶
func (f *Framework) EventuallyReplicaSet(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyServiceLoadBalancer ¶
func (f *Framework) EventuallyServiceLoadBalancer(meta metav1.ObjectMeta, portName string) GomegaAsyncAssertion
func (*Framework) EventuallyStatefulSet ¶
func (f *Framework) EventuallyStatefulSet(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) ForceCheckClusterAlert ¶
func (*Framework) GetClusterAlert ¶
func (f *Framework) GetClusterAlert(meta metav1.ObjectMeta) (*api.ClusterAlert, error)
func (*Framework) GetNodeAlert ¶
func (*Framework) GetPodAlert ¶
func (*Framework) GetPodList ¶
func (*Framework) GetReplicaSet ¶
func (f *Framework) GetReplicaSet(meta metav1.ObjectMeta) (*extensions.ReplicaSet, error)
func (*Framework) GetServiceEndpoint ¶
func (*Framework) GetStatefulSet ¶
func (f *Framework) GetStatefulSet(meta metav1.ObjectMeta) (*apps.StatefulSet, error)
func (*Framework) Invoke ¶
func (f *Framework) Invoke() *Invocation
func (*Framework) KubeClient ¶
func (f *Framework) KubeClient() kubernetes.Interface
func (*Framework) MonitoringClient ¶
func (f *Framework) MonitoringClient() mon_cs.MonitoringV1alpha1Interface
func (*Framework) SendClusterAlertCustomNotification ¶
func (f *Framework) SendClusterAlertCustomNotification(meta metav1.ObjectMeta, hostname string) error
type Invocation ¶
type Invocation struct { *Framework // contains filtered or unexported fields }
func (*Invocation) ClusterAlert ¶
func (f *Invocation) ClusterAlert() *api.ClusterAlert
func (*Invocation) Deployment ¶
func (f *Invocation) Deployment() *apps.Deployment
func (*Invocation) GetIcingaApiPassword ¶
func (f *Invocation) GetIcingaApiPassword(objectMeta metav1.ObjectMeta) (string, error)
func (*Invocation) GetWebHookSecret ¶
func (f *Invocation) GetWebHookSecret() *core_v1.Secret
func (*Invocation) NodeAlert ¶
func (f *Invocation) NodeAlert() *api.NodeAlert
func (*Invocation) Pod ¶
func (f *Invocation) Pod() *core.Pod
func (*Invocation) PodAlert ¶
func (f *Invocation) PodAlert() *api.PodAlert
func (*Invocation) PodTemplate ¶
func (f *Invocation) PodTemplate() core.PodTemplateSpec
func (*Invocation) ReplicaSet ¶
func (f *Invocation) ReplicaSet() *extensions.ReplicaSet
func (*Invocation) StatefulSet ¶
func (f *Invocation) StatefulSet() *apps.StatefulSet
Click to show internal directories.
Click to hide internal directories.