Documentation ¶
Index ¶
- Variables
- func Close(resp *http.Response) error
- func Get(url string) (*http.Response, error)
- func ReadAll(resp *http.Response) ([]byte, error)
- type K8sClient
- func (self *K8sClient) Get(url string) (int, []byte, error)
- func (self *K8sClient) GetK8sRspPodInfo(url string) (int, []byte, error)
- func (self *K8sClient) GetNodeInfo(nodeIP string) (*jason.Object, error)
- func (self *K8sClient) GetNodeList(url string) ([]*jason.Object, error)
- func (self *K8sClient) GetPod(podNs, podName string) (int, *jason.Object, error)
- func (self *K8sClient) GetPodInfo(url string) (int, *jason.Object, error)
- func (self *K8sClient) GetPodList(url string) ([]*jason.Object, error)
- func (self *K8sClient) GetPodsOfNode(nodeID string) ([]*jason.Object, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CloseFunc func(resp *http.Response) (err error)
View Source
var GetFunc func(url string) (resp *http.Response, err error)
View Source
var ReadAllFunc func(resp *http.Response) (body []byte, err error)
Functions ¶
Types ¶
type K8sClient ¶
type K8sClient struct { // Header *http.Header ServerURL string }
func (*K8sClient) GetK8sRspPodInfo ¶
func (*K8sClient) GetNodeInfo ¶
func (*K8sClient) GetNodeList ¶
func (*K8sClient) GetPodInfo ¶
func (*K8sClient) GetPodList ¶
Click to show internal directories.
Click to hide internal directories.