Documentation ¶
Overview ¶
Package k8stest provides testing utilities for testing the kubernetes package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct { // MinionList is the static list of Minions returned on Discover. MinionList kubernetes.MinionList // PodInfoMap is a static map of Pods returned on GetPodInfo. // Key of map is of format namespace/name. PodInfoMap map[string]*kubernetes.PodInfo }
Fake implements a Kubernetes Service Fake.
func (*Fake) Discover ¶
func (f *Fake) Discover() (kubernetes.MinionList, error)
Discover returns static list of Minions.
func (*Fake) GetPodInfo ¶
GetPodInfo returns PodInfo from static map.
type Mock ¶
Mock implements a Kubernetes Service Mock.
func (*Mock) Discover ¶
func (m *Mock) Discover() (lst kubernetes.MinionList, err error)
Discover is a mocked method.
func (*Mock) GetPodInfo ¶
GetPodInfo is a mocked method.
Click to show internal directories.
Click to hide internal directories.