Documentation ¶
Overview ¶
Package k8s defines types needed
Index ¶
- func NewAPIClient(tlscfg *tls.Config, reqTimeout time.Duration) (*http.Client, error)
- func NewAPIRequest(ctx context.Context, token string, reqURL string) (*http.Request, error)
- type Node
- type NodeCondition
- type NodeInfo
- type NodeList
- type NodeMetadata
- type NodeSizes
- type NodeStatus
- type Pod
- type PodList
- type PodMetadata
- type PodSpec
- type PodStatus
- type Service
- type ServiceList
- type ServiceMetadata
- type ServicePort
- type ServiceSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIClient ¶
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 Pod ¶ added in v0.6.5
type Pod struct { Metadata PodMetadata `json:"metadata"` Spec PodSpec `json:"spec"` }
type PodMetadata ¶ added in v0.6.5
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"` Selector map[string]string `json:"selector"` }
Click to show internal directories.
Click to hide internal directories.