Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeK8s ¶
type FakeK8s struct { // Used by tests to insert resources for test EventInput chan watch.Event // contains filtered or unexported fields }
FakeK8s is a mock K8s API server. It can serve both list and watch requests.
func (*FakeK8s) ServeHTTP ¶
func (f *FakeK8s) ServeHTTP(rw http.ResponseWriter, r *http.Request)
ServeHTTP handles a single request
func (*FakeK8s) SetInitialList ¶
func (f *FakeK8s) SetInitialList(l interface{})
SetInitialList adds resources to the server state that are served when doing list requests. l can be a list of any of the supported resource types.
type ResourceType ¶
type ResourceType int
ResourceType is an enum
const ( Pods ResourceType = iota Deployments ReplicationControllers DaemonSets ReplicaSets Secrets Namespaces Nodes )
Enum values for ResourceType
Click to show internal directories.
Click to hide internal directories.