Documentation ¶
Index ¶
- type K8s
- type K8sClient
- func (c *K8sClient) ListNodeIPByLabel(label string) ([]net.IP, error)
- func (c *K8sClient) ListNodes() (*v1.NodeList, error)
- func (c *K8sClient) ListNodesByLabel(label string) (*v1.NodeList, error)
- func (c *K8sClient) ListResources(gvr schema.GroupVersionResource, namespace string, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8s ¶
type K8s interface { ListNodes() (*v1.NodeList, error) ListNodesByLabel(label string) (*v1.NodeList, error) ListNodeIPByLabel(label string) ([]net.IP, error) ListResources(gvr schema.GroupVersionResource, namespace string, opts metav1.ListOptions) (*unstructured.UnstructuredList, error) }
type K8sClient ¶
type K8sClient struct { //client *kubernetes.Clientset Client kubernetes.Client }
func (*K8sClient) ListNodeIPByLabel ¶
func (*K8sClient) ListNodesByLabel ¶
func (*K8sClient) ListResources ¶
func (c *K8sClient) ListResources(gvr schema.GroupVersionResource, namespace string, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
Click to show internal directories.
Click to hide internal directories.