Documentation ¶
Index ¶
- func NewDefaultClient(url, key string, level logrus.Level, binVersion *config.AgentActionsVersion) *resty.Client
- type AckClusterActionRequest
- type ActionCreateEvent
- type ActionDeleteNode
- type ActionDrainNode
- type ActionPatchNode
- type Client
- type ClusterAction
- type GetClusterActionsResponse
- type LogEvent
- type NodeTaint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultClient ¶
func NewDefaultClient(url, key string, level logrus.Level, binVersion *config.AgentActionsVersion) *resty.Client
NewDefaultClient configures a default instance of the resty.Client used to do HTTP requests.
Types ¶
type AckClusterActionRequest ¶
type AckClusterActionRequest struct {
Error *string `json:"error"`
}
type ActionCreateEvent ¶ added in v0.4.0
type ActionDeleteNode ¶
type ActionDeleteNode struct {
NodeName string `json:"nodeName"`
}
type ActionDrainNode ¶
type ActionPatchNode ¶
type Client ¶
type ClusterAction ¶
type ClusterAction struct { ID string `json:"id"` ActionDeleteNode *ActionDeleteNode `json:"actionDeleteNode,omitempty"` ActionDrainNode *ActionDrainNode `json:"actionDrainNode,omitempty"` ActionPatchNode *ActionPatchNode `json:"actionPatchNode,omitempty"` ActionCreateEvent *ActionCreateEvent `json:"actionCreateEvent,omitempty"` CreatedAt time.Time `json:"createdAt"` DoneAt *time.Time `json:"doneAt,omitempty"` Error *string `json:"error,omitempty"` }
func (*ClusterAction) Data ¶
func (c *ClusterAction) Data() interface{}
type GetClusterActionsResponse ¶
type GetClusterActionsResponse struct {
Items []*ClusterAction `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.