Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AckAgentActionsRequest ¶
type AckAgentActionsRequest struct {
Ack []*AgentActionAck `json:"ack,omitempty"`
}
type AgentAction ¶
type AgentAction struct {
ID string `json:"id"`
Type AgentActionType `json:"type"`
CreatedAt time.Time `json:"createdAt"`
Data json.RawMessage `json:"data"`
}
type AgentActionAck ¶
type AgentActionDeleteNode ¶
type AgentActionDeleteNode struct {
NodeName string `json:"nodeName"`
}
type AgentActionDrainNode ¶
type AgentActionPatchNode ¶
type AgentActionType ¶
type AgentActionType string
const ( AgentActionTypeDrainNode AgentActionType = "drain_node" AgentActionTypeDeleteNode AgentActionType = "delete_node" AgentActionTypePatchNode AgentActionType = "patch_node" )
type Client ¶
type Client interface {
GetActions(ctx context.Context, clusterID string) ([]*AgentAction, error)
AckActions(ctx context.Context, clusterID string, ack []*AgentActionAck) error
}
type GetAgentActionsResponse ¶
type GetAgentActionsResponse struct {
Actions []*AgentAction `json:"actions"`
}
Click to show internal directories.
Click to hide internal directories.