Documentation
¶
Index ¶
- func NewDefaultClient(url, key string, level logrus.Level, ...) *resty.Client
- type AKSInitDataRequest
- type AckClusterActionRequest
- type ActionApproveCSR
- type ActionChartUninstall
- type ActionChartUpsert
- 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 ActionApproveCSR struct {
NodeName string `json:"nodeName"`
}
type ActionChartUninstall ¶ added in v0.11.0
type ActionChartUpsert ¶ added in v0.6.0
type ActionCreateEvent ¶ added in v0.4.0
type ActionDeleteNode ¶
type ActionDeleteNode struct {
NodeName string `json:"nodeName"`
}
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"`
ActionDisconnectCluster *ActionDisconnectCluster `json:"actionDisconnectCluster,omitempty"`
ActionSendAKSInitData *ActionSendAKSInitData `json:"actionSendAksInitData,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.