Documentation
¶
Index ¶
- func CreateMockClient(nodesJsonFilePath string, namespacesJsonFilePath string, ...) (*mockKubernetesClient, error)
- func GetEvents(t *testing.T, fileName string) ([]v1.Event, error)
- func GetNamespaces(t *testing.T, fileName string) ([]v1.Namespace, error)
- func GetNodes(t *testing.T, fileName string) ([]v1.Node, error)
- func GetPods(t *testing.T, fileName string) ([]v1.Pod, error)
- func GetReplicaSets(t *testing.T, fileName string) ([]v12.ReplicaSet, error)
- type KubernetesClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMockClient ¶
func GetReplicaSets ¶
Types ¶
type KubernetesClient ¶
type KubernetesClient interface { GetNodes() ([]v1.Node, error) GetNamespaces() ([]v1.Namespace, error) GetPods(namespace string) ([]v1.Pod, error) GetReplicaSets(namespace string) ([]v12.ReplicaSet, error) GetPodLogs(namespace string, podName string, containerName string) (logs string, err error) GetEvents(namespace string) ([]v1.Event, error) }
func CreateClient ¶
func CreateClient(config *config.Config, kubeconfig kubeconfig.KubeConfig) (KubernetesClient, error)
Click to show internal directories.
Click to hide internal directories.