k8s

package
v0.0.0-...-9649b88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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

func Close

func Close(resp *http.Response) error

func Get

func Get(url string) (*http.Response, error)

func ReadAll

func ReadAll(resp *http.Response) ([]byte, error)

Types

type K8sClient

type K8sClient struct {
	// Header *http.Header
	ServerURL string
}

func (*K8sClient) Get

func (self *K8sClient) Get(url string) (int, []byte, error)

func (*K8sClient) GetK8sRspPodInfo

func (self *K8sClient) GetK8sRspPodInfo(url string) (int, []byte, error)

func (*K8sClient) GetNodeInfo

func (self *K8sClient) GetNodeInfo(nodeIP string) (*jason.Object, error)

func (*K8sClient) GetNodeList

func (self *K8sClient) GetNodeList(url string) ([]*jason.Object, error)

func (*K8sClient) GetPod

func (self *K8sClient) GetPod(podNs, podName string) (int, *jason.Object, error)

func (*K8sClient) GetPodInfo

func (self *K8sClient) GetPodInfo(url string) (int, *jason.Object, error)

func (*K8sClient) GetPodList

func (self *K8sClient) GetPodList(url string) ([]*jason.Object, error)

func (*K8sClient) GetPodsOfNode

func (self *K8sClient) GetPodsOfNode(nodeID string) ([]*jason.Object, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL