Documentation
¶
Overview ¶
Package k8s defines types needed
Index ¶
- func NewAPIClient(tlscfg *tls.Config) (*http.Client, error)
- func NewAPIRequest(token string, reqURL string) (*http.Request, error)
- type Node
- type NodeCondition
- type NodeInfo
- type NodeList
- type NodeMetadata
- type NodeSizes
- type NodeStatus
- type Service
- type ServiceList
- type ServiceMetadata
- type ServicePort
- type ServiceSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { Metadata NodeMetadata `json:"metadata"` Status NodeStatus `json:"status"` }
type NodeCondition ¶
type NodeMetadata ¶
type NodeStatus ¶
type NodeStatus struct { Conditions []NodeCondition `json:"conditions"` NodeInfo NodeInfo `json:"nodeInfo"` Capacity NodeSizes `json:"capacity"` Allocatable NodeSizes `json:"allocatable"` }
type Service ¶
type Service struct { Metadata ServiceMetadata `json:"metadata"` Spec ServiceSpec `json:"spec"` }
type ServiceList ¶
type ServiceList struct {
Items []*Service `json:"items"`
}
type ServiceMetadata ¶
type ServicePort ¶
type ServiceSpec ¶
type ServiceSpec struct {
Ports []ServicePort `json:"ports"`
}
Click to show internal directories.
Click to hide internal directories.