Documentation
¶
Index ¶
- type APIHelpers
- type K8sHelpers
- func (h K8sHelpers) GetClient() (*k8sclient.Clientset, error)
- func (h K8sHelpers) GetNode(cli *k8sclient.Clientset, nodeName string) (*api.Node, error)
- func (h K8sHelpers) PatchStatus(c *k8sclient.Clientset, nodeName string, marshalable interface{}) error
- func (h K8sHelpers) UpdateNode(c *k8sclient.Clientset, n *api.Node) error
- type MockAPIHelpers
- func (_m *MockAPIHelpers) GetClient() (*kubernetes.Clientset, error)
- func (_m *MockAPIHelpers) GetNode(_a0 *kubernetes.Clientset, _a1 string) (*v1.Node, error)
- func (_m *MockAPIHelpers) PatchStatus(_a0 *kubernetes.Clientset, _a1 string, _a2 interface{}) error
- func (_m *MockAPIHelpers) UpdateNode(_a0 *kubernetes.Clientset, _a1 *v1.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHelpers ¶
type APIHelpers interface { // GetClient returns a client GetClient() (*k8sclient.Clientset, error) // GetNode returns the Kubernetes node on which this container is running. GetNode(*k8sclient.Clientset, string) (*api.Node, error) // UpdateNode updates the node via the API server using a client. UpdateNode(*k8sclient.Clientset, *api.Node) error // PatchStatus updates the node status via the API server using a client. PatchStatus(*k8sclient.Clientset, string, interface{}) error }
APIHelpers represents a set of API helpers for Kubernetes
type K8sHelpers ¶
type K8sHelpers struct { }
Implements APIHelpers
func (K8sHelpers) PatchStatus ¶ added in v0.6.0
func (h K8sHelpers) PatchStatus(c *k8sclient.Clientset, nodeName string, marshalable interface{}) error
func (K8sHelpers) UpdateNode ¶
type MockAPIHelpers ¶
MockAPIHelpers is an autogenerated mock type for the APIHelpers type
func (*MockAPIHelpers) GetClient ¶
func (_m *MockAPIHelpers) GetClient() (*kubernetes.Clientset, error)
GetClient provides a mock function with given fields:
func (*MockAPIHelpers) GetNode ¶
func (_m *MockAPIHelpers) GetNode(_a0 *kubernetes.Clientset, _a1 string) (*v1.Node, error)
GetNode provides a mock function with given fields: _a0, _a1
func (*MockAPIHelpers) PatchStatus ¶ added in v0.6.0
func (_m *MockAPIHelpers) PatchStatus(_a0 *kubernetes.Clientset, _a1 string, _a2 interface{}) error
PatchStatus provides a mock function with given fields: _a0, _a1, _a2
func (*MockAPIHelpers) UpdateNode ¶
func (_m *MockAPIHelpers) UpdateNode(_a0 *kubernetes.Clientset, _a1 *v1.Node) error
UpdateNode provides a mock function with given fields: _a0, _a1
Click to show internal directories.
Click to hide internal directories.