Documentation
¶
Index ¶
Constants ¶
View Source
const (
AuthorizationKey = "Authorization"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendResource ¶
type ExtendResource struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Capacity resource.Quantity `json:"capacity,omitempty"` }
ExtendResource is the extended resource detail that comes from edge
type HTTPRequest ¶ added in v1.7.0
type HTTPRequest struct { Header http.Header `json:"header"` Body []byte `json:"body"` Method string `json:"method"` URL string `json:"url"` }
HTTPRequest is used structure used to unmarshal message content from cloud
type HTTPResponse ¶ added in v1.7.0
type HTTPResponse struct { Header http.Header `json:"header"` StatusCode int `json:"status_code"` Body []byte `json:"body"` }
HTTPResponse is HTTP request's response structure used to send response to cloud
type NodeStatusRequest ¶
type NodeStatusRequest struct { UID types.UID Status v1.NodeStatus ExtendResources map[v1.ResourceName][]ExtendResource }
NodeStatusRequest is Message.Content which comes from edge
type NodeUpgradeJobRequest ¶ added in v1.12.0
type NodeUpgradeJobRequest struct { UpgradeID string HistoryID string Version string UpgradeTool string Image string }
NodeUpgradeJobRequest is upgrade msg coming from cloud to edge
type NodeUpgradeJobResponse ¶ added in v1.12.0
type NodeUpgradeJobResponse struct { UpgradeID string HistoryID string NodeName string FromVersion string ToVersion string Status string Reason string }
NodeUpgradeJobResponse is used to report status msg to cloudhub https service
type ObjectResp ¶ added in v1.14.0
ObjectResp is the object that api-server response
Click to show internal directories.
Click to hide internal directories.