Documentation ¶
Index ¶
Constants ¶
View Source
const MaxRetryTimesForHTTPReq int = 6
Variables ¶
View Source
var HTTPClose = func(resp *http.Response) error {
return resp.Body.Close()
}
Functions ¶
This section is empty.
Types ¶
type MonitorClient ¶
func (*MonitorClient) GetPod ¶
func (m *MonitorClient) GetPod(podNs, PodName string) (int, []byte, error)
func (*MonitorClient) GetPodURL ¶
func (self *MonitorClient) GetPodURL(podNs, podName string) string
func (*MonitorClient) InitClient ¶
func (m *MonitorClient) InitClient(cfg *jason.Object) error
type Port ¶
type Port struct { LazyAttr PortLazyAttr `json:"lazy_attr"` EagerAttr PortEagerAttr `json:"eager_attr"` }
type PortEagerAttr ¶
type PortEagerAttr struct { NetworkName string `json:"network_name"` NetworkPlane string `json:"network_plane"` PortName string `json:"port_name"` VnicType string `json:"vnic_type"` Accelerate string `json:"accelerate"` PodName string `json:"pod_name"` PodNs string `json:"pod_ns"` FixIP string `json:"fix_ip"` IPGroupName string `json:"ip_group_name"` Metadata interface{} `json:"metadata"` }
type PortLazyAttr ¶
Click to show internal directories.
Click to hide internal directories.