Documentation ¶
Index ¶
- func NewDefaultClient(url, key string, level logrus.Level, ...) *resty.Client
- type AKSInitDataRequest
- type AckClusterActionRequest
- type ActionApproveCSR
- type ActionChartRollback
- type ActionChartUninstall
- type ActionChartUpsert
- type ActionCheckNodeDeleted
- type ActionCheckNodeStatus
- type ActionCheckNodeStatus_Status
- type ActionCreateEvent
- type ActionDeleteNode
- type ActionDisconnectCluster
- type ActionDrainNode
- type ActionPatchNode
- type ActionSendAKSInitData
- type ChartSource
- 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.ClusterControllerVersion) *resty.Client
NewDefaultClient configures a default instance of the resty.Client used to do HTTP requests.
Types ¶
type AKSInitDataRequest ¶ added in v0.9.0
type AckClusterActionRequest ¶
type AckClusterActionRequest struct {
Error *string `json:"error"`
}
type ActionApproveCSR ¶ added in v0.5.0
type ActionChartRollback ¶ added in v0.20.0
type ActionChartUninstall ¶ added in v0.11.0
type ActionChartUpsert ¶ added in v0.6.0
type ActionCheckNodeDeleted ¶ added in v0.17.0
type ActionCheckNodeStatus ¶ added in v0.22.0
type ActionCheckNodeStatus struct { NodeName string `json:"nodeName"` NodeID string `json:"nodeId"` NodeStatus ActionCheckNodeStatus_Status `json:"nodeStatus,omitempty"` WaitTimeoutSeconds *int32 `json:"waitTimeoutSeconds,omitempty"` }
type ActionCheckNodeStatus_Status ¶ added in v0.22.0
type ActionCheckNodeStatus_Status string
const ( ActionCheckNodeStatus_READY ActionCheckNodeStatus_Status = "NodeStatus_READY" ActionCheckNodeStatus_DELETED ActionCheckNodeStatus_Status = "NodeStatus_DELETED" )
type ActionCreateEvent ¶ added in v0.4.0
type ActionDeleteNode ¶
type ActionDisconnectCluster ¶ added in v0.8.0
type ActionDisconnectCluster struct { }
type ActionDrainNode ¶
type ActionPatchNode ¶
type ActionSendAKSInitData ¶ added in v0.9.0
type ActionSendAKSInitData struct { }
type ChartSource ¶ added in v0.6.0
type ChartSource struct { RepoURL string `json:"repoUrl"` Name string `json:"name"` Version string `json:"version"` }
func (*ChartSource) Validate ¶ added in v0.6.0
func (c *ChartSource) Validate() error
type Client ¶
type Client interface { GetActions(ctx context.Context, k8sVersion string) ([]*ClusterAction, error) AckAction(ctx context.Context, actionID string, req *AckClusterActionRequest) error SendLogs(ctx context.Context, req *LogEvent) error SendAKSInitData(ctx context.Context, req *AKSInitDataRequest) error }
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"` ActionApproveCSR *ActionApproveCSR `json:"actionApproveCsr,omitempty"` ActionChartUpsert *ActionChartUpsert `json:"actionChartUpsert,omitempty"` ActionChartUninstall *ActionChartUninstall `json:"actionChartUninstall,omitempty"` ActionChartRollback *ActionChartRollback `json:"actionChartRollback,omitempty"` ActionDisconnectCluster *ActionDisconnectCluster `json:"actionDisconnectCluster,omitempty"` ActionSendAKSInitData *ActionSendAKSInitData `json:"actionSendAksInitData,omitempty"` ActionCheckNodeDeleted *ActionCheckNodeDeleted `json:"actionCheckNodeDeleted,omitempty"` ActionCheckNodeStatus *ActionCheckNodeStatus `json:"actionCheckNodeStatus,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.