Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStatus ¶
type ClusterStatus struct { GVK v1.GroupVersionKind `json:"gvk"` Cluster string `json:"cluster"` Conditions []CommonCondition `json:"conditions,omitempty"` }
type Command ¶
type Command struct { Type CommandType `json:"type"` GVK v1.GroupVersionKind `json:"gvk"` Resource string `json:"resource"` Content string `json:"content"` }
type CommandResult ¶
type CommandType ¶
type CommandType string
const ( ApplyCommand CommandType = "APPLY" DeleteCommand = "DELETE" )
type CommonCondition ¶
type Heartbeat ¶
type Heartbeat struct { Cluster ClusterStatus `json:"cluster"` Resources []ResourceStatus `json:"resources,omitempty"` CommandResult *CommandResult `json:"commandResult,omitempty"` Time int64 `json:"time"` }
type HeartbeatResponse ¶
type HeartbeatResponse struct { OK bool `json:"ok"` Message string `json:"message"` Cluster ClusterStatus `json:"cluster"` Command *Command `json:"command,omitempty"` }
type ResourceStatus ¶
type ResourceStatus struct { GVK v1.GroupVersionKind `json:"gvk"` Resource string `json:"resource"` Conditions []CommonCondition `json:"conditions,omitempty"` ResourceVersion string `json:"resourceVersion"` }
Click to show internal directories.
Click to hide internal directories.