Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func NewAuthTokenAPICreateAuthTokenRequest(server string, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*http.Request, error)
- func NewAuthTokenAPICreateAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthTokenAPIDeleteAuthTokenRequest(server string, id string) (*http.Request, error)
- func NewAuthTokenAPIGetAuthTokenRequest(server string, id string) (*http.Request, error)
- func NewAuthTokenAPIListAuthTokensRequest(server string, params *AuthTokenAPIListAuthTokensParams) (*http.Request, error)
- func NewAuthTokenAPIUpdateAuthTokenRequest(server string, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*http.Request, error)
- func NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewAutoscalerAPIExecuteRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId string) (*http.Request, error)
- func NewAutoscalerAPIGenerateRebalancingPlanRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAutoscalerAPIGetAgentScriptRequest(server string, params *AutoscalerAPIGetAgentScriptParams) (*http.Request, error)
- func NewAutoscalerAPIGetClusterSettingsRequest(server string, clusterId string) (*http.Request, error)
- func NewAutoscalerAPIGetClusterWorkloadsRequest(server string, clusterId string) (*http.Request, error)
- func NewAutoscalerAPIGetKarpenterDefinitionsMigrationIntentRequest(server string, clusterId string) (*http.Request, error)
- func NewAutoscalerAPIGetProblematicNodesRequest(server string, clusterId string) (*http.Request, error)
- func NewAutoscalerAPIGetProblematicWorkloadsRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewAutoscalerAPIGetRebalancedWorkloadsRequest(server string, clusterId string) (*http.Request, error)
- func NewAutoscalerAPIGetRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId string, ...) (*http.Request, error)
- func NewAutoscalerAPIListRebalancingPlansRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewAutoscalerAPIMigrateKarpenterDefinitionsRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewAutoscalerAPIMigrateKarpenterDefinitionsRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIAddNodeRequest(server string, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*http.Request, error)
- func NewExternalClusterAPIAddNodeRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPICreateAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPICreateClusterTokenRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIDeleteAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIDeleteClusterRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nodeId string, ...) (*http.Request, error)
- func NewExternalClusterAPIDisableGCPSARequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIDisableGKESARequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIDisconnectClusterRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIDisconnectClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIDrainNodeRequest(server string, clusterId string, nodeId string, ...) (*http.Request, error)
- func NewExternalClusterAPIDrainNodeRequestWithBody(server string, clusterId string, nodeId string, contentType string, ...) (*http.Request, error)
- func NewExternalClusterAPIGCPCreateSARequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIGCPCreateSARequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIGKECreateSARequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIGKECreateSARequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIGetAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIGetAssumeRoleUserRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIGetCleanupScriptRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provider string) (*http.Request, error)
- func NewExternalClusterAPIGetClusterRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPIGetConnectAndEnableCASTAICmdRequest(server string, params *ExternalClusterAPIGetConnectAndEnableCASTAICmdParams) (*http.Request, error)
- func NewExternalClusterAPIGetConnectAndEnableCASTAIScriptRequest(server string) (*http.Request, error)
- func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, provider string, ...) (*http.Request, error)
- func NewExternalClusterAPIGetListNodesFiltersRequest(server string) (*http.Request, error)
- func NewExternalClusterAPIGetNodeRequest(server string, clusterId string, nodeId string) (*http.Request, error)
- func NewExternalClusterAPIHandleCloudEventRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIHandleCloudEventRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIImpersonationServiceAccountRequest(server string, ...) (*http.Request, error)
- func NewExternalClusterAPIImpersonationServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIIngestInstanceLogsRequest(server string, clusterId string, instanceId string, ...) (*http.Request, error)
- func NewExternalClusterAPIIngestInstanceLogsRequestWithBody(server string, clusterId string, instanceId string, contentType string, ...) (*http.Request, error)
- func NewExternalClusterAPIListClustersRequest(server string) (*http.Request, error)
- func NewExternalClusterAPIListNodesRequest(server string, clusterId string, params *ExternalClusterAPIListNodesParams) (*http.Request, error)
- func NewExternalClusterAPIReconcileClusterRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIRegisterClusterRequest(server string, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*http.Request, error)
- func NewExternalClusterAPIRegisterClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPITriggerHibernateClusterRequest(server string, clusterId string) (*http.Request, error)
- func NewExternalClusterAPITriggerResumeClusterRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPITriggerResumeClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIUpdateClusterRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIUpdateClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewExternalClusterAPIUpdateClusterTagsRequest(server string, clusterId string, ...) (*http.Request, error)
- func NewExternalClusterAPIUpdateClusterTagsRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewOperationsAPIGetOperationRequest(server string, id string) (*http.Request, error)
- type AuthTokenAPICreateAuthTokenJSONRequestBody
- type AuthTokenAPICreateAuthTokenResponse
- type AuthTokenAPIDeleteAuthTokenResponse
- type AuthTokenAPIGetAuthTokenResponse
- type AuthTokenAPIListAuthTokensParams
- type AuthTokenAPIListAuthTokensParamsOrganizations
- type AuthTokenAPIListAuthTokensResponse
- type AuthTokenAPIUpdateAuthTokenJSONRequestBody
- type AuthTokenAPIUpdateAuthTokenResponse
- type AutoscalerAPIExecuteRebalancingPlanResponse
- type AutoscalerAPIGenerateRebalancingPlanJSONRequestBody
- type AutoscalerAPIGenerateRebalancingPlanRequest
- type AutoscalerAPIGenerateRebalancingPlanResponse
- type AutoscalerAPIGetAgentScriptParams
- type AutoscalerAPIGetAgentScriptParamsKopsCsp
- type AutoscalerAPIGetAgentScriptParamsOpenshiftCsp
- type AutoscalerAPIGetAgentScriptParamsProvider
- type AutoscalerAPIGetAgentScriptResponse
- type AutoscalerAPIGetClusterSettingsResponse
- type AutoscalerAPIGetClusterWorkloadsResponse
- type AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse
- type AutoscalerAPIGetProblematicNodesResponse
- type AutoscalerAPIGetProblematicWorkloadsParams
- type AutoscalerAPIGetProblematicWorkloadsResponse
- type AutoscalerAPIGetRebalancedWorkloadsResponse
- type AutoscalerAPIGetRebalancingPlanParams
- type AutoscalerAPIGetRebalancingPlanResponse
- type AutoscalerAPIListRebalancingPlansParams
- type AutoscalerAPIListRebalancingPlansParamsFilterStatuses
- type AutoscalerAPIListRebalancingPlansResponse
- type AutoscalerAPIMigrateKarpenterDefinitionsJSONBody
- type AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody
- type AutoscalerAPIMigrateKarpenterDefinitionsResponse
- type CastaiAuthtokenV1beta1AuthToken
- type CastaiAuthtokenV1beta1AuthTokenUpdate
- type CastaiAuthtokenV1beta1DeleteAuthTokenResponse
- type CastaiAuthtokenV1beta1ListAuthTokensResponse
- type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent
- type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult
- type CastaiAutoscalerV1beta1AggressiveModeConfig
- type CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent
- type CastaiAutoscalerV1beta1EC2NodeClassMigrationResult
- type CastaiAutoscalerV1beta1ExecutionConditions
- type CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse
- type CastaiAutoscalerV1beta1GetClusterSettingsResponse
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponse
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications
- type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus
- type CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse
- type CastaiAutoscalerV1beta1GetProblematicNodesResponse
- type CastaiAutoscalerV1beta1GetProblematicNodesResponseNode
- type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse
- type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController
- type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod
- type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse
- type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector
- type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression
- type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator
- type CastaiAutoscalerV1beta1ListRebalancingPlansResponse
- type CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse
- type CastaiAutoscalerV1beta1NodePoolMigrationIntent
- type CastaiAutoscalerV1beta1NodePoolMigrationResult
- type CastaiAutoscalerV1beta1Os
- type CastaiAutoscalerV1beta1PausedDrainConfig
- type CastaiAutoscalerV1beta1ProvisionerMigrationIntent
- type CastaiAutoscalerV1beta1ProvisionerMigrationResult
- type CastaiAutoscalerV1beta1RebalancingNode
- type CastaiAutoscalerV1beta1RebalancingPlanResponse
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations
- type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals
- type CastaiAutoscalerV1beta1RebalancingPlanResponseOperation
- type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams
- type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams
- type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams
- type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams
- type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType
- type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError
- type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason
- type CastaiAutoscalerV1beta1Status
- type CastaiFeaturesV1Comparison
- type CastaiFeaturesV1Condition
- type CastaiFeaturesV1EntityType
- type CastaiFeaturesV1LogicalOperator
- type CastaiFeaturesV1Operator
- type CastaiFeaturesV1QueryExpression
- type CastaiOperationsV1beta1Operation
- type CastaiOperationsV1beta1OperationError
- type Client
- func (c *Client) AuthTokenAPICreateAuthToken(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthTokenAPICreateAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthTokenAPIDeleteAuthToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthTokenAPIGetAuthToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthTokenAPIListAuthTokens(ctx context.Context, params *AuthTokenAPIListAuthTokensParams, ...) (*http.Response, error)
- func (c *Client) AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) AuthTokenAPIUpdateAuthTokenWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIExecuteRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIGenerateRebalancingPlan(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIGenerateRebalancingPlanWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetAgentScript(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetClusterSettings(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetClusterWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetKarpenterDefinitionsMigrationIntent(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetProblematicNodes(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetProblematicWorkloads(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetRebalancedWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIListRebalancingPlans(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIMigrateKarpenterDefinitions(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) AutoscalerAPIMigrateKarpenterDefinitionsWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIAddNode(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPICreateClusterToken(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId string, nodeId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDisableGCPSA(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDisableGKESA(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDrainNode(ctx context.Context, clusterId string, nodeId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIDrainNodeWithBody(ctx context.Context, clusterId string, nodeId string, contentType string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGCPCreateSA(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGCPCreateSAWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGKECreateSA(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGKECreateSAWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetCleanupScript(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetConnectAndEnableCASTAICmd(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetConnectAndEnableCASTAIScript(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetListNodesFilters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIGetNode(ctx context.Context, clusterId string, nodeId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIImpersonationServiceAccount(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIImpersonationServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIIngestInstanceLogs(ctx context.Context, clusterId string, instanceId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIIngestInstanceLogsWithBody(ctx context.Context, clusterId string, instanceId string, contentType string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIListClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPIListNodes(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIReconcileCluster(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIRegisterCluster(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPITriggerHibernateCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExternalClusterAPITriggerResumeCluster(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPITriggerResumeClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIUpdateClusterTags(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIUpdateClusterTagsWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExternalClusterAPIUpdateClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) OperationsAPIGetOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error)
- func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error)
- func (c *ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error)
- func (c *ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error)
- func (c *ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error)
- func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error)
- func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, ...) (*AuthTokenAPIUpdateAuthTokenResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, ...) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetProblematicNodesWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicNodesResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string, ...) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string, ...) (*AutoscalerAPIGetRebalancingPlanResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, ...) (*AutoscalerAPIListRebalancingPlansResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
- func (c *ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithResponse(ctx context.Context, clusterId string, ...) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIAddNodeResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, ...) (*ExternalClusterAPIDeleteNodeResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDisableGCPSAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGCPSAResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDisableGKESAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGKESAResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIDisconnectClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, ...) (*ExternalClusterAPIDrainNodeResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, ...) (*ExternalClusterAPIDrainNodeResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGCPCreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGCPCreateSAResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGCPCreateSAWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIGCPCreateSAResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGKECreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGKECreateSAResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGKECreateSAWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIGKECreateSAResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetConnectAndEnableCASTAICmdWithResponse(ctx context.Context, ...) (*ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetConnectAndEnableCASTAIScriptWithResponse(ctx context.Context) (*ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, ...) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIGetCredentialsScriptResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIHandleCloudEventResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIImpersonationServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIImpersonationServiceAccountWithResponse(ctx context.Context, ...) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIIngestInstanceLogsWithBodyWithResponse(ctx context.Context, clusterId string, instanceId string, contentType string, ...) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIIngestInstanceLogsWithResponse(ctx context.Context, clusterId string, instanceId string, ...) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIListNodesResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIReconcileClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPITriggerHibernateClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPITriggerHibernateClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPITriggerResumeClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPITriggerResumeClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error)
- func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, ...) (*ExternalClusterAPIUpdateClusterResponse, error)
- func (c *ClientWithResponses) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error)
- type ClientWithResponsesInterface
- type ErrorResponse
- type ExternalClusterAPIAddNodeJSONRequestBody
- type ExternalClusterAPIAddNodeResponse
- type ExternalClusterAPICreateAssumeRolePrincipalResponse
- type ExternalClusterAPICreateClusterTokenResponse
- type ExternalClusterAPIDeleteAssumeRolePrincipalResponse
- type ExternalClusterAPIDeleteClusterResponse
- type ExternalClusterAPIDeleteNodeParams
- type ExternalClusterAPIDeleteNodeResponse
- type ExternalClusterAPIDisableGCPSAResponse
- type ExternalClusterAPIDisableGKESAResponse
- type ExternalClusterAPIDisconnectClusterJSONRequestBody
- type ExternalClusterAPIDisconnectClusterResponse
- type ExternalClusterAPIDrainNodeJSONRequestBody
- type ExternalClusterAPIDrainNodeResponse
- type ExternalClusterAPIGCPCreateSAJSONRequestBody
- type ExternalClusterAPIGCPCreateSARequest
- type ExternalClusterAPIGCPCreateSAResponse
- type ExternalClusterAPIGKECreateSAJSONRequestBody
- type ExternalClusterAPIGKECreateSARequest
- type ExternalClusterAPIGKECreateSAResponse
- type ExternalClusterAPIGetAssumeRolePrincipalResponse
- type ExternalClusterAPIGetAssumeRoleUserResponse
- type ExternalClusterAPIGetCleanupScriptResponse
- type ExternalClusterAPIGetCleanupScriptTemplateResponse
- type ExternalClusterAPIGetClusterResponse
- type ExternalClusterAPIGetConnectAndEnableCASTAICmdParams
- type ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse
- type ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse
- type ExternalClusterAPIGetCredentialsScriptParams
- type ExternalClusterAPIGetCredentialsScriptParamsKentParams
- type ExternalClusterAPIGetCredentialsScriptResponse
- type ExternalClusterAPIGetCredentialsScriptTemplateParams
- type ExternalClusterAPIGetCredentialsScriptTemplateResponse
- type ExternalClusterAPIGetListNodesFiltersResponse
- type ExternalClusterAPIGetNodeResponse
- type ExternalClusterAPIHandleCloudEventJSONRequestBody
- type ExternalClusterAPIHandleCloudEventResponse
- type ExternalClusterAPIImpersonationServiceAccountJSONRequestBody
- type ExternalClusterAPIImpersonationServiceAccountResponse
- type ExternalClusterAPIIngestInstanceLogsJSONRequestBody
- type ExternalClusterAPIIngestInstanceLogsResponse
- type ExternalClusterAPIListClustersResponse
- type ExternalClusterAPIListNodesParams
- type ExternalClusterAPIListNodesParamsLifecycleType
- type ExternalClusterAPIListNodesParamsNodeStatus
- type ExternalClusterAPIListNodesResponse
- type ExternalClusterAPIReconcileClusterParams
- type ExternalClusterAPIReconcileClusterResponse
- type ExternalClusterAPIRegisterClusterJSONRequestBody
- type ExternalClusterAPIRegisterClusterResponse
- type ExternalClusterAPITriggerHibernateClusterResponse
- type ExternalClusterAPITriggerResumeClusterJSONRequestBody
- type ExternalClusterAPITriggerResumeClusterResponse
- type ExternalClusterAPIUpdateClusterJSONRequestBody
- type ExternalClusterAPIUpdateClusterResponse
- type ExternalClusterAPIUpdateClusterTagsJSONBody
- type ExternalClusterAPIUpdateClusterTagsJSONRequestBody
- type ExternalClusterAPIUpdateClusterTagsResponse
- type ExternalclusterV1AKSClusterParams
- type ExternalclusterV1AddNodeResponse
- type ExternalclusterV1AnywhereClusterParams
- type ExternalclusterV1CloudEvent
- type ExternalclusterV1Cluster
- type ExternalclusterV1ClusterAttributes
- type ExternalclusterV1ClusterCastwareInstallMethod
- type ExternalclusterV1ClusterReconcileInfo
- type ExternalclusterV1ClusterReconcileInfoReconcileMode
- type ExternalclusterV1ClusterReconcileInfoReconcileStatus
- type ExternalclusterV1ClusterUpdate
- type ExternalclusterV1CreateAssumeRolePrincipalResponse
- type ExternalclusterV1CreateClusterTokenResponse
- type ExternalclusterV1DeleteAssumeRolePrincipalResponse
- type ExternalclusterV1DeleteNodeResponse
- type ExternalclusterV1DisableGCPSAResponse
- type ExternalclusterV1DisableGKESAResponse
- type ExternalclusterV1DisconnectConfig
- type ExternalclusterV1DrainConfig
- type ExternalclusterV1DrainNodeResponse
- type ExternalclusterV1EKSClusterParams
- type ExternalclusterV1EdgeConfig
- type ExternalclusterV1GCPCreateSARequestAKSClusterParams
- type ExternalclusterV1GCPCreateSAResponse
- type ExternalclusterV1GKEClusterParams
- type ExternalclusterV1GKECreateSAResponse
- type ExternalclusterV1GPUConfig
- type ExternalclusterV1GPUDevice
- type ExternalclusterV1GPUInfo
- type ExternalclusterV1GPUTimeSharing
- type ExternalclusterV1GetAssumeRolePrincipalResponse
- type ExternalclusterV1GetAssumeRoleUserResponse
- type ExternalclusterV1GetCleanupScriptResponse
- type ExternalclusterV1GetConnectAndEnableCASTAICmdResponse
- type ExternalclusterV1GetCredentialsScriptResponse
- type ExternalclusterV1GetListNodesFiltersResponse
- type ExternalclusterV1HandleCloudEventResponse
- type ExternalclusterV1HttpProxyConfig
- type ExternalclusterV1ImpersonationServiceAccountRequest
- type ExternalclusterV1ImpersonationServiceAccountResponse
- type ExternalclusterV1IngestInstanceLogsResponse
- type ExternalclusterV1KOPSClusterParams
- type ExternalclusterV1KarpenterAttribute
- type ExternalclusterV1KentEligibility
- type ExternalclusterV1ListClustersResponse
- type ExternalclusterV1ListNodesResponse
- type ExternalclusterV1LogEvent
- type ExternalclusterV1MIGConfig
- type ExternalclusterV1Node
- type ExternalclusterV1NodeAffinity
- type ExternalclusterV1NodeConfig
- type ExternalclusterV1NodeInfo
- type ExternalclusterV1NodeListFilter
- type ExternalclusterV1NodeLogs
- type ExternalclusterV1NodeNetwork
- type ExternalclusterV1NodeSpotConfig
- type ExternalclusterV1NodeState
- type ExternalclusterV1NodeType
- type ExternalclusterV1NodeVolume
- type ExternalclusterV1OKEClusterParams
- type ExternalclusterV1OmniAttribute
- type ExternalclusterV1OpenshiftClusterParams
- type ExternalclusterV1RaidConfig
- type ExternalclusterV1ReconcileClusterResponse
- type ExternalclusterV1Region
- type ExternalclusterV1RegisterClusterRequest
- type ExternalclusterV1Resources
- type ExternalclusterV1SelfHostedWithEC2NodesParams
- type ExternalclusterV1Subnet
- type ExternalclusterV1Taint
- type ExternalclusterV1TriggerHibernateClusterResponse
- type ExternalclusterV1TriggerResumeClusterResponse
- type ExternalclusterV1UpdateAKSClusterParams
- type ExternalclusterV1UpdateClusterTagsResponse
- type ExternalclusterV1UpdateEKSClusterParams
- type ExternalclusterV1UpdateGKEClusterParams
- type ExternalclusterV1UpdateSelfHostedWithEC2NodesParams
- type ExternalclusterV1Zone
- type FieldViolation
- type GoogleApiHttpBody
- type GoogleProtobufAny
- type HttpRequestDoer
- type K8sSelectorV1KubernetesNodeAffinity
- type K8sSelectorV1Operator
- type OperationsAPIGetOperationResponse
- type RequestEditorFn
- type Response
Constants ¶
const ( ApiKeyAuthScopes = "ApiKeyAuth.Scopes" BearerAuthScopes = "BearerAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func NewAuthTokenAPICreateAuthTokenRequest ¶
func NewAuthTokenAPICreateAuthTokenRequest(server string, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*http.Request, error)
NewAuthTokenAPICreateAuthTokenRequest calls the generic AuthTokenAPICreateAuthToken builder with application/json body
func NewAuthTokenAPICreateAuthTokenRequestWithBody ¶
func NewAuthTokenAPICreateAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthTokenAPICreateAuthTokenRequestWithBody generates requests for AuthTokenAPICreateAuthToken with any type of body
func NewAuthTokenAPIDeleteAuthTokenRequest ¶
NewAuthTokenAPIDeleteAuthTokenRequest generates requests for AuthTokenAPIDeleteAuthToken
func NewAuthTokenAPIGetAuthTokenRequest ¶
NewAuthTokenAPIGetAuthTokenRequest generates requests for AuthTokenAPIGetAuthToken
func NewAuthTokenAPIListAuthTokensRequest ¶
func NewAuthTokenAPIListAuthTokensRequest(server string, params *AuthTokenAPIListAuthTokensParams) (*http.Request, error)
NewAuthTokenAPIListAuthTokensRequest generates requests for AuthTokenAPIListAuthTokens
func NewAuthTokenAPIUpdateAuthTokenRequest ¶
func NewAuthTokenAPIUpdateAuthTokenRequest(server string, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*http.Request, error)
NewAuthTokenAPIUpdateAuthTokenRequest calls the generic AuthTokenAPIUpdateAuthToken builder with application/json body
func NewAuthTokenAPIUpdateAuthTokenRequestWithBody ¶
func NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewAuthTokenAPIUpdateAuthTokenRequestWithBody generates requests for AuthTokenAPIUpdateAuthToken with any type of body
func NewAutoscalerAPIExecuteRebalancingPlanRequest ¶
func NewAutoscalerAPIExecuteRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId string) (*http.Request, error)
NewAutoscalerAPIExecuteRebalancingPlanRequest generates requests for AutoscalerAPIExecuteRebalancingPlan
func NewAutoscalerAPIGenerateRebalancingPlanRequest ¶
func NewAutoscalerAPIGenerateRebalancingPlanRequest(server string, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*http.Request, error)
NewAutoscalerAPIGenerateRebalancingPlanRequest calls the generic AutoscalerAPIGenerateRebalancingPlan builder with application/json body
func NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody ¶
func NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody generates requests for AutoscalerAPIGenerateRebalancingPlan with any type of body
func NewAutoscalerAPIGetAgentScriptRequest ¶
func NewAutoscalerAPIGetAgentScriptRequest(server string, params *AutoscalerAPIGetAgentScriptParams) (*http.Request, error)
NewAutoscalerAPIGetAgentScriptRequest generates requests for AutoscalerAPIGetAgentScript
func NewAutoscalerAPIGetClusterSettingsRequest ¶
func NewAutoscalerAPIGetClusterSettingsRequest(server string, clusterId string) (*http.Request, error)
NewAutoscalerAPIGetClusterSettingsRequest generates requests for AutoscalerAPIGetClusterSettings
func NewAutoscalerAPIGetClusterWorkloadsRequest ¶
func NewAutoscalerAPIGetClusterWorkloadsRequest(server string, clusterId string) (*http.Request, error)
NewAutoscalerAPIGetClusterWorkloadsRequest generates requests for AutoscalerAPIGetClusterWorkloads
func NewAutoscalerAPIGetKarpenterDefinitionsMigrationIntentRequest ¶
func NewAutoscalerAPIGetKarpenterDefinitionsMigrationIntentRequest(server string, clusterId string) (*http.Request, error)
NewAutoscalerAPIGetKarpenterDefinitionsMigrationIntentRequest generates requests for AutoscalerAPIGetKarpenterDefinitionsMigrationIntent
func NewAutoscalerAPIGetProblematicNodesRequest ¶
func NewAutoscalerAPIGetProblematicNodesRequest(server string, clusterId string) (*http.Request, error)
NewAutoscalerAPIGetProblematicNodesRequest generates requests for AutoscalerAPIGetProblematicNodes
func NewAutoscalerAPIGetProblematicWorkloadsRequest ¶
func NewAutoscalerAPIGetProblematicWorkloadsRequest(server string, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams) (*http.Request, error)
NewAutoscalerAPIGetProblematicWorkloadsRequest generates requests for AutoscalerAPIGetProblematicWorkloads
func NewAutoscalerAPIGetRebalancedWorkloadsRequest ¶
func NewAutoscalerAPIGetRebalancedWorkloadsRequest(server string, clusterId string) (*http.Request, error)
NewAutoscalerAPIGetRebalancedWorkloadsRequest generates requests for AutoscalerAPIGetRebalancedWorkloads
func NewAutoscalerAPIGetRebalancingPlanRequest ¶
func NewAutoscalerAPIGetRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams) (*http.Request, error)
NewAutoscalerAPIGetRebalancingPlanRequest generates requests for AutoscalerAPIGetRebalancingPlan
func NewAutoscalerAPIListRebalancingPlansRequest ¶
func NewAutoscalerAPIListRebalancingPlansRequest(server string, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*http.Request, error)
NewAutoscalerAPIListRebalancingPlansRequest generates requests for AutoscalerAPIListRebalancingPlans
func NewAutoscalerAPIMigrateKarpenterDefinitionsRequest ¶
func NewAutoscalerAPIMigrateKarpenterDefinitionsRequest(server string, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody) (*http.Request, error)
NewAutoscalerAPIMigrateKarpenterDefinitionsRequest calls the generic AutoscalerAPIMigrateKarpenterDefinitions builder with application/json body
func NewAutoscalerAPIMigrateKarpenterDefinitionsRequestWithBody ¶
func NewAutoscalerAPIMigrateKarpenterDefinitionsRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewAutoscalerAPIMigrateKarpenterDefinitionsRequestWithBody generates requests for AutoscalerAPIMigrateKarpenterDefinitions with any type of body
func NewExternalClusterAPIAddNodeRequest ¶
func NewExternalClusterAPIAddNodeRequest(server string, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIAddNodeRequest calls the generic ExternalClusterAPIAddNode builder with application/json body
func NewExternalClusterAPIAddNodeRequestWithBody ¶
func NewExternalClusterAPIAddNodeRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIAddNodeRequestWithBody generates requests for ExternalClusterAPIAddNode with any type of body
func NewExternalClusterAPICreateAssumeRolePrincipalRequest ¶
func NewExternalClusterAPICreateAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPICreateAssumeRolePrincipalRequest generates requests for ExternalClusterAPICreateAssumeRolePrincipal
func NewExternalClusterAPICreateClusterTokenRequest ¶
func NewExternalClusterAPICreateClusterTokenRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPICreateClusterTokenRequest generates requests for ExternalClusterAPICreateClusterToken
func NewExternalClusterAPIDeleteAssumeRolePrincipalRequest ¶
func NewExternalClusterAPIDeleteAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIDeleteAssumeRolePrincipalRequest generates requests for ExternalClusterAPIDeleteAssumeRolePrincipal
func NewExternalClusterAPIDeleteClusterRequest ¶
func NewExternalClusterAPIDeleteClusterRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIDeleteClusterRequest generates requests for ExternalClusterAPIDeleteCluster
func NewExternalClusterAPIDeleteNodeRequest ¶
func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*http.Request, error)
NewExternalClusterAPIDeleteNodeRequest generates requests for ExternalClusterAPIDeleteNode
func NewExternalClusterAPIDisableGCPSARequest ¶ added in v0.58.1
func NewExternalClusterAPIDisableGCPSARequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIDisableGCPSARequest generates requests for ExternalClusterAPIDisableGCPSA
func NewExternalClusterAPIDisableGKESARequest ¶
func NewExternalClusterAPIDisableGKESARequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIDisableGKESARequest generates requests for ExternalClusterAPIDisableGKESA
func NewExternalClusterAPIDisconnectClusterRequest ¶
func NewExternalClusterAPIDisconnectClusterRequest(server string, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIDisconnectClusterRequest calls the generic ExternalClusterAPIDisconnectCluster builder with application/json body
func NewExternalClusterAPIDisconnectClusterRequestWithBody ¶
func NewExternalClusterAPIDisconnectClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIDisconnectClusterRequestWithBody generates requests for ExternalClusterAPIDisconnectCluster with any type of body
func NewExternalClusterAPIDrainNodeRequest ¶
func NewExternalClusterAPIDrainNodeRequest(server string, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIDrainNodeRequest calls the generic ExternalClusterAPIDrainNode builder with application/json body
func NewExternalClusterAPIDrainNodeRequestWithBody ¶
func NewExternalClusterAPIDrainNodeRequestWithBody(server string, clusterId string, nodeId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIDrainNodeRequestWithBody generates requests for ExternalClusterAPIDrainNode with any type of body
func NewExternalClusterAPIGCPCreateSARequest ¶ added in v0.58.1
func NewExternalClusterAPIGCPCreateSARequest(server string, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIGCPCreateSARequest calls the generic ExternalClusterAPIGCPCreateSA builder with application/json body
func NewExternalClusterAPIGCPCreateSARequestWithBody ¶ added in v0.58.1
func NewExternalClusterAPIGCPCreateSARequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIGCPCreateSARequestWithBody generates requests for ExternalClusterAPIGCPCreateSA with any type of body
func NewExternalClusterAPIGKECreateSARequest ¶
func NewExternalClusterAPIGKECreateSARequest(server string, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIGKECreateSARequest calls the generic ExternalClusterAPIGKECreateSA builder with application/json body
func NewExternalClusterAPIGKECreateSARequestWithBody ¶
func NewExternalClusterAPIGKECreateSARequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIGKECreateSARequestWithBody generates requests for ExternalClusterAPIGKECreateSA with any type of body
func NewExternalClusterAPIGetAssumeRolePrincipalRequest ¶
func NewExternalClusterAPIGetAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIGetAssumeRolePrincipalRequest generates requests for ExternalClusterAPIGetAssumeRolePrincipal
func NewExternalClusterAPIGetAssumeRoleUserRequest ¶
func NewExternalClusterAPIGetAssumeRoleUserRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIGetAssumeRoleUserRequest generates requests for ExternalClusterAPIGetAssumeRoleUser
func NewExternalClusterAPIGetCleanupScriptRequest ¶
func NewExternalClusterAPIGetCleanupScriptRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPIGetCleanupScriptRequest generates requests for ExternalClusterAPIGetCleanupScript
func NewExternalClusterAPIGetCleanupScriptTemplateRequest ¶
func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provider string) (*http.Request, error)
NewExternalClusterAPIGetCleanupScriptTemplateRequest generates requests for ExternalClusterAPIGetCleanupScriptTemplate
func NewExternalClusterAPIGetClusterRequest ¶
NewExternalClusterAPIGetClusterRequest generates requests for ExternalClusterAPIGetCluster
func NewExternalClusterAPIGetConnectAndEnableCASTAICmdRequest ¶ added in v0.62.0
func NewExternalClusterAPIGetConnectAndEnableCASTAICmdRequest(server string, params *ExternalClusterAPIGetConnectAndEnableCASTAICmdParams) (*http.Request, error)
NewExternalClusterAPIGetConnectAndEnableCASTAICmdRequest generates requests for ExternalClusterAPIGetConnectAndEnableCASTAICmd
func NewExternalClusterAPIGetConnectAndEnableCASTAIScriptRequest ¶ added in v0.62.0
func NewExternalClusterAPIGetConnectAndEnableCASTAIScriptRequest(server string) (*http.Request, error)
NewExternalClusterAPIGetConnectAndEnableCASTAIScriptRequest generates requests for ExternalClusterAPIGetConnectAndEnableCASTAIScript
func NewExternalClusterAPIGetCredentialsScriptRequest ¶
func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*http.Request, error)
NewExternalClusterAPIGetCredentialsScriptRequest generates requests for ExternalClusterAPIGetCredentialsScript
func NewExternalClusterAPIGetCredentialsScriptTemplateRequest ¶
func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*http.Request, error)
NewExternalClusterAPIGetCredentialsScriptTemplateRequest generates requests for ExternalClusterAPIGetCredentialsScriptTemplate
func NewExternalClusterAPIGetListNodesFiltersRequest ¶
NewExternalClusterAPIGetListNodesFiltersRequest generates requests for ExternalClusterAPIGetListNodesFilters
func NewExternalClusterAPIGetNodeRequest ¶
func NewExternalClusterAPIGetNodeRequest(server string, clusterId string, nodeId string) (*http.Request, error)
NewExternalClusterAPIGetNodeRequest generates requests for ExternalClusterAPIGetNode
func NewExternalClusterAPIHandleCloudEventRequest ¶
func NewExternalClusterAPIHandleCloudEventRequest(server string, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIHandleCloudEventRequest calls the generic ExternalClusterAPIHandleCloudEvent builder with application/json body
func NewExternalClusterAPIHandleCloudEventRequestWithBody ¶
func NewExternalClusterAPIHandleCloudEventRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIHandleCloudEventRequestWithBody generates requests for ExternalClusterAPIHandleCloudEvent with any type of body
func NewExternalClusterAPIImpersonationServiceAccountRequest ¶ added in v0.62.0
func NewExternalClusterAPIImpersonationServiceAccountRequest(server string, body ExternalClusterAPIImpersonationServiceAccountJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIImpersonationServiceAccountRequest calls the generic ExternalClusterAPIImpersonationServiceAccount builder with application/json body
func NewExternalClusterAPIImpersonationServiceAccountRequestWithBody ¶ added in v0.62.0
func NewExternalClusterAPIImpersonationServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIImpersonationServiceAccountRequestWithBody generates requests for ExternalClusterAPIImpersonationServiceAccount with any type of body
func NewExternalClusterAPIIngestInstanceLogsRequest ¶ added in v0.62.0
func NewExternalClusterAPIIngestInstanceLogsRequest(server string, clusterId string, instanceId string, body ExternalClusterAPIIngestInstanceLogsJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIIngestInstanceLogsRequest calls the generic ExternalClusterAPIIngestInstanceLogs builder with application/json body
func NewExternalClusterAPIIngestInstanceLogsRequestWithBody ¶ added in v0.62.0
func NewExternalClusterAPIIngestInstanceLogsRequestWithBody(server string, clusterId string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIIngestInstanceLogsRequestWithBody generates requests for ExternalClusterAPIIngestInstanceLogs with any type of body
func NewExternalClusterAPIListClustersRequest ¶
NewExternalClusterAPIListClustersRequest generates requests for ExternalClusterAPIListClusters
func NewExternalClusterAPIListNodesRequest ¶
func NewExternalClusterAPIListNodesRequest(server string, clusterId string, params *ExternalClusterAPIListNodesParams) (*http.Request, error)
NewExternalClusterAPIListNodesRequest generates requests for ExternalClusterAPIListNodes
func NewExternalClusterAPIReconcileClusterRequest ¶
func NewExternalClusterAPIReconcileClusterRequest(server string, clusterId string, params *ExternalClusterAPIReconcileClusterParams) (*http.Request, error)
NewExternalClusterAPIReconcileClusterRequest generates requests for ExternalClusterAPIReconcileCluster
func NewExternalClusterAPIRegisterClusterRequest ¶
func NewExternalClusterAPIRegisterClusterRequest(server string, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIRegisterClusterRequest calls the generic ExternalClusterAPIRegisterCluster builder with application/json body
func NewExternalClusterAPIRegisterClusterRequestWithBody ¶
func NewExternalClusterAPIRegisterClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIRegisterClusterRequestWithBody generates requests for ExternalClusterAPIRegisterCluster with any type of body
func NewExternalClusterAPITriggerHibernateClusterRequest ¶
func NewExternalClusterAPITriggerHibernateClusterRequest(server string, clusterId string) (*http.Request, error)
NewExternalClusterAPITriggerHibernateClusterRequest generates requests for ExternalClusterAPITriggerHibernateCluster
func NewExternalClusterAPITriggerResumeClusterRequest ¶
func NewExternalClusterAPITriggerResumeClusterRequest(server string, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody) (*http.Request, error)
NewExternalClusterAPITriggerResumeClusterRequest calls the generic ExternalClusterAPITriggerResumeCluster builder with application/json body
func NewExternalClusterAPITriggerResumeClusterRequestWithBody ¶
func NewExternalClusterAPITriggerResumeClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPITriggerResumeClusterRequestWithBody generates requests for ExternalClusterAPITriggerResumeCluster with any type of body
func NewExternalClusterAPIUpdateClusterRequest ¶
func NewExternalClusterAPIUpdateClusterRequest(server string, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIUpdateClusterRequest calls the generic ExternalClusterAPIUpdateCluster builder with application/json body
func NewExternalClusterAPIUpdateClusterRequestWithBody ¶
func NewExternalClusterAPIUpdateClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIUpdateClusterRequestWithBody generates requests for ExternalClusterAPIUpdateCluster with any type of body
func NewExternalClusterAPIUpdateClusterTagsRequest ¶
func NewExternalClusterAPIUpdateClusterTagsRequest(server string, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*http.Request, error)
NewExternalClusterAPIUpdateClusterTagsRequest calls the generic ExternalClusterAPIUpdateClusterTags builder with application/json body
func NewExternalClusterAPIUpdateClusterTagsRequestWithBody ¶
func NewExternalClusterAPIUpdateClusterTagsRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewExternalClusterAPIUpdateClusterTagsRequestWithBody generates requests for ExternalClusterAPIUpdateClusterTags with any type of body
Types ¶
type AuthTokenAPICreateAuthTokenJSONRequestBody ¶
type AuthTokenAPICreateAuthTokenJSONRequestBody = CastaiAuthtokenV1beta1AuthToken
AuthTokenAPICreateAuthTokenJSONRequestBody defines body for AuthTokenAPICreateAuthToken for application/json ContentType.
type AuthTokenAPICreateAuthTokenResponse ¶
type AuthTokenAPICreateAuthTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAuthtokenV1beta1AuthToken
}
func ParseAuthTokenAPICreateAuthTokenResponse ¶
func ParseAuthTokenAPICreateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPICreateAuthTokenResponse, error)
ParseAuthTokenAPICreateAuthTokenResponse parses an HTTP response from a AuthTokenAPICreateAuthTokenWithResponse call
func (AuthTokenAPICreateAuthTokenResponse) GetBody ¶
func (r AuthTokenAPICreateAuthTokenResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AuthTokenAPICreateAuthTokenResponse) Status ¶
func (r AuthTokenAPICreateAuthTokenResponse) Status() string
Status returns HTTPResponse.Status
func (AuthTokenAPICreateAuthTokenResponse) StatusCode ¶
func (r AuthTokenAPICreateAuthTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthTokenAPIDeleteAuthTokenResponse ¶
type AuthTokenAPIDeleteAuthTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAuthtokenV1beta1DeleteAuthTokenResponse
}
func ParseAuthTokenAPIDeleteAuthTokenResponse ¶
func ParseAuthTokenAPIDeleteAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIDeleteAuthTokenResponse, error)
ParseAuthTokenAPIDeleteAuthTokenResponse parses an HTTP response from a AuthTokenAPIDeleteAuthTokenWithResponse call
func (AuthTokenAPIDeleteAuthTokenResponse) GetBody ¶
func (r AuthTokenAPIDeleteAuthTokenResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AuthTokenAPIDeleteAuthTokenResponse) Status ¶
func (r AuthTokenAPIDeleteAuthTokenResponse) Status() string
Status returns HTTPResponse.Status
func (AuthTokenAPIDeleteAuthTokenResponse) StatusCode ¶
func (r AuthTokenAPIDeleteAuthTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthTokenAPIGetAuthTokenResponse ¶
type AuthTokenAPIGetAuthTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAuthtokenV1beta1AuthToken
}
func ParseAuthTokenAPIGetAuthTokenResponse ¶
func ParseAuthTokenAPIGetAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIGetAuthTokenResponse, error)
ParseAuthTokenAPIGetAuthTokenResponse parses an HTTP response from a AuthTokenAPIGetAuthTokenWithResponse call
func (AuthTokenAPIGetAuthTokenResponse) GetBody ¶
func (r AuthTokenAPIGetAuthTokenResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AuthTokenAPIGetAuthTokenResponse) Status ¶
func (r AuthTokenAPIGetAuthTokenResponse) Status() string
Status returns HTTPResponse.Status
func (AuthTokenAPIGetAuthTokenResponse) StatusCode ¶
func (r AuthTokenAPIGetAuthTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthTokenAPIListAuthTokensParams ¶
type AuthTokenAPIListAuthTokensParams struct {
// UserId User id to filter by, if this is set we will only return tokens that have this user id.
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
// Organizations Organizations controls whether to return tokens for all organizations the user belongs to or only the current one.
//
// - ORGANIZATIONS_UNSPECIFIED: ORGANIZATIONS_UNSPECIFIED is the default value and means only current organization.
// - ALL: ALL means all organizations the user belongs to.
Organizations *AuthTokenAPIListAuthTokensParamsOrganizations `form:"organizations,omitempty" json:"organizations,omitempty"`
}
AuthTokenAPIListAuthTokensParams defines parameters for AuthTokenAPIListAuthTokens.
type AuthTokenAPIListAuthTokensParamsOrganizations ¶ added in v0.62.0
type AuthTokenAPIListAuthTokensParamsOrganizations string
AuthTokenAPIListAuthTokensParamsOrganizations defines parameters for AuthTokenAPIListAuthTokens.
const ( ALL AuthTokenAPIListAuthTokensParamsOrganizations = "ALL" ORGANIZATIONSUNSPECIFIED AuthTokenAPIListAuthTokensParamsOrganizations = "ORGANIZATIONS_UNSPECIFIED" )
Defines values for AuthTokenAPIListAuthTokensParamsOrganizations.
type AuthTokenAPIListAuthTokensResponse ¶
type AuthTokenAPIListAuthTokensResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAuthtokenV1beta1ListAuthTokensResponse
}
func ParseAuthTokenAPIListAuthTokensResponse ¶
func ParseAuthTokenAPIListAuthTokensResponse(rsp *http.Response) (*AuthTokenAPIListAuthTokensResponse, error)
ParseAuthTokenAPIListAuthTokensResponse parses an HTTP response from a AuthTokenAPIListAuthTokensWithResponse call
func (AuthTokenAPIListAuthTokensResponse) GetBody ¶
func (r AuthTokenAPIListAuthTokensResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AuthTokenAPIListAuthTokensResponse) Status ¶
func (r AuthTokenAPIListAuthTokensResponse) Status() string
Status returns HTTPResponse.Status
func (AuthTokenAPIListAuthTokensResponse) StatusCode ¶
func (r AuthTokenAPIListAuthTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthTokenAPIUpdateAuthTokenJSONRequestBody ¶
type AuthTokenAPIUpdateAuthTokenJSONRequestBody = CastaiAuthtokenV1beta1AuthTokenUpdate
AuthTokenAPIUpdateAuthTokenJSONRequestBody defines body for AuthTokenAPIUpdateAuthToken for application/json ContentType.
type AuthTokenAPIUpdateAuthTokenResponse ¶
type AuthTokenAPIUpdateAuthTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAuthtokenV1beta1AuthToken
}
func ParseAuthTokenAPIUpdateAuthTokenResponse ¶
func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIUpdateAuthTokenResponse, error)
ParseAuthTokenAPIUpdateAuthTokenResponse parses an HTTP response from a AuthTokenAPIUpdateAuthTokenWithResponse call
func (AuthTokenAPIUpdateAuthTokenResponse) GetBody ¶
func (r AuthTokenAPIUpdateAuthTokenResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AuthTokenAPIUpdateAuthTokenResponse) Status ¶
func (r AuthTokenAPIUpdateAuthTokenResponse) Status() string
Status returns HTTPResponse.Status
func (AuthTokenAPIUpdateAuthTokenResponse) StatusCode ¶
func (r AuthTokenAPIUpdateAuthTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIExecuteRebalancingPlanResponse ¶
type AutoscalerAPIExecuteRebalancingPlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *CastaiAutoscalerV1beta1RebalancingPlanResponse
}
func ParseAutoscalerAPIExecuteRebalancingPlanResponse ¶
func ParseAutoscalerAPIExecuteRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)
ParseAutoscalerAPIExecuteRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIExecuteRebalancingPlanWithResponse call
func (AutoscalerAPIExecuteRebalancingPlanResponse) GetBody ¶
func (r AutoscalerAPIExecuteRebalancingPlanResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIExecuteRebalancingPlanResponse) Status ¶
func (r AutoscalerAPIExecuteRebalancingPlanResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIExecuteRebalancingPlanResponse) StatusCode ¶
func (r AutoscalerAPIExecuteRebalancingPlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGenerateRebalancingPlanJSONRequestBody ¶
type AutoscalerAPIGenerateRebalancingPlanJSONRequestBody = AutoscalerAPIGenerateRebalancingPlanRequest
AutoscalerAPIGenerateRebalancingPlanJSONRequestBody defines body for AutoscalerAPIGenerateRebalancingPlan for application/json ContentType.
type AutoscalerAPIGenerateRebalancingPlanRequest ¶
type AutoscalerAPIGenerateRebalancingPlanRequest struct {
// AggressiveMode When enabled will also consider rebalancing problematic pods (pods without controller, job pods, pods with removal-disabled annotation).
//
// Deprecated: use AggressiveModeConfig instead.
// We still honor the behavior of this legacy option, but this field will be removed at some point in the future.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AggressiveMode *bool `json:"aggressiveMode"`
AggressiveModeConfig *CastaiAutoscalerV1beta1AggressiveModeConfig `json:"aggressiveModeConfig,omitempty"`
// EvictGracefully Defines whether the nodes that failed to get drained until a predefined timeout, will be kept with a
// rebalancing.cast.ai/status=drain-failed annotation instead of forcefully drained.
EvictGracefully *bool `json:"evictGracefully"`
// ExecutionConditions Defines the conditions which must be met in order to fully execute the plan.
ExecutionConditions *CastaiAutoscalerV1beta1ExecutionConditions `json:"executionConditions,omitempty"`
KeepDrainTimeoutNodes *bool `json:"keepDrainTimeoutNodes"`
// MinNodes Minimum number of nodes that the cluster should have after rebalancing is done.
MinNodes *int32 `json:"minNodes,omitempty"`
// PausedDrainConfig Defines configuration of a paused draining feature. Requires feature flag to be enabled.
PausedDrainConfig *CastaiAutoscalerV1beta1PausedDrainConfig `json:"pausedDrainConfig,omitempty"`
// RebalancingNodes Subset of nodes to rebalance. If empty, it is considered to include all nodes (full rebalancing).
RebalancingNodes *[]CastaiAutoscalerV1beta1RebalancingNode `json:"rebalancingNodes,omitempty"`
}
AutoscalerAPIGenerateRebalancingPlanRequest Defines the cluster rebalance request.
type AutoscalerAPIGenerateRebalancingPlanResponse ¶
type AutoscalerAPIGenerateRebalancingPlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse
}
func ParseAutoscalerAPIGenerateRebalancingPlanResponse ¶
func ParseAutoscalerAPIGenerateRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
ParseAutoscalerAPIGenerateRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIGenerateRebalancingPlanWithResponse call
func (AutoscalerAPIGenerateRebalancingPlanResponse) GetBody ¶
func (r AutoscalerAPIGenerateRebalancingPlanResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGenerateRebalancingPlanResponse) Status ¶
func (r AutoscalerAPIGenerateRebalancingPlanResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGenerateRebalancingPlanResponse) StatusCode ¶
func (r AutoscalerAPIGenerateRebalancingPlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetAgentScriptParams ¶
type AutoscalerAPIGetAgentScriptParams struct {
// EksRegion AWS region of your EKS cluster.
EksRegion *string `form:"eks.region,omitempty" json:"eks.region,omitempty"`
// EksAccountId Your AWS account id. Can be retrieved by executing `aws sts get-caller-identity`.
EksAccountId *string `form:"eks.accountId,omitempty" json:"eks.accountId,omitempty"`
// EksClusterName The name of your EKS cluster.
EksClusterName *string `form:"eks.clusterName,omitempty" json:"eks.clusterName,omitempty"`
// GkeRegion GCP region of your GKE cluster.
GkeRegion *string `form:"gke.region,omitempty" json:"gke.region,omitempty"`
// GkeProjectId GCP project id in which your GKE cluster is created.
GkeProjectId *string `form:"gke.projectId,omitempty" json:"gke.projectId,omitempty"`
// GkeClusterName The name of your GKE cluster.
GkeClusterName *string `form:"gke.clusterName,omitempty" json:"gke.clusterName,omitempty"`
// GkeLocation Location of your GKE cluster.
GkeLocation *string `form:"gke.location,omitempty" json:"gke.location,omitempty"`
// GkePsc Cluster to be connected via GCP Private Service Connect
GkePsc *bool `form:"gke.psc,omitempty" json:"gke.psc,omitempty"`
// Provider Provider of the cluster.
Provider *AutoscalerAPIGetAgentScriptParamsProvider `form:"provider,omitempty" json:"provider,omitempty"`
// KopsCsp The Cloud Service Provider (CSP) of your kOps cluster.
//
// Possible values are: `aws`, `gcp`.
//
// - invalid: Invalid.
// - aws: Amazon web services.
// - gcp: Google cloud provider.
// - azure: Microsoft Azure.
// - unknown: Unknown.
KopsCsp *AutoscalerAPIGetAgentScriptParamsKopsCsp `form:"kops.csp,omitempty" json:"kops.csp,omitempty"`
// KopsRegion The region of your kOps cluster. Region is CSP specific.
KopsRegion *string `form:"kops.region,omitempty" json:"kops.region,omitempty"`
// KopsClusterName The name of your kOps cluster.
KopsClusterName *string `form:"kops.clusterName,omitempty" json:"kops.clusterName,omitempty"`
// KopsStateStore The kOps cluster state store. Only remote S3 state is supported at the moment.
KopsStateStore *string `form:"kops.stateStore,omitempty" json:"kops.stateStore,omitempty"`
// AksLocation Azure location of your AKS cluster.
AksLocation *string `form:"aks.location,omitempty" json:"aks.location,omitempty"`
// AksNodeResourceGroup Azure resource group where AKS nodes are deployed.
AksNodeResourceGroup *string `form:"aks.nodeResourceGroup,omitempty" json:"aks.nodeResourceGroup,omitempty"`
// AksSubscriptionId Azure account subscription id.
AksSubscriptionId *string `form:"aks.subscriptionId,omitempty" json:"aks.subscriptionId,omitempty"`
// OpenshiftCsp The Cloud Service Provider (CSP) of your OpenShift cluster.
//
// Possible values are: `aws`.
//
// - invalid: Invalid.
// - aws: Amazon web services.
// - gcp: Google cloud provider.
// - azure: Microsoft Azure.
// - unknown: Unknown.
OpenshiftCsp *AutoscalerAPIGetAgentScriptParamsOpenshiftCsp `form:"openshift.csp,omitempty" json:"openshift.csp,omitempty"`
// OpenshiftRegion The region of your OpenShift cluster. Region is CSP specific.
OpenshiftRegion *string `form:"openshift.region,omitempty" json:"openshift.region,omitempty"`
// OpenshiftClusterName The name of your OpenShift cluster.
OpenshiftClusterName *string `form:"openshift.clusterName,omitempty" json:"openshift.clusterName,omitempty"`
// OpenshiftInternalId The OpenShift cluster ID. It can be found in the ClusterVersion object.
//
// [Link to docs](https://docs.openshift.com/container-platform/4.8/support/gathering-cluster-data.html#support-get-cluster-id_gathering-cluster-data).
OpenshiftInternalId *string `form:"openshift.internalId,omitempty" json:"openshift.internalId,omitempty"`
// OpenshiftRunAsUser The uid of the user that runs the agent pod.
OpenshiftRunAsUser *string `form:"openshift.runAsUser,omitempty" json:"openshift.runAsUser,omitempty"`
// OpenshiftRunAsGroup The gid of the user that runs the agent pod.
OpenshiftRunAsGroup *string `form:"openshift.runAsGroup,omitempty" json:"openshift.runAsGroup,omitempty"`
// OpenshiftFsGroup The gid of the user that owns the agent pod's volumes.
OpenshiftFsGroup *string `form:"openshift.fsGroup,omitempty" json:"openshift.fsGroup,omitempty"`
// AnywhereClusterName The name of your cluster.
AnywhereClusterName *string `form:"anywhere.clusterName,omitempty" json:"anywhere.clusterName,omitempty"`
}
AutoscalerAPIGetAgentScriptParams defines parameters for AutoscalerAPIGetAgentScript.
type AutoscalerAPIGetAgentScriptParamsKopsCsp ¶
type AutoscalerAPIGetAgentScriptParamsKopsCsp string
AutoscalerAPIGetAgentScriptParamsKopsCsp defines parameters for AutoscalerAPIGetAgentScript.
const ( AutoscalerAPIGetAgentScriptParamsKopsCspAWS AutoscalerAPIGetAgentScriptParamsKopsCsp = "AWS" AutoscalerAPIGetAgentScriptParamsKopsCspAZURE AutoscalerAPIGetAgentScriptParamsKopsCsp = "AZURE" AutoscalerAPIGetAgentScriptParamsKopsCspAws AutoscalerAPIGetAgentScriptParamsKopsCsp = "aws" AutoscalerAPIGetAgentScriptParamsKopsCspAzure AutoscalerAPIGetAgentScriptParamsKopsCsp = "azure" AutoscalerAPIGetAgentScriptParamsKopsCspGCP AutoscalerAPIGetAgentScriptParamsKopsCsp = "GCP" AutoscalerAPIGetAgentScriptParamsKopsCspGcp AutoscalerAPIGetAgentScriptParamsKopsCsp = "gcp" AutoscalerAPIGetAgentScriptParamsKopsCspINVALID AutoscalerAPIGetAgentScriptParamsKopsCsp = "INVALID" AutoscalerAPIGetAgentScriptParamsKopsCspInvalid AutoscalerAPIGetAgentScriptParamsKopsCsp = "invalid" AutoscalerAPIGetAgentScriptParamsKopsCspUNKNOWN AutoscalerAPIGetAgentScriptParamsKopsCsp = "UNKNOWN" AutoscalerAPIGetAgentScriptParamsKopsCspUnknown AutoscalerAPIGetAgentScriptParamsKopsCsp = "unknown" )
Defines values for AutoscalerAPIGetAgentScriptParamsKopsCsp.
type AutoscalerAPIGetAgentScriptParamsOpenshiftCsp ¶
type AutoscalerAPIGetAgentScriptParamsOpenshiftCsp string
AutoscalerAPIGetAgentScriptParamsOpenshiftCsp defines parameters for AutoscalerAPIGetAgentScript.
const ( AutoscalerAPIGetAgentScriptParamsOpenshiftCspAWS AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "AWS" AutoscalerAPIGetAgentScriptParamsOpenshiftCspAZURE AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "AZURE" AutoscalerAPIGetAgentScriptParamsOpenshiftCspAws AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "aws" AutoscalerAPIGetAgentScriptParamsOpenshiftCspAzure AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "azure" AutoscalerAPIGetAgentScriptParamsOpenshiftCspGCP AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "GCP" AutoscalerAPIGetAgentScriptParamsOpenshiftCspGcp AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "gcp" AutoscalerAPIGetAgentScriptParamsOpenshiftCspINVALID AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "INVALID" AutoscalerAPIGetAgentScriptParamsOpenshiftCspInvalid AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "invalid" AutoscalerAPIGetAgentScriptParamsOpenshiftCspUNKNOWN AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "UNKNOWN" AutoscalerAPIGetAgentScriptParamsOpenshiftCspUnknown AutoscalerAPIGetAgentScriptParamsOpenshiftCsp = "unknown" )
Defines values for AutoscalerAPIGetAgentScriptParamsOpenshiftCsp.
type AutoscalerAPIGetAgentScriptParamsProvider ¶
type AutoscalerAPIGetAgentScriptParamsProvider string
AutoscalerAPIGetAgentScriptParamsProvider defines parameters for AutoscalerAPIGetAgentScript.
const ( Aks AutoscalerAPIGetAgentScriptParamsProvider = "aks" Anywhere AutoscalerAPIGetAgentScriptParamsProvider = "anywhere" Eks AutoscalerAPIGetAgentScriptParamsProvider = "eks" Gke AutoscalerAPIGetAgentScriptParamsProvider = "gke" InvalidProvider AutoscalerAPIGetAgentScriptParamsProvider = "invalid_provider" Kops AutoscalerAPIGetAgentScriptParamsProvider = "kops" Openshift AutoscalerAPIGetAgentScriptParamsProvider = "openshift" )
Defines values for AutoscalerAPIGetAgentScriptParamsProvider.
type AutoscalerAPIGetAgentScriptResponse ¶
type AutoscalerAPIGetAgentScriptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorResponse
}
func ParseAutoscalerAPIGetAgentScriptResponse ¶
func ParseAutoscalerAPIGetAgentScriptResponse(rsp *http.Response) (*AutoscalerAPIGetAgentScriptResponse, error)
ParseAutoscalerAPIGetAgentScriptResponse parses an HTTP response from a AutoscalerAPIGetAgentScriptWithResponse call
func (AutoscalerAPIGetAgentScriptResponse) GetBody ¶
func (r AutoscalerAPIGetAgentScriptResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetAgentScriptResponse) Status ¶
func (r AutoscalerAPIGetAgentScriptResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetAgentScriptResponse) StatusCode ¶
func (r AutoscalerAPIGetAgentScriptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetClusterSettingsResponse ¶
type AutoscalerAPIGetClusterSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1GetClusterSettingsResponse
}
func ParseAutoscalerAPIGetClusterSettingsResponse ¶
func ParseAutoscalerAPIGetClusterSettingsResponse(rsp *http.Response) (*AutoscalerAPIGetClusterSettingsResponse, error)
ParseAutoscalerAPIGetClusterSettingsResponse parses an HTTP response from a AutoscalerAPIGetClusterSettingsWithResponse call
func (AutoscalerAPIGetClusterSettingsResponse) GetBody ¶
func (r AutoscalerAPIGetClusterSettingsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetClusterSettingsResponse) Status ¶
func (r AutoscalerAPIGetClusterSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetClusterSettingsResponse) StatusCode ¶
func (r AutoscalerAPIGetClusterSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetClusterWorkloadsResponse ¶
type AutoscalerAPIGetClusterWorkloadsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1GetClusterWorkloadsResponse
}
func ParseAutoscalerAPIGetClusterWorkloadsResponse ¶
func ParseAutoscalerAPIGetClusterWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetClusterWorkloadsResponse, error)
ParseAutoscalerAPIGetClusterWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetClusterWorkloadsWithResponse call
func (AutoscalerAPIGetClusterWorkloadsResponse) GetBody ¶
func (r AutoscalerAPIGetClusterWorkloadsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetClusterWorkloadsResponse) Status ¶
func (r AutoscalerAPIGetClusterWorkloadsResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetClusterWorkloadsResponse) StatusCode ¶
func (r AutoscalerAPIGetClusterWorkloadsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse ¶
type AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse
}
func ParseAutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse ¶
func ParseAutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse(rsp *http.Response) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)
ParseAutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse parses an HTTP response from a AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse call
func (AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) GetBody ¶
func (r AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) Status ¶
func (r AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) StatusCode ¶
func (r AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetProblematicNodesResponse ¶
type AutoscalerAPIGetProblematicNodesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1GetProblematicNodesResponse
}
func ParseAutoscalerAPIGetProblematicNodesResponse ¶
func ParseAutoscalerAPIGetProblematicNodesResponse(rsp *http.Response) (*AutoscalerAPIGetProblematicNodesResponse, error)
ParseAutoscalerAPIGetProblematicNodesResponse parses an HTTP response from a AutoscalerAPIGetProblematicNodesWithResponse call
func (AutoscalerAPIGetProblematicNodesResponse) GetBody ¶
func (r AutoscalerAPIGetProblematicNodesResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetProblematicNodesResponse) Status ¶
func (r AutoscalerAPIGetProblematicNodesResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetProblematicNodesResponse) StatusCode ¶
func (r AutoscalerAPIGetProblematicNodesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetProblematicWorkloadsParams ¶
type AutoscalerAPIGetProblematicWorkloadsParams struct {
// AggressiveMode When enabled won't consider pods without controller, job pods, pods with removal-disabled annotation as problematic pods.
AggressiveMode *bool `form:"aggressiveMode,omitempty" json:"aggressiveMode,omitempty"`
}
AutoscalerAPIGetProblematicWorkloadsParams defines parameters for AutoscalerAPIGetProblematicWorkloads.
type AutoscalerAPIGetProblematicWorkloadsResponse ¶
type AutoscalerAPIGetProblematicWorkloadsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse
}
func ParseAutoscalerAPIGetProblematicWorkloadsResponse ¶
func ParseAutoscalerAPIGetProblematicWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)
ParseAutoscalerAPIGetProblematicWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetProblematicWorkloadsWithResponse call
func (AutoscalerAPIGetProblematicWorkloadsResponse) GetBody ¶
func (r AutoscalerAPIGetProblematicWorkloadsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetProblematicWorkloadsResponse) Status ¶
func (r AutoscalerAPIGetProblematicWorkloadsResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetProblematicWorkloadsResponse) StatusCode ¶
func (r AutoscalerAPIGetProblematicWorkloadsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetRebalancedWorkloadsResponse ¶
type AutoscalerAPIGetRebalancedWorkloadsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse
}
func ParseAutoscalerAPIGetRebalancedWorkloadsResponse ¶
func ParseAutoscalerAPIGetRebalancedWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)
ParseAutoscalerAPIGetRebalancedWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetRebalancedWorkloadsWithResponse call
func (AutoscalerAPIGetRebalancedWorkloadsResponse) GetBody ¶
func (r AutoscalerAPIGetRebalancedWorkloadsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetRebalancedWorkloadsResponse) Status ¶
func (r AutoscalerAPIGetRebalancedWorkloadsResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetRebalancedWorkloadsResponse) StatusCode ¶
func (r AutoscalerAPIGetRebalancedWorkloadsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIGetRebalancingPlanParams ¶
type AutoscalerAPIGetRebalancingPlanParams struct {
// IncludeOperations If include operations is true then operations is returned in response, otherwise is skipped
IncludeOperations *bool `form:"includeOperations,omitempty" json:"includeOperations,omitempty"`
// IncludeConfigurations If include configurations is true then configurations is returned in response, otherwise is skipped
IncludeConfigurations *bool `form:"includeConfigurations,omitempty" json:"includeConfigurations,omitempty"`
}
AutoscalerAPIGetRebalancingPlanParams defines parameters for AutoscalerAPIGetRebalancingPlan.
type AutoscalerAPIGetRebalancingPlanResponse ¶
type AutoscalerAPIGetRebalancingPlanResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1RebalancingPlanResponse
}
func ParseAutoscalerAPIGetRebalancingPlanResponse ¶
func ParseAutoscalerAPIGetRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIGetRebalancingPlanResponse, error)
ParseAutoscalerAPIGetRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIGetRebalancingPlanWithResponse call
func (AutoscalerAPIGetRebalancingPlanResponse) GetBody ¶
func (r AutoscalerAPIGetRebalancingPlanResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIGetRebalancingPlanResponse) Status ¶
func (r AutoscalerAPIGetRebalancingPlanResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIGetRebalancingPlanResponse) StatusCode ¶
func (r AutoscalerAPIGetRebalancingPlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIListRebalancingPlansParams ¶
type AutoscalerAPIListRebalancingPlansParams struct {
// Limit A limit on the number of objects to be returned, between 1 and 500.
Limit *string `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor A cursor for use in pagination.
//
// This is a token that defines your place in the list. For instance, if you make a list request - you will receive a `nextCursor` field in response metadata. Given that the `nextCursor` field is
// not empty, it can be used as a cursor query parameter to get subsequent items. If `nextCursor` is empty - there are no more items to retrieve.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// FilterStatuses Status list filter
FilterStatuses *[]AutoscalerAPIListRebalancingPlansParamsFilterStatuses `form:"filter.statuses,omitempty" json:"filter.statuses,omitempty"`
// IncludeOperations If include operations is true then operations is returned in response, otherwise is skipped
IncludeOperations *bool `form:"includeOperations,omitempty" json:"includeOperations,omitempty"`
// IncludeConfigurations If include configurations is true then configurations is returned in response, otherwise is skipped
IncludeConfigurations *bool `form:"includeConfigurations,omitempty" json:"includeConfigurations,omitempty"`
// IncludeNegative If true, negative plans are also returned. Note: negative plans are already returned when querying for specific statuses.
IncludeNegative *bool `form:"includeNegative,omitempty" json:"includeNegative,omitempty"`
}
AutoscalerAPIListRebalancingPlansParams defines parameters for AutoscalerAPIListRebalancingPlans.
type AutoscalerAPIListRebalancingPlansParamsFilterStatuses ¶
type AutoscalerAPIListRebalancingPlansParamsFilterStatuses string
AutoscalerAPIListRebalancingPlansParamsFilterStatuses defines parameters for AutoscalerAPIListRebalancingPlans.
const ( AutoscalerAPIListRebalancingPlansParamsFilterStatusesCreatingNodes AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "creating_nodes" AutoscalerAPIListRebalancingPlansParamsFilterStatusesDeletingNodes AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "deleting_nodes" AutoscalerAPIListRebalancingPlansParamsFilterStatusesDrainingNodes AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "draining_nodes" AutoscalerAPIListRebalancingPlansParamsFilterStatusesError AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "error" AutoscalerAPIListRebalancingPlansParamsFilterStatusesFinished AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "finished" AutoscalerAPIListRebalancingPlansParamsFilterStatusesGenerated AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "generated" AutoscalerAPIListRebalancingPlansParamsFilterStatusesGenerating AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "generating" AutoscalerAPIListRebalancingPlansParamsFilterStatusesInvalid AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "invalid" AutoscalerAPIListRebalancingPlansParamsFilterStatusesPartiallyFinished AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "partially_finished" AutoscalerAPIListRebalancingPlansParamsFilterStatusesPreparingNodes AutoscalerAPIListRebalancingPlansParamsFilterStatuses = "preparing_nodes" )
Defines values for AutoscalerAPIListRebalancingPlansParamsFilterStatuses.
type AutoscalerAPIListRebalancingPlansResponse ¶
type AutoscalerAPIListRebalancingPlansResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1ListRebalancingPlansResponse
}
func ParseAutoscalerAPIListRebalancingPlansResponse ¶
func ParseAutoscalerAPIListRebalancingPlansResponse(rsp *http.Response) (*AutoscalerAPIListRebalancingPlansResponse, error)
ParseAutoscalerAPIListRebalancingPlansResponse parses an HTTP response from a AutoscalerAPIListRebalancingPlansWithResponse call
func (AutoscalerAPIListRebalancingPlansResponse) GetBody ¶
func (r AutoscalerAPIListRebalancingPlansResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIListRebalancingPlansResponse) Status ¶
func (r AutoscalerAPIListRebalancingPlansResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIListRebalancingPlansResponse) StatusCode ¶
func (r AutoscalerAPIListRebalancingPlansResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AutoscalerAPIMigrateKarpenterDefinitionsJSONBody ¶
type AutoscalerAPIMigrateKarpenterDefinitionsJSONBody = map[string]interface{}
AutoscalerAPIMigrateKarpenterDefinitionsJSONBody defines parameters for AutoscalerAPIMigrateKarpenterDefinitions.
type AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody ¶
type AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody = AutoscalerAPIMigrateKarpenterDefinitionsJSONBody
AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody defines body for AutoscalerAPIMigrateKarpenterDefinitions for application/json ContentType.
type AutoscalerAPIMigrateKarpenterDefinitionsResponse ¶
type AutoscalerAPIMigrateKarpenterDefinitionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse
}
func ParseAutoscalerAPIMigrateKarpenterDefinitionsResponse ¶
func ParseAutoscalerAPIMigrateKarpenterDefinitionsResponse(rsp *http.Response) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
ParseAutoscalerAPIMigrateKarpenterDefinitionsResponse parses an HTTP response from a AutoscalerAPIMigrateKarpenterDefinitionsWithResponse call
func (AutoscalerAPIMigrateKarpenterDefinitionsResponse) GetBody ¶
func (r AutoscalerAPIMigrateKarpenterDefinitionsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (AutoscalerAPIMigrateKarpenterDefinitionsResponse) Status ¶
func (r AutoscalerAPIMigrateKarpenterDefinitionsResponse) Status() string
Status returns HTTPResponse.Status
func (AutoscalerAPIMigrateKarpenterDefinitionsResponse) StatusCode ¶
func (r AutoscalerAPIMigrateKarpenterDefinitionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CastaiAuthtokenV1beta1AuthToken ¶
type CastaiAuthtokenV1beta1AuthToken struct {
// Active (read only) Indicates whether the token is active.
Active *bool `json:"active,omitempty"`
// CreatedAt (read only) Time when the token was created (unix timestamp in nanoseconds).
CreatedAt *time.Time `json:"createdAt,omitempty"`
// CreatedBy created_by is used to link this token to a user who created it.
CreatedBy *string `json:"createdBy"`
// ExpiresAt Time when the token will expire (unix timestamp in nanoseconds).
// A null value means that the key will never expire.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Id (read only) ID of the token.
Id *string `json:"id,omitempty"`
// LastUsedAt (read only) Time when this token was last used (unix timestamp in nanoseconds).
LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
// Name (required) User provided name of the token.
Name string `json:"name"`
// OrganizationId organization_id is the id of the organization this token belongs to.
OrganizationId *string `json:"organizationId,omitempty"`
// Readonly TODO: we need to think how to migrate away from this flag.
// whether token has readonly permissions.
Readonly bool `json:"readonly"`
// Token (read only, visible once on creation) actual token used to authenticate via api.
Token *string `json:"token"`
// TokenPrefix token_prefix contains the first 3 characters of the generated token.
TokenPrefix *string `json:"tokenPrefix"`
}
CastaiAuthtokenV1beta1AuthToken Auth token used to authenticate via api.
type CastaiAuthtokenV1beta1AuthTokenUpdate ¶
type CastaiAuthtokenV1beta1AuthTokenUpdate struct {
Active *bool `json:"active,omitempty"`
}
CastaiAuthtokenV1beta1AuthTokenUpdate AuthTokenUpdate is used to update an existing auth token.
type CastaiAuthtokenV1beta1DeleteAuthTokenResponse ¶
type CastaiAuthtokenV1beta1DeleteAuthTokenResponse = map[string]interface{}
CastaiAuthtokenV1beta1DeleteAuthTokenResponse defines model for castai.authtoken.v1beta1.DeleteAuthTokenResponse.
type CastaiAuthtokenV1beta1ListAuthTokensResponse ¶
type CastaiAuthtokenV1beta1ListAuthTokensResponse struct {
Items *[]CastaiAuthtokenV1beta1AuthToken `json:"items,omitempty"`
}
CastaiAuthtokenV1beta1ListAuthTokensResponse defines model for castai.authtoken.v1beta1.ListAuthTokensResponse.
type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent ¶
type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent struct {
// CanMigrate Indicates whether the AWSNodeTemplate can be migrated.
CanMigrate *bool `json:"canMigrate,omitempty"`
// CastaiNodeConfigurationName The name given to the CAST AI Node Configuration after migration.
CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`
// Error Error describing why AWSNodeTemplate migration cannot be performed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why AWSNodeTemplate migration cannot be performed or won't be performed fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter AWSNodeTemplate name.
Name *string `json:"name,omitempty"`
// Valid Indicates whether AWSNodeTemplate migration intent can be executed.
// Deprecated: Use can_migrate instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Valid *bool `json:"valid,omitempty"`
}
CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent defines model for castai.autoscaler.v1beta1.AWSNodeTemplateMigrationIntent.
type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult ¶
type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult struct {
// CastaiNodeConfigurationId The id of the CAST AI Node Configuration.
CastaiNodeConfigurationId *string `json:"castaiNodeConfigurationId,omitempty"`
// CastaiNodeConfigurationName The name of the CAST AI Node Configuration.
CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`
// Error Error describing why AWSNodeTemplate migration failed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why AWSNodeTemplate migration failed or couldn't complete fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter AWSNodeTemplate name.
Name *string `json:"name,omitempty"`
// Success Indicates whether AWSNodeTemplate migration was successful.
Success *bool `json:"success,omitempty"`
}
CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult defines model for castai.autoscaler.v1beta1.AWSNodeTemplateMigrationResult.
type CastaiAutoscalerV1beta1AggressiveModeConfig ¶ added in v0.58.1
type CastaiAutoscalerV1beta1AggressiveModeConfig struct {
// IgnoreLocalPersistentVolumes Rebalance workloads that use local-path Persistent Volumes.
// WARNING: THIS WILL RESULT IN DATA LOSS.
IgnoreLocalPersistentVolumes *bool `json:"ignoreLocalPersistentVolumes,omitempty"`
// IgnoreProblemJobPods Pods spawned by Jobs or CronJobs will not prevent the Rebalancer from deleting a node on which they run.
// WARNING: When true, pods spawned by Jobs or CronJobs will be terminated if the Rebalancer picks a node that runs them.
// As such, they are likely to lose their progress.
IgnoreProblemJobPods *bool `json:"ignoreProblemJobPods,omitempty"`
// IgnoreProblemPodsWithoutController Pods that don't have a controller (bare pods) will not prevent the Rebalancer from deleting a node on which they run.
// WARNING: When true, such pods might not restart, since they have no controller to do it.
IgnoreProblemPodsWithoutController *bool `json:"ignoreProblemPodsWithoutController,omitempty"`
// IgnoreProblemRemovalDisabledPods Pods that are marked with "removal disabled" will not prevent the Rebalancer from deleting a node on which they run.
// WARNING: When true, such pods will be evicted and disrupted.
IgnoreProblemRemovalDisabledPods *bool `json:"ignoreProblemRemovalDisabledPods,omitempty"`
}
CastaiAutoscalerV1beta1AggressiveModeConfig defines model for castai.autoscaler.v1beta1.AggressiveModeConfig.
type CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent ¶
type CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent struct {
// CanMigrate Indicates whether the EC2NodeClass can be migrated.
CanMigrate *bool `json:"canMigrate,omitempty"`
// CastaiNodeConfigurationName The name given to the CAST AI Node Configuration after migration.
CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`
// Error Error describing why EC2NodeClass migration cannot be performed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why EC2NodeClass migration cannot be performed or won't be performed fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter EC2NodeClass name.
Name *string `json:"name,omitempty"`
// Valid Indicates whether EC2NodeClass migration intent can be executed.
// Deprecated: Use can_migrate instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Valid *bool `json:"valid,omitempty"`
}
CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent defines model for castai.autoscaler.v1beta1.EC2NodeClassMigrationIntent.
type CastaiAutoscalerV1beta1EC2NodeClassMigrationResult ¶
type CastaiAutoscalerV1beta1EC2NodeClassMigrationResult struct {
// CastaiNodeConfigurationId The id of the CAST AI Node Configuration.
CastaiNodeConfigurationId *string `json:"castaiNodeConfigurationId,omitempty"`
// CastaiNodeConfigurationName The name of the CAST AI Node Configuration.
CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`
// Error Error describing why EC2NodeClass migration failed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why EC2NodeClass migration failed or couldn't complete fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter EC2NodeClass name.
Name *string `json:"name,omitempty"`
// Success Indicates whether EC2NodeClass migration was successful.
Success *bool `json:"success,omitempty"`
}
CastaiAutoscalerV1beta1EC2NodeClassMigrationResult defines model for castai.autoscaler.v1beta1.EC2NodeClassMigrationResult.
type CastaiAutoscalerV1beta1ExecutionConditions ¶
type CastaiAutoscalerV1beta1ExecutionConditions struct {
// AchievedSavingsPercentage Identifies the minimum percentage of predicted savings that should be achieved.
// The rebalancing plan will not proceed after creating the nodes if the achieved savings percentage
// is not achieved.
// This field's value will not be considered if the initially predicted savings are negative.
AchievedSavingsPercentage *int32 `json:"achievedSavingsPercentage,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
}
CastaiAutoscalerV1beta1ExecutionConditions Defines the conditions which must be met in order to fully execute the plan.
type CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse ¶
type CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse struct {
// RebalancingPlanId ID of the rebalancing plan.
RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"`
}
CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse Defines the cluster rebalance response.
type CastaiAutoscalerV1beta1GetClusterSettingsResponse ¶
type CastaiAutoscalerV1beta1GetClusterSettingsResponse struct {
// AgentVersion Return cluster agent version.
AgentVersion *string `json:"agentVersion,omitempty"`
// Arm64Supported Is ARM64 supported.
Arm64Supported bool `json:"arm64Supported"`
// EnableDefaultNodeTemplate Is default node template enabled.
EnableDefaultNodeTemplate bool `json:"enableDefaultNodeTemplate"`
// EvictorMaxTargetNodes Evictor maximum target nodes.
EvictorMaxTargetNodes *int32 `json:"evictorMaxTargetNodes"`
// EvictorVersion Desired cluster evictor version.
EvictorVersion string `json:"evictorVersion"`
// IpThresholdSubnetSpread The threshold for minimal number of available IPs in a subnet to be considered for subnet spread.
IpThresholdSubnetSpread *int32 `json:"ipThresholdSubnetSpread"`
// KarpenterInstalled Indicates whether Karpenter is installed in the cluster.
KarpenterInstalled bool `json:"karpenterInstalled"`
// KarpenterVersion The version of Karpenter installed in the cluster. May be empty if Karpenter is not installed.
KarpenterVersion *string `json:"karpenterVersion"`
// PriceThresholdZoneSpread Price threshold zone spread.
PriceThresholdZoneSpread *float64 `json:"priceThresholdZoneSpread"`
// ReservationsEnabled Is reservations support enabled.
ReservationsEnabled bool `json:"reservationsEnabled"`
// WindowsAutoscalingEnabled Is autoscaling of Windows nodes enabled.
WindowsAutoscalingEnabled *bool `json:"windowsAutoscalingEnabled,omitempty"`
}
CastaiAutoscalerV1beta1GetClusterSettingsResponse Defines the cluster settings response.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponse ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponse struct {
// ClusterId ID of the cluster that is being rebalanced.
ClusterId string `json:"clusterId"`
// Workloads A list of workloads.
Workloads []CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload `json:"workloads"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponse Defines the cluster workloads response.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload struct {
// CostImpact Defines the cost impact of rebalancing a workload.
CostImpact CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact `json:"costImpact"`
// Issues A list of workload issues.
Issues []CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue `json:"issues"`
// MemoryMib Total memory capacity of this workload in MiBs.
MemoryMib int32 `json:"memoryMib"`
// MilliCpu Total milli CPU capacity of this workload.
MilliCpu int32 `json:"milliCpu"`
// Name Workload name.
Name string `json:"name"`
// Namespace Workload namespace.
Namespace string `json:"namespace"`
// Nodes Nodes used by this workload.
Nodes []CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode `json:"nodes"`
// Replicas Replicas count.
Replicas int32 `json:"replicas"`
// Resource Kubernetes resource name.
Resource string `json:"resource"`
Status CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus `json:"status"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload Defines a cluster workload.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact struct {
// Level Cost impact level.
//
// * `low` - low cost impact.
// * `medium` - medium cost impact.
// * `high` - high cost impact.
Level string `json:"level"`
// Value Numeric cost impact value.
Value int32 `json:"value"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact Defines the cost impact of rebalancing a workload.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue struct {
Description string `json:"description"`
// Kind Issue kind.
Kind string `json:"kind"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue Defines the workload rebalancing issue.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode struct {
// Id Node id.
Id string `json:"id"`
// Name Node name.
Name string `json:"name"`
// Specs Defines node specifications.
Specs CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications `json:"specs"`
// Status Defines the migration status.
Status CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus `json:"status"`
// TotalPods Pods count in node.
TotalPods int32 `json:"totalPods"`
// TotalProblematicPods Problematic pods count in node.
TotalProblematicPods int32 `json:"totalProblematicPods"`
// WorkloadReplicas How many of this workload replicas exist on this particular node.
WorkloadReplicas int32 `json:"workloadReplicas"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode Defines a workload node.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus struct {
// MigrationStatus Migration status.
//
// * `ready` - node is ready to be rebalanced.
// * `not-ready` - node is not ready to be rebalanced.
MigrationStatus string `json:"migrationStatus"`
// Reason Defines the reason for the node to be considered as not ready.
Reason CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason `json:"reason"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus Defines the migration status.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason string
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason Defines the reason for the node to be considered as not ready.
const ( CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonAlreadyRebalancing CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "AlreadyRebalancing" CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonInvalid CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "Invalid" CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonProblematicWorkloads CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "ProblematicWorkloads" CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonRebalancingNodeDrainFailed CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "RebalancingNodeDrainFailed" )
Defines values for CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications struct {
// InstanceType Instance type of this node.
InstanceType string `json:"instanceType"`
// MemoryMib Total memory capacity of this node in MiBs.
MemoryMib int32 `json:"memoryMib"`
// MilliCpu Total milli CPU capacity of this node.
MilliCpu int32 `json:"milliCpu"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications Defines node specifications.
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus ¶
type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus struct {
// MigrationStatus * `ready` - the workload can be rebalanced.
// * `not-ready` - the workload cannot be rebalanced.
MigrationStatus string `json:"migrationStatus"`
}
CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus defines model for castai.autoscaler.v1beta1.GetClusterWorkloadsResponse.Workload.WorkloadStatus.
type CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse ¶
type CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse struct {
AwsNodeTemplates *[]CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent `json:"awsNodeTemplates,omitempty"`
Ec2NodeClasses *[]CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent `json:"ec2NodeClasses,omitempty"`
NodePools *[]CastaiAutoscalerV1beta1NodePoolMigrationIntent `json:"nodePools,omitempty"`
Provisioners *[]CastaiAutoscalerV1beta1ProvisionerMigrationIntent `json:"provisioners,omitempty"`
}
CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse defines model for castai.autoscaler.v1beta1.GetKarpenterMigrationIntentResponse.
type CastaiAutoscalerV1beta1GetProblematicNodesResponse ¶
type CastaiAutoscalerV1beta1GetProblematicNodesResponse struct {
// ClusterId The id of the cluster.
ClusterId string `json:"clusterId"`
// HasProblems Identifies whether cluster contains any problems.
HasProblems bool `json:"hasProblems"`
// Nodes Problematic nodes.
Nodes []CastaiAutoscalerV1beta1GetProblematicNodesResponseNode `json:"nodes"`
}
CastaiAutoscalerV1beta1GetProblematicNodesResponse Defines the requests for getting problematic nodes for a specific cluster.
type CastaiAutoscalerV1beta1GetProblematicNodesResponseNode ¶
type CastaiAutoscalerV1beta1GetProblematicNodesResponseNode struct {
// Name Name of the node.
Name string `json:"name"`
// NodeId ID of the node.
NodeId string `json:"nodeId"`
// Problems List of controller problems.
Problems []string `json:"problems"`
}
CastaiAutoscalerV1beta1GetProblematicNodesResponseNode Defines a problematic node.
type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse ¶
type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse struct {
// ClusterId The id of the cluster.
ClusterId string `json:"clusterId"`
// Controllers Problematic workload controllers.
Controllers []CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController `json:"controllers"`
// HasProblems Identifies whether cluster contains any problems.
HasProblems bool `json:"hasProblems"`
// StandalonePods Problematic standalone pods.
StandalonePods []CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod `json:"standalonePods"`
}
CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse Defines the requests for getting problematic workloads for a specific cluster.
type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController ¶
type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController struct {
// Kind Kind of the controller.
Kind string `json:"kind"`
// Name Name of the controller.
Name string `json:"name"`
// Problems List of controller problems.
Problems []string `json:"problems"`
}
CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController Defines a problematic workloads controller.
type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod ¶
type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod struct {
// Name Name of the pod.
Name string `json:"name"`
// Problems List of pod problems.
Problems []string `json:"problems"`
}
CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod Defines a problematic standalone pod.
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse ¶
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse struct {
// IsActive Whether rebalancing is active or not.
IsActive *bool `json:"isActive,omitempty"`
// Selectors Label selectors matching workloads which are being rebalanced.
Selectors *[]CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector `json:"selectors,omitempty"`
}
CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse Defines the rebalanced workloads response.
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector ¶
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector struct {
// MatchExpressions A more advanced label query with operators. Multiple expressions are ANDed.
MatchExpressions *[]CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression `json:"matchExpressions,omitempty"`
// MatchLabels Used to query resource labels.
MatchLabels *map[string]string `json:"matchLabels,omitempty"`
}
CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector Selector is a proto mirror of the metav1.LabelSelector K8s API object. Properties `match_labels` and `match_expressions` are ANDed.
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression ¶
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression struct {
// Key Key is a label.
Key *string `json:"key,omitempty"`
// Operator A set of operators which can be used in the label selector expressions.
Operator *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator `json:"operator,omitempty"`
// Values Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the
// operator is Exists or DoesNotExist, the values array must be empty.
Values *[]string `json:"values,omitempty"`
}
CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression Expression is a proto mirror of the metav1.LabelSelectorRequirement K8s API object.
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator ¶
type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator string
CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator A set of operators which can be used in the label selector expressions.
const ( CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorDoesNotExist CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "DoesNotExist" CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorExists CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "Exists" CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorIn CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "In" CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorInvalid CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "Invalid" CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorNotIn CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "NotIn" )
Defines values for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator.
type CastaiAutoscalerV1beta1ListRebalancingPlansResponse ¶
type CastaiAutoscalerV1beta1ListRebalancingPlansResponse struct {
Items *[]CastaiAutoscalerV1beta1RebalancingPlanResponse `json:"items,omitempty"`
NextCursor *string `json:"nextCursor,omitempty"`
}
CastaiAutoscalerV1beta1ListRebalancingPlansResponse Defines list cluster rebalancing plans response.
type CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse ¶
type CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse struct {
AwsNodeTemplates *[]CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult `json:"awsNodeTemplates,omitempty"`
Ec2NodeClasses *[]CastaiAutoscalerV1beta1EC2NodeClassMigrationResult `json:"ec2NodeClasses,omitempty"`
NodePools *[]CastaiAutoscalerV1beta1NodePoolMigrationResult `json:"nodePools,omitempty"`
Provisioners *[]CastaiAutoscalerV1beta1ProvisionerMigrationResult `json:"provisioners,omitempty"`
}
CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse defines model for castai.autoscaler.v1beta1.MigrateKarpenterDefinitionsResponse.
type CastaiAutoscalerV1beta1NodePoolMigrationIntent ¶
type CastaiAutoscalerV1beta1NodePoolMigrationIntent struct {
// CanMigrate Indicates whether the NodePool can be migrated.
CanMigrate *bool `json:"canMigrate,omitempty"`
// CastaiNodeTemplateName The name given to the CAST AI Node Template after migration.
CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`
// Ec2NodeClassName Karpenter's EC2NodeClass name that this NodePool is referencing.
Ec2NodeClassName *string `json:"ec2NodeClassName,omitempty"`
// Error Error describing why NodePool migration cannot be performed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why NodePool migration cannot be performed or won't be performed fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter NodePool name.
Name *string `json:"name,omitempty"`
// Valid Indicates whether NodePool migration intent can be executed.
// Deprecated: Use can_migrate instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Valid *bool `json:"valid,omitempty"`
}
CastaiAutoscalerV1beta1NodePoolMigrationIntent defines model for castai.autoscaler.v1beta1.NodePoolMigrationIntent.
type CastaiAutoscalerV1beta1NodePoolMigrationResult ¶
type CastaiAutoscalerV1beta1NodePoolMigrationResult struct {
// CastaiNodeTemplateId The id of the CAST AI Node Template.
CastaiNodeTemplateId *string `json:"castaiNodeTemplateId,omitempty"`
// CastaiNodeTemplateName The name of the CAST AI Node Template.
CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`
// Ec2NodeClassName Karpenter's EC2NodeClass name that this NodePool is referencing.
Ec2NodeClassName *string `json:"ec2NodeClassName,omitempty"`
// Error Error describing why NodePool migration failed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why NodePool migration failed or couldn't complete fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter NodePool name.
Name *string `json:"name,omitempty"`
// Success Indicates whether NodePool migration was successful.
Success *bool `json:"success,omitempty"`
}
CastaiAutoscalerV1beta1NodePoolMigrationResult defines model for castai.autoscaler.v1beta1.NodePoolMigrationResult.
type CastaiAutoscalerV1beta1Os ¶
type CastaiAutoscalerV1beta1Os string
CastaiAutoscalerV1beta1Os defines model for castai.autoscaler.v1beta1.Os.
const ( CastaiAutoscalerV1beta1OsLinux CastaiAutoscalerV1beta1Os = "linux" CastaiAutoscalerV1beta1OsUnknown CastaiAutoscalerV1beta1Os = "unknown" CastaiAutoscalerV1beta1OsWindows CastaiAutoscalerV1beta1Os = "windows" )
Defines values for CastaiAutoscalerV1beta1Os.
type CastaiAutoscalerV1beta1PausedDrainConfig ¶ added in v0.58.1
type CastaiAutoscalerV1beta1PausedDrainConfig struct {
Enabled *bool `json:"enabled,omitempty"`
// TimeoutSeconds Maximum time in seconds for which nodes will stay cordoned during paused draining phase.
// After that time, nodes will be automatically uncordoned by the Autoscaler's node deletion policy (if enabled).
TimeoutSeconds *int32 `json:"timeoutSeconds"`
}
CastaiAutoscalerV1beta1PausedDrainConfig Defines configuration of a paused draining feature. Requires feature flag to be enabled.
type CastaiAutoscalerV1beta1ProvisionerMigrationIntent ¶
type CastaiAutoscalerV1beta1ProvisionerMigrationIntent struct {
// AwsNodeTemplateName Karpenter's AWSNodeTemplate name that this Provisioner is referencing.
AwsNodeTemplateName *string `json:"awsNodeTemplateName,omitempty"`
// CanMigrate Indicates whether the Provisioner can be migrated.
CanMigrate *bool `json:"canMigrate,omitempty"`
// CastaiNodeTemplateName The name given to the CAST AI Node Template after migration.
CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`
// Error Error describing why Provisioner migration cannot be performed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why Provisioner migration cannot be performed or won't be performed fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter Provisioner name.
Name *string `json:"name,omitempty"`
// Valid Indicates whether Provisioner migration intent can be executed.
// Deprecated: Use can_migrate instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Valid *bool `json:"valid,omitempty"`
}
CastaiAutoscalerV1beta1ProvisionerMigrationIntent defines model for castai.autoscaler.v1beta1.ProvisionerMigrationIntent.
type CastaiAutoscalerV1beta1ProvisionerMigrationResult ¶
type CastaiAutoscalerV1beta1ProvisionerMigrationResult struct {
// AwsNodeTemplateName Karpenter's AWSNodeTemplate name that this Provisioner is referencing.
AwsNodeTemplateName *string `json:"awsNodeTemplateName,omitempty"`
// CastaiNodeTemplateId The id of the CAST AI Node Template.
CastaiNodeTemplateId *string `json:"castaiNodeTemplateId,omitempty"`
// CastaiNodeTemplateName The name of the CAST AI Node Template.
CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`
// Error Error describing why Provisioner migration failed.
// Deprecated: Use errors instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Error *string `json:"error"`
// ErrorMessages Error messages describing why Provisioner migration failed or couldn't complete fully.
ErrorMessages *[]string `json:"errorMessages,omitempty"`
// Name Karpenter Provisioner name.
Name *string `json:"name,omitempty"`
// Success Indicates whether Provisioner migration was successful.
Success *bool `json:"success,omitempty"`
}
CastaiAutoscalerV1beta1ProvisionerMigrationResult defines model for castai.autoscaler.v1beta1.ProvisionerMigrationResult.
type CastaiAutoscalerV1beta1RebalancingNode ¶
type CastaiAutoscalerV1beta1RebalancingNode struct {
NodeId *string `json:"nodeId,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingNode defines model for castai.autoscaler.v1beta1.RebalancingNode.
type CastaiAutoscalerV1beta1RebalancingPlanResponse ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponse struct {
// AggressiveMode When enabled will also consider rebalancing problematic pods (pods without controller, job pods, pods with removal-disabled annotation).
//
// Deprecated: use AggressiveModeConfig instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AggressiveMode *bool `json:"aggressiveMode"`
AggressiveModeConfig *CastaiAutoscalerV1beta1AggressiveModeConfig `json:"aggressiveModeConfig,omitempty"`
// ClusterId ID of the cluster that is being rebalanced.
//
// ID of the rebalancing plan.
ClusterId string `json:"clusterId"`
// Configurations Defines the cluster rebalancing plan configurations.
Configurations CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations `json:"configurations"`
// CreatedAt Timestamp of the rebalancing plan creation.
CreatedAt time.Time `json:"createdAt"`
// CreatedNodesAt Timestamp of the rebalancing plan green node creation.
CreatedNodesAt *time.Time `json:"createdNodesAt,omitempty"`
// DeletedNodesAt Timestamp of the rebalancing plan blue node deletion.
DeletedNodesAt *time.Time `json:"deletedNodesAt,omitempty"`
// DrainedNodesAt Timestamp of the rebalancing plan blue node draining.
DrainedNodesAt *time.Time `json:"drainedNodesAt,omitempty"`
// Errors Detailed error of rebalancing plan.
Errors *[]CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError `json:"errors,omitempty"`
// EvictGracefully During the drain & delete plan execution phase, if node eviction reaches a timeout, it will be deleted forcefully, terminating all workloads that failed to gracefully close on time.
// When this option is enabled, such nodes will be kept for manual inspection and/or eventual automatic cleanup when node becomes empty.
// Special annotation "rebalancing.cast.ai/status=drain-failed" will be added to these nodes.
EvictGracefully bool `json:"evictGracefully"`
// ExecutionConditions Defines the conditions which must be met in order to fully execute the plan.
ExecutionConditions CastaiAutoscalerV1beta1ExecutionConditions `json:"executionConditions"`
// FinishedAt Timestamp of the rebalancing plan finishing.
FinishedAt *time.Time `json:"finishedAt,omitempty"`
// GeneratedAt Timestamp of the rebalancing plan generation.
GeneratedAt *time.Time `json:"generatedAt,omitempty"`
KeepDrainTimeoutNodes *bool `json:"keepDrainTimeoutNodes,omitempty"`
// MinNodes Minimum count of worker nodes to be had in the rebalancing plan. Default is 3.
MinNodes int32 `json:"minNodes"`
// Operations List of operations needed to execute this rebalancing plan. Documents the factual actions needed to be taken and/or
// actions already done.
Operations []CastaiAutoscalerV1beta1RebalancingPlanResponseOperation `json:"operations"`
// PausedDrainConfig Defines configuration of a paused draining feature. Requires feature flag to be enabled.
PausedDrainConfig *CastaiAutoscalerV1beta1PausedDrainConfig `json:"pausedDrainConfig,omitempty"`
// RebalancingNodeIds Subset of the node IDs which were selected to rebalance. In case of full cluster rebalancing, this list
// will be empty.
RebalancingNodeIds []string `json:"rebalancingNodeIds"`
RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"`
// ScheduleId Defines the schedule ID that triggered the creation of this rebalancing plan. Can be null if the rebalancing
// plan didn't originate from a rebalancing schedule.
ScheduleId *string `json:"scheduleId"`
// Status Status of the rebalancing plan.
//
// * `generating` - the rebalancing plan is new and currently is being generated.
// * `generated` - the rebalancing plan has been generated and can be previewed.
// * `creating_nodes` - the rebalancing plan is being executed, green nodes are being created.
// * `preparing_nodes` - the rebalancing plan is being executed, green nodes are being prepared.
// * `draining_nodes` - the rebalancing plan is being executed, blue nodes are being drained.
// * `deleting_nodes` - the rebalancing plan is being executed, blue nodes are being deleted.
// * `finished` - the rebalancing plan has finished successfully.
// * `partially_finished` - the rebalancing plan has partially finished. Used when graceful rebalancing is enabled.
// * `error` - the rebalancing plan has failed.
Status CastaiAutoscalerV1beta1Status `json:"status"`
// TriggeredAt Timestamp of the rebalancing plan triggering.
TriggeredAt *time.Time `json:"triggeredAt,omitempty"`
// UpdatedAt Timestamp of the rebalancing plan last update.
UpdatedAt time.Time `json:"updatedAt"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponse Defines the cluster rebalancing plan response.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations struct {
// Achieved Contains affected and cluster node aggregated calculations.
Achieved *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals `json:"achieved,omitempty"`
// AchievedDiff Defines the difference between blue and green node configurations.
AchievedDiff *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff `json:"achievedDiff,omitempty"`
// Blue Defines a single rebalancing plan configuration.
Blue *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration `json:"blue,omitempty"`
// Diff Defines the difference between blue and green node configurations.
Diff *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff `json:"diff,omitempty"`
// Green Defines a single rebalancing plan configuration.
Green *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration `json:"green,omitempty"`
Recommendations *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations `json:"recommendations,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations Defines the cluster rebalancing plan configurations.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration struct {
// ClusterTotals Defines the totals of a single configuration.
ClusterTotals *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"clusterTotals,omitempty"`
// Nodes A list of node in this configuration.
Nodes *[]CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode `json:"nodes,omitempty"`
// Totals Defines the totals of a single configuration.
Totals *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"totals,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration Defines a single rebalancing plan configuration.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode struct {
// CreatedAt Timestamp of the node creation date.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Id Node ID, if the node already exists.
// Green nodes, to be created, won't have node_id.
Id *string `json:"id"`
// InstanceType The instance type of this node.
InstanceType *string `json:"instanceType,omitempty"`
// IsControlPlane Whether this node is control plan node.
IsControlPlane *bool `json:"isControlPlane,omitempty"`
// IsLegacy Whether the node is legacy.
IsLegacy *bool `json:"isLegacy,omitempty"`
// IsSpot Whether this node is a spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// IsSpotFallback Whether this node is a spot fallback.
IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
// ManagedBy The provider name which managed this node.
//
// Possible types:
// * `CASTAI` - the node is managed by CAST AI.
// * `EKS` - the node is managed by the AWS EKS service.
// * `GKE` - the node is managed by the GCP GKE service.
// * `AKS` - the node is managed by the Azure AKS service.
// * `KOPS` - the node is managed by the cluster manager tool kOps.
ManagedBy *string `json:"managedBy,omitempty"`
// MemoryMib Memory capacity of this node in MiBs.
MemoryMib *int32 `json:"memoryMib,omitempty"`
// MilliCpu Milli CPU capacity of this node.
MilliCpu *int32 `json:"milliCpu,omitempty"`
// Name Name of the node.
Name *string `json:"name,omitempty"`
Os *CastaiAutoscalerV1beta1Os `json:"os,omitempty"`
// PriceHourly The hourly price of this node in $ currency.
PriceHourly *string `json:"priceHourly,omitempty"`
// ProvisionedNode Defines a provisioned version of the node in the configuration.
ProvisionedNode *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode `json:"provisionedNode,omitempty"`
// TotalPods Total number of pods in this node.
TotalPods *int32 `json:"totalPods,omitempty"`
// TotalProblematicPods Total number of problematic pods in this node.
TotalProblematicPods *int32 `json:"totalProblematicPods,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode Defines a single node in the configuration.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode struct {
// CreatedAt Timestamp of the node creation date.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// InstanceType The instance type of this node.
InstanceType *string `json:"instanceType,omitempty"`
// IsSpot Whether this node is a spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// IsSpotFallback Whether this node is a spot fallback.
IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
// MemoryMib Memory capacity of this node in MiBs.
MemoryMib *int32 `json:"memoryMib,omitempty"`
// MilliCpu Milli CPU capacity of this node.
MilliCpu *int32 `json:"milliCpu,omitempty"`
Os *CastaiAutoscalerV1beta1Os `json:"os,omitempty"`
// PriceHourly The hourly price of this node in $ currency.
PriceHourly *string `json:"priceHourly,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode Defines a provisioned version of the node in the configuration.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals struct {
// AffectedNodeTotals Defines the totals of a single configuration.
AffectedNodeTotals CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"affectedNodeTotals"`
// ClusterTotals Defines the totals of a single configuration.
ClusterTotals CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"clusterTotals"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals Contains affected and cluster node aggregated calculations.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff struct {
// ClusterSavingsPercentage Saving percentage achieved by rebalancing the selected nodes for the whole cluster.
ClusterSavingsPercentage *string `json:"clusterSavingsPercentage,omitempty"`
// PriceHourly Hourly price difference between blue and green node configurations in $ currency.
PriceHourly *string `json:"priceHourly,omitempty"`
// PriceMonthly Monthly price difference between blue and green node configurations in $ currency.
PriceMonthly *string `json:"priceMonthly,omitempty"`
// SavingsPercentage Savings percentage achieved by rebalancing the selected nodes.
SavingsPercentage *string `json:"savingsPercentage,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff Defines the difference between blue and green node configurations.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations ¶ added in v0.58.1
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations struct {
Applied *bool `json:"applied,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations defines model for castai.autoscaler.v1beta1.RebalancingPlanResponse.Configurations.Recommendations.
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals struct {
// MemoryMib Total memory capacity of this configuration in MiBs.
MemoryMib *int32 `json:"memoryMib,omitempty"`
// MigratablePods Count of pods which can be migrated. They come from replaceable nodes.
MigratablePods *int32 `json:"migratablePods,omitempty"`
// MilliCpu Total milli CPU capacity of this configuration.
MilliCpu *int32 `json:"milliCpu,omitempty"`
// Nodes Count of nodes in this configuration.
Nodes *int32 `json:"nodes,omitempty"`
// Pods Total number of pods in this configuration.
Pods *int32 `json:"pods,omitempty"`
// PriceHourly Total hourly price of this configuration in $ currency.
PriceHourly *string `json:"priceHourly,omitempty"`
// PriceMonthly Total monthly price of this configuration in $ currency.
PriceMonthly *string `json:"priceMonthly,omitempty"`
// ProblematicPods Total number of problematic pods in this configuration.
ProblematicPods *int32 `json:"problematicPods,omitempty"`
// ReplaceableNodes Count of nodes which can be replaced in this configuration.
ReplaceableNodes *int32 `json:"replaceableNodes,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals Defines the totals of a single configuration.
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperation ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperation struct {
// CreateParams Defines the parameters used for the `create_node` operation type.
CreateParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams `json:"createParams,omitempty"`
// CreatedAt Timestamp of the operation creation.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// DeleteParams Defines the parameters for the `delete_node` operation type.
DeleteParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams `json:"deleteParams,omitempty"`
// DrainParams Defines the parameters for the `drain_node` operation type.
DrainParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams `json:"drainParams,omitempty"`
// Error Error value if the operation has finished with an error.
Error *string `json:"error"`
// FinishedAt Timestamp of the operation finish date. Only present when the operation has finished, either with an error or not.
FinishedAt *time.Time `json:"finishedAt"`
// Id The id of the operation.
Id *string `json:"id,omitempty"`
// NodeId The id of the node this operation will be executed on.
NodeId *string `json:"nodeId"`
// PrepareParams Defines the parameters for the `prepare_node` operation type.
PrepareParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams `json:"prepareParams,omitempty"`
// Type Type of the operation.
//
// Possible types:
// * `create_node` - a node will be created with specific `create` `params`.
// * `prepare_node` - a node will be prepared with specific `prepared` `params`.
// * `drain_node` - a node will be drained with specific `drain` `params`.
// * `delete_node` - a node will be deleted with specific `delete` `params`.
Type *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType `json:"type,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseOperation Defines an actual action needed to be taken and/or already done.
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams struct {
// AzName The availability zone name of the created node. If empty - the AZ name will be random.
AzName *string `json:"azName"`
// Csp The cloud service provider name.
Csp *string `json:"csp,omitempty"`
// InstanceType The instance type of the created node.
InstanceType *string `json:"instanceType,omitempty"`
// IsSpot Whether the created node is a spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// IsSpotFallback Whether the node is a spot fallback.
IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
// NodeConfigurationId Node configuration ID to be used for the new node.
NodeConfigurationId *string `json:"nodeConfigurationId,omitempty"`
SpotReliabilityScore *float32 `json:"spotReliabilityScore"`
// SubnetId The subnet id of the created node. if empty - the subnet id will be random based on the availability zone.
SubnetId *string `json:"subnetId"`
// VolumeSizeGib The volume size in GiB of the created node.
VolumeSizeGib *int32 `json:"volumeSizeGib,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams Defines the parameters used for the `create_node` operation type.
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams struct {
// Csp The cloud service provider name.
Csp *string `json:"csp,omitempty"`
// InstanceType The instance type of the node.
InstanceType *string `json:"instanceType,omitempty"`
// IsSpot Whether the node is a spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// IsSpotFallback Whether the node is a spot fallback.
IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams Defines the parameters for the `delete_node` operation type.
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams struct {
// Csp The cloud service provider name.
Csp *string `json:"csp,omitempty"`
// DrainTimeout The drain timeout (default is 20m if not present).
DrainTimeout *string `json:"drainTimeout"`
// InstanceType The instance type of the node.
InstanceType *string `json:"instanceType,omitempty"`
// IsSpot Whether the node is a spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// IsSpotFallback Whether the node is a spot fallback.
IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams Defines the parameters for the `drain_node` operation type.
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams struct {
// Csp The cloud service provider name.
Csp *string `json:"csp,omitempty"`
// InstanceType The instance type of the node.
InstanceType *string `json:"instanceType,omitempty"`
// IsSpot Whether the node is a spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// IsSpotFallback Whether the node is a spot fallback.
IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
SpotReliabilityScore *float32 `json:"spotReliabilityScore"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams Defines the parameters for the `prepare_node` operation type.
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType string
CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType Type of the operation.
Possible types: * `create_node` - a node will be created with specific `create` `params`. * `prepare_node` - a node will be prepared with specific `prepared` `params`. * `drain_node` - a node will be drained with specific `drain` `params`. * `delete_node` - a node will be deleted with specific `delete` `params`.
const ( CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeCreateNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "create_node" CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeDeleteNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "delete_node" CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeDrainNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "drain_node" CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeInvalid CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "invalid" CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypePrepareNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "prepare_node" )
Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType.
type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError struct {
// Message Detailed error message.
Message *string `json:"message,omitempty"`
// Node Node id.
Node *string `json:"node"`
// Pod Pod name.
Pod *string `json:"pod"`
// Reason Defines the reason why the rebalancing plan failed.
//
// * `rebalancing_plan_generation_failed` - the rebalancing plan generation failed.
// * `upscaling_failed` - the upscaling of the cluster failed.
// * `node_drain_failed` - the drain of a node failed.
// * `node_create_failed` - the creation of a node failed.
// * `node_prepare_failed` - the preparation of a node failed.
// * `node_delete_failed` - the deletion of a node failed.
// * `rebalancing_plan_timeout` - the rebalancing plan timed out.
// * `achieved_savings_below_threshold` - the achieved savings are below the threshold.
// * `unknown` - the reason is unknown.
Reason *CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason `json:"reason,omitempty"`
}
CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError Detailed error.
type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason ¶
type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason string
CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason Defines the reason why the rebalancing plan failed.
* `rebalancing_plan_generation_failed` - the rebalancing plan generation failed. * `upscaling_failed` - the upscaling of the cluster failed. * `node_drain_failed` - the drain of a node failed. * `node_create_failed` - the creation of a node failed. * `node_prepare_failed` - the preparation of a node failed. * `node_delete_failed` - the deletion of a node failed. * `rebalancing_plan_timeout` - the rebalancing plan timed out. * `achieved_savings_below_threshold` - the achieved savings are below the threshold. * `unknown` - the reason is unknown.
const ( CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonAchievedSavingsBelowThreshold CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "achievedSavingsBelowThreshold" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonInvalid CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "invalid" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeCreateFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeCreateFailed" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeDeleteFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeDeleteFailed" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeDrainFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeDrainFailed" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodePrepareFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodePrepareFailed" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonRebalancingPlanGenerationFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "rebalancingPlanGenerationFailed" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonRebalancingPlanTimeout CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "rebalancingPlanTimeout" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonUnknown CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "unknown" CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonUpscalingFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "upscalingFailed" )
Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason.
type CastaiAutoscalerV1beta1Status ¶
type CastaiAutoscalerV1beta1Status string
CastaiAutoscalerV1beta1Status Status of the rebalancing plan.
* `generating` - the rebalancing plan is new and currently is being generated. * `generated` - the rebalancing plan has been generated and can be previewed. * `creating_nodes` - the rebalancing plan is being executed, green nodes are being created. * `preparing_nodes` - the rebalancing plan is being executed, green nodes are being prepared. * `draining_nodes` - the rebalancing plan is being executed, blue nodes are being drained. * `deleting_nodes` - the rebalancing plan is being executed, blue nodes are being deleted. * `finished` - the rebalancing plan has finished successfully. * `partially_finished` - the rebalancing plan has partially finished. Used when graceful rebalancing is enabled. * `error` - the rebalancing plan has failed.
const ( CastaiAutoscalerV1beta1StatusCreatingNodes CastaiAutoscalerV1beta1Status = "creating_nodes" CastaiAutoscalerV1beta1StatusDeletingNodes CastaiAutoscalerV1beta1Status = "deleting_nodes" CastaiAutoscalerV1beta1StatusDrainingNodes CastaiAutoscalerV1beta1Status = "draining_nodes" CastaiAutoscalerV1beta1StatusError CastaiAutoscalerV1beta1Status = "error" CastaiAutoscalerV1beta1StatusFinished CastaiAutoscalerV1beta1Status = "finished" CastaiAutoscalerV1beta1StatusGenerated CastaiAutoscalerV1beta1Status = "generated" CastaiAutoscalerV1beta1StatusGenerating CastaiAutoscalerV1beta1Status = "generating" CastaiAutoscalerV1beta1StatusInvalid CastaiAutoscalerV1beta1Status = "invalid" CastaiAutoscalerV1beta1StatusPartiallyFinished CastaiAutoscalerV1beta1Status = "partially_finished" CastaiAutoscalerV1beta1StatusPreparingNodes CastaiAutoscalerV1beta1Status = "preparing_nodes" )
Defines values for CastaiAutoscalerV1beta1Status.
type CastaiFeaturesV1Comparison ¶ added in v0.58.1
type CastaiFeaturesV1Comparison struct {
// EntityId The entity ID to compare against (e.g., "da7a9f8d-ed18-40c3-89a7-93a81283af62").
EntityId *string `json:"entityId,omitempty"`
// EntityType EntityType defines available entity types for feature flag enablement.
//
// - organizationId: Represents the main identifier(organization_id) for organization in Cast AI.
// - clusterId: Represents the main identifier(cluster_id) for cluster in Cast AI.
// - userId: Represents the user identifier(username) which is used to identify a user in users service.
// - environment: Represents the identifier which is used to identify an environment in Cast AI.
EntityType *CastaiFeaturesV1EntityType `json:"entityType,omitempty"`
// Operator Operator defines available operators for targeting rules.
//
// - operator_unspecified: unspecified operator.
// - equals: Represents the equals operator, ==.
// - not_equals: Represents the not equals operator, !=.
Operator *CastaiFeaturesV1Operator `json:"operator,omitempty"`
}
CastaiFeaturesV1Comparison Comparison represents a entity to entity ID comparison.
type CastaiFeaturesV1Condition ¶ added in v0.58.1
type CastaiFeaturesV1Condition struct {
// Comparison Comparison represents a entity to entity ID comparison.
Comparison *CastaiFeaturesV1Comparison `json:"comparison,omitempty"`
// NestedQuery QueryExpression represents a logical operation with conditions.
NestedQuery *CastaiFeaturesV1QueryExpression `json:"nestedQuery,omitempty"`
}
CastaiFeaturesV1Condition Represents a condition, which can be a comparison or a nested query.
type CastaiFeaturesV1EntityType ¶ added in v0.58.1
type CastaiFeaturesV1EntityType string
CastaiFeaturesV1EntityType EntityType defines available entity types for feature flag enablement.
- organizationId: Represents the main identifier(organization_id) for organization in Cast AI.
- clusterId: Represents the main identifier(cluster_id) for cluster in Cast AI.
- userId: Represents the user identifier(username) which is used to identify a user in users service.
- environment: Represents the identifier which is used to identify an environment in Cast AI.
const ( ClusterId CastaiFeaturesV1EntityType = "clusterId" Environment CastaiFeaturesV1EntityType = "environment" OrganizationId CastaiFeaturesV1EntityType = "organizationId" UserId CastaiFeaturesV1EntityType = "userId" )
Defines values for CastaiFeaturesV1EntityType.
type CastaiFeaturesV1LogicalOperator ¶ added in v0.58.1
type CastaiFeaturesV1LogicalOperator string
CastaiFeaturesV1LogicalOperator LogicalOperator defines available logical operators for targeting rules.
const ( And CastaiFeaturesV1LogicalOperator = "and" LogicalUnspecified CastaiFeaturesV1LogicalOperator = "logical_unspecified" Or CastaiFeaturesV1LogicalOperator = "or" )
Defines values for CastaiFeaturesV1LogicalOperator.
type CastaiFeaturesV1Operator ¶ added in v0.58.1
type CastaiFeaturesV1Operator string
CastaiFeaturesV1Operator Operator defines available operators for targeting rules.
- operator_unspecified: unspecified operator.
- equals: Represents the equals operator, ==.
- not_equals: Represents the not equals operator, !=.
const ( Equals CastaiFeaturesV1Operator = "equals" NotEquals CastaiFeaturesV1Operator = "not_equals" OperatorUnspecified CastaiFeaturesV1Operator = "operator_unspecified" )
Defines values for CastaiFeaturesV1Operator.
type CastaiFeaturesV1QueryExpression ¶ added in v0.58.1
type CastaiFeaturesV1QueryExpression struct {
// Conditions Represents evaluation conditions.
Conditions []CastaiFeaturesV1Condition `json:"conditions"`
// LogicalOperator LogicalOperator defines available logical operators for targeting rules.
LogicalOperator CastaiFeaturesV1LogicalOperator `json:"logicalOperator"`
}
CastaiFeaturesV1QueryExpression QueryExpression represents a logical operation with conditions.
type CastaiOperationsV1beta1Operation ¶
type CastaiOperationsV1beta1Operation struct {
// CreatedAt Operation creation timestamp in RFC3339Nano format.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Done Indicates whether the operation has finished or not. If 'false', the operation is still in progress. If 'true',
// the has finished.
Done *bool `json:"done,omitempty"`
// Error OperationError object.
Error *CastaiOperationsV1beta1OperationError `json:"error,omitempty"`
// FinishedAt Operation finish timestamp in RFC3339Nano format.
FinishedAt *time.Time `json:"finishedAt,omitempty"`
// Id ID of the operation.
Id *string `json:"id,omitempty"`
}
CastaiOperationsV1beta1Operation Operation object.
type CastaiOperationsV1beta1OperationError ¶
type CastaiOperationsV1beta1OperationError struct {
// Details Details is a concise human readable explanation for the error.
Details *string `json:"details,omitempty"`
// Reason Reason is an operation specific failure code. Refer to documentation about possible outcomes.
Reason *string `json:"reason,omitempty"`
}
CastaiOperationsV1beta1OperationError OperationError object.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AuthTokenAPICreateAuthToken ¶
func (c *Client) AuthTokenAPICreateAuthToken(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthTokenAPICreateAuthTokenWithBody ¶
func (*Client) AuthTokenAPIDeleteAuthToken ¶
func (*Client) AuthTokenAPIGetAuthToken ¶
func (*Client) AuthTokenAPIListAuthTokens ¶
func (c *Client) AuthTokenAPIListAuthTokens(ctx context.Context, params *AuthTokenAPIListAuthTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthTokenAPIUpdateAuthToken ¶
func (c *Client) AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthTokenAPIUpdateAuthTokenWithBody ¶
func (*Client) AutoscalerAPIExecuteRebalancingPlan ¶
func (*Client) AutoscalerAPIGenerateRebalancingPlan ¶
func (c *Client) AutoscalerAPIGenerateRebalancingPlan(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AutoscalerAPIGenerateRebalancingPlanWithBody ¶
func (*Client) AutoscalerAPIGetAgentScript ¶
func (c *Client) AutoscalerAPIGetAgentScript(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AutoscalerAPIGetClusterSettings ¶
func (*Client) AutoscalerAPIGetClusterWorkloads ¶
func (*Client) AutoscalerAPIGetKarpenterDefinitionsMigrationIntent ¶
func (*Client) AutoscalerAPIGetProblematicNodes ¶
func (*Client) AutoscalerAPIGetProblematicWorkloads ¶
func (c *Client) AutoscalerAPIGetProblematicWorkloads(ctx context.Context, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AutoscalerAPIGetRebalancedWorkloads ¶
func (*Client) AutoscalerAPIGetRebalancingPlan ¶
func (c *Client) AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AutoscalerAPIListRebalancingPlans ¶
func (c *Client) AutoscalerAPIListRebalancingPlans(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AutoscalerAPIMigrateKarpenterDefinitions ¶
func (c *Client) AutoscalerAPIMigrateKarpenterDefinitions(ctx context.Context, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AutoscalerAPIMigrateKarpenterDefinitionsWithBody ¶
func (*Client) ExternalClusterAPIAddNode ¶
func (c *Client) ExternalClusterAPIAddNode(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIAddNodeWithBody ¶
func (*Client) ExternalClusterAPICreateAssumeRolePrincipal ¶
func (*Client) ExternalClusterAPICreateClusterToken ¶
func (*Client) ExternalClusterAPIDeleteAssumeRolePrincipal ¶
func (*Client) ExternalClusterAPIDeleteCluster ¶
func (*Client) ExternalClusterAPIDeleteNode ¶
func (c *Client) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIDisableGCPSA ¶ added in v0.58.1
func (*Client) ExternalClusterAPIDisableGKESA ¶
func (*Client) ExternalClusterAPIDisconnectCluster ¶
func (c *Client) ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIDisconnectClusterWithBody ¶
func (*Client) ExternalClusterAPIDrainNode ¶
func (c *Client) ExternalClusterAPIDrainNode(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIDrainNodeWithBody ¶
func (*Client) ExternalClusterAPIGCPCreateSA ¶ added in v0.58.1
func (c *Client) ExternalClusterAPIGCPCreateSA(ctx context.Context, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIGCPCreateSAWithBody ¶ added in v0.58.1
func (*Client) ExternalClusterAPIGKECreateSA ¶
func (c *Client) ExternalClusterAPIGKECreateSA(ctx context.Context, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIGKECreateSAWithBody ¶
func (*Client) ExternalClusterAPIGetAssumeRolePrincipal ¶
func (*Client) ExternalClusterAPIGetAssumeRoleUser ¶
func (*Client) ExternalClusterAPIGetCleanupScript ¶
func (*Client) ExternalClusterAPIGetCleanupScriptTemplate ¶
func (*Client) ExternalClusterAPIGetCluster ¶
func (*Client) ExternalClusterAPIGetConnectAndEnableCASTAICmd ¶ added in v0.62.0
func (c *Client) ExternalClusterAPIGetConnectAndEnableCASTAICmd(ctx context.Context, params *ExternalClusterAPIGetConnectAndEnableCASTAICmdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIGetConnectAndEnableCASTAIScript ¶ added in v0.62.0
func (*Client) ExternalClusterAPIGetCredentialsScript ¶
func (c *Client) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIGetCredentialsScriptTemplate ¶
func (c *Client) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIGetListNodesFilters ¶
func (*Client) ExternalClusterAPIGetNode ¶
func (*Client) ExternalClusterAPIHandleCloudEvent ¶
func (c *Client) ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIHandleCloudEventWithBody ¶
func (*Client) ExternalClusterAPIImpersonationServiceAccount ¶ added in v0.62.0
func (c *Client) ExternalClusterAPIImpersonationServiceAccount(ctx context.Context, body ExternalClusterAPIImpersonationServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIImpersonationServiceAccountWithBody ¶ added in v0.62.0
func (*Client) ExternalClusterAPIIngestInstanceLogs ¶ added in v0.62.0
func (c *Client) ExternalClusterAPIIngestInstanceLogs(ctx context.Context, clusterId string, instanceId string, body ExternalClusterAPIIngestInstanceLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIIngestInstanceLogsWithBody ¶ added in v0.62.0
func (*Client) ExternalClusterAPIListClusters ¶
func (*Client) ExternalClusterAPIListNodes ¶
func (c *Client) ExternalClusterAPIListNodes(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIReconcileCluster ¶
func (c *Client) ExternalClusterAPIReconcileCluster(ctx context.Context, clusterId string, params *ExternalClusterAPIReconcileClusterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIRegisterCluster ¶
func (c *Client) ExternalClusterAPIRegisterCluster(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIRegisterClusterWithBody ¶
func (*Client) ExternalClusterAPITriggerHibernateCluster ¶
func (*Client) ExternalClusterAPITriggerResumeCluster ¶
func (c *Client) ExternalClusterAPITriggerResumeCluster(ctx context.Context, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPITriggerResumeClusterWithBody ¶
func (*Client) ExternalClusterAPIUpdateCluster ¶
func (c *Client) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIUpdateClusterTags ¶
func (c *Client) ExternalClusterAPIUpdateClusterTags(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExternalClusterAPIUpdateClusterTagsWithBody ¶
func (*Client) ExternalClusterAPIUpdateClusterWithBody ¶
func (*Client) OperationsAPIGetOperation ¶
type ClientInterface ¶
type ClientInterface interface {
// AutoscalerAPIGetAgentScript request
AutoscalerAPIGetAgentScript(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthTokenAPIListAuthTokens request
AuthTokenAPIListAuthTokens(ctx context.Context, params *AuthTokenAPIListAuthTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthTokenAPICreateAuthTokenWithBody request with any body
AuthTokenAPICreateAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthTokenAPICreateAuthToken(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthTokenAPIDeleteAuthToken request
AuthTokenAPIDeleteAuthToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthTokenAPIGetAuthToken request
AuthTokenAPIGetAuthToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthTokenAPIUpdateAuthTokenWithBody request with any body
AuthTokenAPIUpdateAuthTokenWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetKarpenterDefinitionsMigrationIntent request
AutoscalerAPIGetKarpenterDefinitionsMigrationIntent(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIMigrateKarpenterDefinitionsWithBody request with any body
AutoscalerAPIMigrateKarpenterDefinitionsWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AutoscalerAPIMigrateKarpenterDefinitions(ctx context.Context, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetProblematicNodes request
AutoscalerAPIGetProblematicNodes(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetProblematicWorkloads request
AutoscalerAPIGetProblematicWorkloads(ctx context.Context, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetRebalancedWorkloads request
AutoscalerAPIGetRebalancedWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIListRebalancingPlans request
AutoscalerAPIListRebalancingPlans(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGenerateRebalancingPlanWithBody request with any body
AutoscalerAPIGenerateRebalancingPlanWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AutoscalerAPIGenerateRebalancingPlan(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetRebalancingPlan request
AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIExecuteRebalancingPlan request
AutoscalerAPIExecuteRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetClusterSettings request
AutoscalerAPIGetClusterSettings(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoscalerAPIGetClusterWorkloads request
AutoscalerAPIGetClusterWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIListClusters request
ExternalClusterAPIListClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIRegisterClusterWithBody request with any body
ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIRegisterCluster(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetListNodesFilters request
ExternalClusterAPIGetListNodesFilters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIImpersonationServiceAccountWithBody request with any body
ExternalClusterAPIImpersonationServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIImpersonationServiceAccount(ctx context.Context, body ExternalClusterAPIImpersonationServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetConnectAndEnableCASTAICmd request
ExternalClusterAPIGetConnectAndEnableCASTAICmd(ctx context.Context, params *ExternalClusterAPIGetConnectAndEnableCASTAICmdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OperationsAPIGetOperation request
OperationsAPIGetOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDeleteCluster request
ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetCluster request
ExternalClusterAPIGetCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIUpdateClusterWithBody request with any body
ExternalClusterAPIUpdateClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDeleteAssumeRolePrincipal request
ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetAssumeRolePrincipal request
ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPICreateAssumeRolePrincipal request
ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetAssumeRoleUser request
ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetCleanupScript request
ExternalClusterAPIGetCleanupScript(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetCredentialsScript request
ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDisconnectClusterWithBody request with any body
ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIHandleCloudEventWithBody request with any body
ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGCPCreateSAWithBody request with any body
ExternalClusterAPIGCPCreateSAWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIGCPCreateSA(ctx context.Context, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDisableGCPSA request
ExternalClusterAPIDisableGCPSA(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGKECreateSAWithBody request with any body
ExternalClusterAPIGKECreateSAWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIGKECreateSA(ctx context.Context, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDisableGKESA request
ExternalClusterAPIDisableGKESA(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPITriggerHibernateCluster request
ExternalClusterAPITriggerHibernateCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIIngestInstanceLogsWithBody request with any body
ExternalClusterAPIIngestInstanceLogsWithBody(ctx context.Context, clusterId string, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIIngestInstanceLogs(ctx context.Context, clusterId string, instanceId string, body ExternalClusterAPIIngestInstanceLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIListNodes request
ExternalClusterAPIListNodes(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIAddNodeWithBody request with any body
ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIAddNode(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDeleteNode request
ExternalClusterAPIDeleteNode(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetNode request
ExternalClusterAPIGetNode(ctx context.Context, clusterId string, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIDrainNodeWithBody request with any body
ExternalClusterAPIDrainNodeWithBody(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIDrainNode(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIReconcileCluster request
ExternalClusterAPIReconcileCluster(ctx context.Context, clusterId string, params *ExternalClusterAPIReconcileClusterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPITriggerResumeClusterWithBody request with any body
ExternalClusterAPITriggerResumeClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPITriggerResumeCluster(ctx context.Context, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIUpdateClusterTagsWithBody request with any body
ExternalClusterAPIUpdateClusterTagsWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExternalClusterAPIUpdateClusterTags(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPICreateClusterToken request
ExternalClusterAPICreateClusterToken(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetConnectAndEnableCASTAIScript request
ExternalClusterAPIGetConnectAndEnableCASTAIScript(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetCleanupScriptTemplate request
ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExternalClusterAPIGetCredentialsScriptTemplate request
ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func CreateClient ¶
func CreateClient(apiURL, apiToken, userAgent string) (*ClientWithResponses, error)
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AuthTokenAPICreateAuthTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error)
AuthTokenAPICreateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPICreateAuthTokenResponse
func (*ClientWithResponses) AuthTokenAPICreateAuthTokenWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error)
func (*ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error)
AuthTokenAPIDeleteAuthTokenWithResponse request returning *AuthTokenAPIDeleteAuthTokenResponse
func (*ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error)
AuthTokenAPIGetAuthTokenWithResponse request returning *AuthTokenAPIGetAuthTokenResponse
func (*ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error)
AuthTokenAPIListAuthTokensWithResponse request returning *AuthTokenAPIListAuthTokensResponse
func (*ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error)
AuthTokenAPIUpdateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPIUpdateAuthTokenResponse
func (*ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithResponse ¶
func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error)
func (*ClientWithResponses) AutoscalerAPIExecuteRebalancingPlanWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)
AutoscalerAPIExecuteRebalancingPlanWithResponse request returning *AutoscalerAPIExecuteRebalancingPlanResponse
func (*ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse request with arbitrary body returning *AutoscalerAPIGenerateRebalancingPlanResponse
func (*ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
func (*ClientWithResponses) AutoscalerAPIGetAgentScriptWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error)
AutoscalerAPIGetAgentScriptWithResponse request returning *AutoscalerAPIGetAgentScriptResponse
func (*ClientWithResponses) AutoscalerAPIGetClusterSettingsWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error)
AutoscalerAPIGetClusterSettingsWithResponse request returning *AutoscalerAPIGetClusterSettingsResponse
func (*ClientWithResponses) AutoscalerAPIGetClusterWorkloadsWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error)
AutoscalerAPIGetClusterWorkloadsWithResponse request returning *AutoscalerAPIGetClusterWorkloadsResponse
func (*ClientWithResponses) AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)
AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse request returning *AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse
func (*ClientWithResponses) AutoscalerAPIGetProblematicNodesWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetProblematicNodesWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicNodesResponse, error)
AutoscalerAPIGetProblematicNodesWithResponse request returning *AutoscalerAPIGetProblematicNodesResponse
func (*ClientWithResponses) AutoscalerAPIGetProblematicWorkloadsWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)
AutoscalerAPIGetProblematicWorkloadsWithResponse request returning *AutoscalerAPIGetProblematicWorkloadsResponse
func (*ClientWithResponses) AutoscalerAPIGetRebalancedWorkloadsWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)
AutoscalerAPIGetRebalancedWorkloadsWithResponse request returning *AutoscalerAPIGetRebalancedWorkloadsResponse
func (*ClientWithResponses) AutoscalerAPIGetRebalancingPlanWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams) (*AutoscalerAPIGetRebalancingPlanResponse, error)
AutoscalerAPIGetRebalancingPlanWithResponse request returning *AutoscalerAPIGetRebalancingPlanResponse
func (*ClientWithResponses) AutoscalerAPIListRebalancingPlansWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*AutoscalerAPIListRebalancingPlansResponse, error)
AutoscalerAPIListRebalancingPlansWithResponse request returning *AutoscalerAPIListRebalancingPlansResponse
func (*ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse request with arbitrary body returning *AutoscalerAPIMigrateKarpenterDefinitionsResponse
func (*ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithResponse ¶
func (c *ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
func (*ClientWithResponses) ExternalClusterAPIAddNodeWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error)
ExternalClusterAPIAddNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIAddNodeResponse
func (*ClientWithResponses) ExternalClusterAPIAddNodeWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error)
func (*ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)
ExternalClusterAPICreateAssumeRolePrincipalWithResponse request returning *ExternalClusterAPICreateAssumeRolePrincipalResponse
func (*ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error)
ExternalClusterAPICreateClusterTokenWithResponse request returning *ExternalClusterAPICreateClusterTokenResponse
func (*ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)
ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIDeleteAssumeRolePrincipalResponse
func (*ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error)
ExternalClusterAPIDeleteClusterWithResponse request returning *ExternalClusterAPIDeleteClusterResponse
func (*ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error)
ExternalClusterAPIDeleteNodeWithResponse request returning *ExternalClusterAPIDeleteNodeResponse
func (*ClientWithResponses) ExternalClusterAPIDisableGCPSAWithResponse ¶ added in v0.58.1
func (c *ClientWithResponses) ExternalClusterAPIDisableGCPSAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGCPSAResponse, error)
ExternalClusterAPIDisableGCPSAWithResponse request returning *ExternalClusterAPIDisableGCPSAResponse
func (*ClientWithResponses) ExternalClusterAPIDisableGKESAWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDisableGKESAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGKESAResponse, error)
ExternalClusterAPIDisableGKESAWithResponse request returning *ExternalClusterAPIDisableGKESAResponse
func (*ClientWithResponses) ExternalClusterAPIDisconnectClusterWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error)
ExternalClusterAPIDisconnectClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDisconnectClusterResponse
func (*ClientWithResponses) ExternalClusterAPIDisconnectClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error)
func (*ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error)
ExternalClusterAPIDrainNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDrainNodeResponse
func (*ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error)
func (*ClientWithResponses) ExternalClusterAPIGCPCreateSAWithBodyWithResponse ¶ added in v0.58.1
func (c *ClientWithResponses) ExternalClusterAPIGCPCreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGCPCreateSAResponse, error)
ExternalClusterAPIGCPCreateSAWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIGCPCreateSAResponse
func (*ClientWithResponses) ExternalClusterAPIGCPCreateSAWithResponse ¶ added in v0.58.1
func (c *ClientWithResponses) ExternalClusterAPIGCPCreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody) (*ExternalClusterAPIGCPCreateSAResponse, error)
func (*ClientWithResponses) ExternalClusterAPIGKECreateSAWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGKECreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGKECreateSAResponse, error)
ExternalClusterAPIGKECreateSAWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIGKECreateSAResponse
func (*ClientWithResponses) ExternalClusterAPIGKECreateSAWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGKECreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody) (*ExternalClusterAPIGKECreateSAResponse, error)
func (*ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)
ExternalClusterAPIGetAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIGetAssumeRolePrincipalResponse
func (*ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)
ExternalClusterAPIGetAssumeRoleUserWithResponse request returning *ExternalClusterAPIGetAssumeRoleUserResponse
func (*ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)
ExternalClusterAPIGetCleanupScriptTemplateWithResponse request returning *ExternalClusterAPIGetCleanupScriptTemplateResponse
func (*ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error)
ExternalClusterAPIGetCleanupScriptWithResponse request returning *ExternalClusterAPIGetCleanupScriptResponse
func (*ClientWithResponses) ExternalClusterAPIGetClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error)
ExternalClusterAPIGetClusterWithResponse request returning *ExternalClusterAPIGetClusterResponse
func (*ClientWithResponses) ExternalClusterAPIGetConnectAndEnableCASTAICmdWithResponse ¶ added in v0.62.0
func (c *ClientWithResponses) ExternalClusterAPIGetConnectAndEnableCASTAICmdWithResponse(ctx context.Context, params *ExternalClusterAPIGetConnectAndEnableCASTAICmdParams) (*ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse, error)
ExternalClusterAPIGetConnectAndEnableCASTAICmdWithResponse request returning *ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse
func (*ClientWithResponses) ExternalClusterAPIGetConnectAndEnableCASTAIScriptWithResponse ¶ added in v0.62.0
func (c *ClientWithResponses) ExternalClusterAPIGetConnectAndEnableCASTAIScriptWithResponse(ctx context.Context) (*ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse, error)
ExternalClusterAPIGetConnectAndEnableCASTAIScriptWithResponse request returning *ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse
func (*ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)
ExternalClusterAPIGetCredentialsScriptTemplateWithResponse request returning *ExternalClusterAPIGetCredentialsScriptTemplateResponse
func (*ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error)
ExternalClusterAPIGetCredentialsScriptWithResponse request returning *ExternalClusterAPIGetCredentialsScriptResponse
func (*ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error)
ExternalClusterAPIGetListNodesFiltersWithResponse request returning *ExternalClusterAPIGetListNodesFiltersResponse
func (*ClientWithResponses) ExternalClusterAPIGetNodeWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error)
ExternalClusterAPIGetNodeWithResponse request returning *ExternalClusterAPIGetNodeResponse
func (*ClientWithResponses) ExternalClusterAPIHandleCloudEventWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error)
ExternalClusterAPIHandleCloudEventWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIHandleCloudEventResponse
func (*ClientWithResponses) ExternalClusterAPIHandleCloudEventWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error)
func (*ClientWithResponses) ExternalClusterAPIImpersonationServiceAccountWithBodyWithResponse ¶ added in v0.62.0
func (c *ClientWithResponses) ExternalClusterAPIImpersonationServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
ExternalClusterAPIImpersonationServiceAccountWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIImpersonationServiceAccountResponse
func (*ClientWithResponses) ExternalClusterAPIImpersonationServiceAccountWithResponse ¶ added in v0.62.0
func (c *ClientWithResponses) ExternalClusterAPIImpersonationServiceAccountWithResponse(ctx context.Context, body ExternalClusterAPIImpersonationServiceAccountJSONRequestBody) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
func (*ClientWithResponses) ExternalClusterAPIIngestInstanceLogsWithBodyWithResponse ¶ added in v0.62.0
func (c *ClientWithResponses) ExternalClusterAPIIngestInstanceLogsWithBodyWithResponse(ctx context.Context, clusterId string, instanceId string, contentType string, body io.Reader) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
ExternalClusterAPIIngestInstanceLogsWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIIngestInstanceLogsResponse
func (*ClientWithResponses) ExternalClusterAPIIngestInstanceLogsWithResponse ¶ added in v0.62.0
func (c *ClientWithResponses) ExternalClusterAPIIngestInstanceLogsWithResponse(ctx context.Context, clusterId string, instanceId string, body ExternalClusterAPIIngestInstanceLogsJSONRequestBody) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
func (*ClientWithResponses) ExternalClusterAPIListClustersWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error)
ExternalClusterAPIListClustersWithResponse request returning *ExternalClusterAPIListClustersResponse
func (*ClientWithResponses) ExternalClusterAPIListNodesWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error)
ExternalClusterAPIListNodesWithResponse request returning *ExternalClusterAPIListNodesResponse
func (*ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIReconcileClusterParams) (*ExternalClusterAPIReconcileClusterResponse, error)
ExternalClusterAPIReconcileClusterWithResponse request returning *ExternalClusterAPIReconcileClusterResponse
func (*ClientWithResponses) ExternalClusterAPIRegisterClusterWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error)
ExternalClusterAPIRegisterClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIRegisterClusterResponse
func (*ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error)
func (*ClientWithResponses) ExternalClusterAPITriggerHibernateClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPITriggerHibernateClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPITriggerHibernateClusterResponse, error)
ExternalClusterAPITriggerHibernateClusterWithResponse request returning *ExternalClusterAPITriggerHibernateClusterResponse
func (*ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPITriggerResumeClusterResponse, error)
ExternalClusterAPITriggerResumeClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPITriggerResumeClusterResponse
func (*ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody) (*ExternalClusterAPITriggerResumeClusterResponse, error)
func (*ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterTagsResponse
func (*ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
func (*ClientWithResponses) ExternalClusterAPIUpdateClusterWithBodyWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error)
ExternalClusterAPIUpdateClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterResponse
func (*ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse ¶
func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error)
func (*ClientWithResponses) OperationsAPIGetOperationWithResponse ¶
func (c *ClientWithResponses) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error)
OperationsAPIGetOperationWithResponse request returning *OperationsAPIGetOperationResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AutoscalerAPIGetAgentScript request
AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error)
// AuthTokenAPIListAuthTokens request
AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error)
// AuthTokenAPICreateAuthToken request with any body
AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error)
AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error)
// AuthTokenAPIDeleteAuthToken request
AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error)
// AuthTokenAPIGetAuthToken request
AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error)
// AuthTokenAPIUpdateAuthToken request with any body
AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error)
AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error)
// AutoscalerAPIGetKarpenterDefinitionsMigrationIntent request
AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)
// AutoscalerAPIMigrateKarpenterDefinitions request with any body
AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
AutoscalerAPIMigrateKarpenterDefinitionsWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)
// AutoscalerAPIGetProblematicNodes request
AutoscalerAPIGetProblematicNodesWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicNodesResponse, error)
// AutoscalerAPIGetProblematicWorkloads request
AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)
// AutoscalerAPIGetRebalancedWorkloads request
AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)
// AutoscalerAPIListRebalancingPlans request
AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*AutoscalerAPIListRebalancingPlansResponse, error)
// AutoscalerAPIGenerateRebalancingPlan request with any body
AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)
// AutoscalerAPIGetRebalancingPlan request
AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams) (*AutoscalerAPIGetRebalancingPlanResponse, error)
// AutoscalerAPIExecuteRebalancingPlan request
AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)
// AutoscalerAPIGetClusterSettings request
AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error)
// AutoscalerAPIGetClusterWorkloads request
AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error)
// ExternalClusterAPIListClusters request
ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error)
// ExternalClusterAPIRegisterCluster request with any body
ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error)
ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error)
// ExternalClusterAPIGetListNodesFilters request
ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error)
// ExternalClusterAPIImpersonationServiceAccount request with any body
ExternalClusterAPIImpersonationServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
ExternalClusterAPIImpersonationServiceAccountWithResponse(ctx context.Context, body ExternalClusterAPIImpersonationServiceAccountJSONRequestBody) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
// ExternalClusterAPIGetConnectAndEnableCASTAICmd request
ExternalClusterAPIGetConnectAndEnableCASTAICmdWithResponse(ctx context.Context, params *ExternalClusterAPIGetConnectAndEnableCASTAICmdParams) (*ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse, error)
// OperationsAPIGetOperation request
OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error)
// ExternalClusterAPIDeleteCluster request
ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error)
// ExternalClusterAPIGetCluster request
ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error)
// ExternalClusterAPIUpdateCluster request with any body
ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error)
ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error)
// ExternalClusterAPIDeleteAssumeRolePrincipal request
ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)
// ExternalClusterAPIGetAssumeRolePrincipal request
ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)
// ExternalClusterAPICreateAssumeRolePrincipal request
ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)
// ExternalClusterAPIGetAssumeRoleUser request
ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)
// ExternalClusterAPIGetCleanupScript request
ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error)
// ExternalClusterAPIGetCredentialsScript request
ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error)
// ExternalClusterAPIDisconnectCluster request with any body
ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error)
ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error)
// ExternalClusterAPIHandleCloudEvent request with any body
ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error)
ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error)
// ExternalClusterAPIGCPCreateSA request with any body
ExternalClusterAPIGCPCreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGCPCreateSAResponse, error)
ExternalClusterAPIGCPCreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody) (*ExternalClusterAPIGCPCreateSAResponse, error)
// ExternalClusterAPIDisableGCPSA request
ExternalClusterAPIDisableGCPSAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGCPSAResponse, error)
// ExternalClusterAPIGKECreateSA request with any body
ExternalClusterAPIGKECreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGKECreateSAResponse, error)
ExternalClusterAPIGKECreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody) (*ExternalClusterAPIGKECreateSAResponse, error)
// ExternalClusterAPIDisableGKESA request
ExternalClusterAPIDisableGKESAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGKESAResponse, error)
// ExternalClusterAPITriggerHibernateCluster request
ExternalClusterAPITriggerHibernateClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPITriggerHibernateClusterResponse, error)
// ExternalClusterAPIIngestInstanceLogs request with any body
ExternalClusterAPIIngestInstanceLogsWithBodyWithResponse(ctx context.Context, clusterId string, instanceId string, contentType string, body io.Reader) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
ExternalClusterAPIIngestInstanceLogsWithResponse(ctx context.Context, clusterId string, instanceId string, body ExternalClusterAPIIngestInstanceLogsJSONRequestBody) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
// ExternalClusterAPIListNodes request
ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error)
// ExternalClusterAPIAddNode request with any body
ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error)
ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error)
// ExternalClusterAPIDeleteNode request
ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error)
// ExternalClusterAPIGetNode request
ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error)
// ExternalClusterAPIDrainNode request with any body
ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error)
ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error)
// ExternalClusterAPIReconcileCluster request
ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIReconcileClusterParams) (*ExternalClusterAPIReconcileClusterResponse, error)
// ExternalClusterAPITriggerResumeCluster request with any body
ExternalClusterAPITriggerResumeClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPITriggerResumeClusterResponse, error)
ExternalClusterAPITriggerResumeClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody) (*ExternalClusterAPITriggerResumeClusterResponse, error)
// ExternalClusterAPIUpdateClusterTags request with any body
ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
// ExternalClusterAPICreateClusterToken request
ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error)
// ExternalClusterAPIGetConnectAndEnableCASTAIScript request
ExternalClusterAPIGetConnectAndEnableCASTAIScriptWithResponse(ctx context.Context) (*ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse, error)
// ExternalClusterAPIGetCleanupScriptTemplate request
ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)
// ExternalClusterAPIGetCredentialsScriptTemplate request
ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ErrorResponse ¶
type ErrorResponse struct {
// FieldViolations in case the error is related to specific field, this list will contain
FieldViolations []FieldViolation `json:"fieldViolations"`
Message string `json:"message"`
}
ErrorResponse defines model for ErrorResponse.
type ExternalClusterAPIAddNodeJSONRequestBody ¶
type ExternalClusterAPIAddNodeJSONRequestBody = ExternalclusterV1NodeConfig
ExternalClusterAPIAddNodeJSONRequestBody defines body for ExternalClusterAPIAddNode for application/json ContentType.
type ExternalClusterAPIAddNodeResponse ¶
type ExternalClusterAPIAddNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1AddNodeResponse
}
func ParseExternalClusterAPIAddNodeResponse ¶
func ParseExternalClusterAPIAddNodeResponse(rsp *http.Response) (*ExternalClusterAPIAddNodeResponse, error)
ParseExternalClusterAPIAddNodeResponse parses an HTTP response from a ExternalClusterAPIAddNodeWithResponse call
func (ExternalClusterAPIAddNodeResponse) GetBody ¶
func (r ExternalClusterAPIAddNodeResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIAddNodeResponse) Status ¶
func (r ExternalClusterAPIAddNodeResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIAddNodeResponse) StatusCode ¶
func (r ExternalClusterAPIAddNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPICreateAssumeRolePrincipalResponse ¶
type ExternalClusterAPICreateAssumeRolePrincipalResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1CreateAssumeRolePrincipalResponse
}
func ParseExternalClusterAPICreateAssumeRolePrincipalResponse ¶
func ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)
ParseExternalClusterAPICreateAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPICreateAssumeRolePrincipalWithResponse call
func (ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody ¶
func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPICreateAssumeRolePrincipalResponse) Status ¶
func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode ¶
func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPICreateClusterTokenResponse ¶
type ExternalClusterAPICreateClusterTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1CreateClusterTokenResponse
}
func ParseExternalClusterAPICreateClusterTokenResponse ¶
func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*ExternalClusterAPICreateClusterTokenResponse, error)
ParseExternalClusterAPICreateClusterTokenResponse parses an HTTP response from a ExternalClusterAPICreateClusterTokenWithResponse call
func (ExternalClusterAPICreateClusterTokenResponse) GetBody ¶
func (r ExternalClusterAPICreateClusterTokenResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPICreateClusterTokenResponse) Status ¶
func (r ExternalClusterAPICreateClusterTokenResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPICreateClusterTokenResponse) StatusCode ¶
func (r ExternalClusterAPICreateClusterTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDeleteAssumeRolePrincipalResponse ¶
type ExternalClusterAPIDeleteAssumeRolePrincipalResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1DeleteAssumeRolePrincipalResponse
}
func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse ¶
func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)
ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse call
func (ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody ¶
func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status ¶
func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode ¶
func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDeleteClusterResponse ¶
func ParseExternalClusterAPIDeleteClusterResponse ¶
func ParseExternalClusterAPIDeleteClusterResponse(rsp *http.Response) (*ExternalClusterAPIDeleteClusterResponse, error)
ParseExternalClusterAPIDeleteClusterResponse parses an HTTP response from a ExternalClusterAPIDeleteClusterWithResponse call
func (ExternalClusterAPIDeleteClusterResponse) GetBody ¶
func (r ExternalClusterAPIDeleteClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDeleteClusterResponse) Status ¶
func (r ExternalClusterAPIDeleteClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDeleteClusterResponse) StatusCode ¶
func (r ExternalClusterAPIDeleteClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDeleteNodeParams ¶
type ExternalClusterAPIDeleteNodeParams struct {
// DrainTimeout Node drain timeout in seconds. Defaults to 600s if not set.
DrainTimeout *string `form:"drainTimeout,omitempty" json:"drainTimeout,omitempty"`
// ForceDelete If set to true, node will be deleted even if node fails to be drained gracefully.
ForceDelete *bool `form:"forceDelete,omitempty" json:"forceDelete,omitempty"`
}
ExternalClusterAPIDeleteNodeParams defines parameters for ExternalClusterAPIDeleteNode.
type ExternalClusterAPIDeleteNodeResponse ¶
type ExternalClusterAPIDeleteNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1DeleteNodeResponse
}
func ParseExternalClusterAPIDeleteNodeResponse ¶
func ParseExternalClusterAPIDeleteNodeResponse(rsp *http.Response) (*ExternalClusterAPIDeleteNodeResponse, error)
ParseExternalClusterAPIDeleteNodeResponse parses an HTTP response from a ExternalClusterAPIDeleteNodeWithResponse call
func (ExternalClusterAPIDeleteNodeResponse) GetBody ¶
func (r ExternalClusterAPIDeleteNodeResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDeleteNodeResponse) Status ¶
func (r ExternalClusterAPIDeleteNodeResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDeleteNodeResponse) StatusCode ¶
func (r ExternalClusterAPIDeleteNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDisableGCPSAResponse ¶ added in v0.58.1
type ExternalClusterAPIDisableGCPSAResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1DisableGCPSAResponse
}
func ParseExternalClusterAPIDisableGCPSAResponse ¶ added in v0.58.1
func ParseExternalClusterAPIDisableGCPSAResponse(rsp *http.Response) (*ExternalClusterAPIDisableGCPSAResponse, error)
ParseExternalClusterAPIDisableGCPSAResponse parses an HTTP response from a ExternalClusterAPIDisableGCPSAWithResponse call
func (ExternalClusterAPIDisableGCPSAResponse) GetBody ¶ added in v0.58.1
func (r ExternalClusterAPIDisableGCPSAResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDisableGCPSAResponse) Status ¶ added in v0.58.1
func (r ExternalClusterAPIDisableGCPSAResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDisableGCPSAResponse) StatusCode ¶ added in v0.58.1
func (r ExternalClusterAPIDisableGCPSAResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDisableGKESAResponse ¶
type ExternalClusterAPIDisableGKESAResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1DisableGKESAResponse
}
func ParseExternalClusterAPIDisableGKESAResponse ¶
func ParseExternalClusterAPIDisableGKESAResponse(rsp *http.Response) (*ExternalClusterAPIDisableGKESAResponse, error)
ParseExternalClusterAPIDisableGKESAResponse parses an HTTP response from a ExternalClusterAPIDisableGKESAWithResponse call
func (ExternalClusterAPIDisableGKESAResponse) GetBody ¶
func (r ExternalClusterAPIDisableGKESAResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDisableGKESAResponse) Status ¶
func (r ExternalClusterAPIDisableGKESAResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDisableGKESAResponse) StatusCode ¶
func (r ExternalClusterAPIDisableGKESAResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDisconnectClusterJSONRequestBody ¶
type ExternalClusterAPIDisconnectClusterJSONRequestBody = ExternalclusterV1DisconnectConfig
ExternalClusterAPIDisconnectClusterJSONRequestBody defines body for ExternalClusterAPIDisconnectCluster for application/json ContentType.
type ExternalClusterAPIDisconnectClusterResponse ¶
type ExternalClusterAPIDisconnectClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1Cluster
}
func ParseExternalClusterAPIDisconnectClusterResponse ¶
func ParseExternalClusterAPIDisconnectClusterResponse(rsp *http.Response) (*ExternalClusterAPIDisconnectClusterResponse, error)
ParseExternalClusterAPIDisconnectClusterResponse parses an HTTP response from a ExternalClusterAPIDisconnectClusterWithResponse call
func (ExternalClusterAPIDisconnectClusterResponse) GetBody ¶
func (r ExternalClusterAPIDisconnectClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDisconnectClusterResponse) Status ¶
func (r ExternalClusterAPIDisconnectClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDisconnectClusterResponse) StatusCode ¶
func (r ExternalClusterAPIDisconnectClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIDrainNodeJSONRequestBody ¶
type ExternalClusterAPIDrainNodeJSONRequestBody = ExternalclusterV1DrainConfig
ExternalClusterAPIDrainNodeJSONRequestBody defines body for ExternalClusterAPIDrainNode for application/json ContentType.
type ExternalClusterAPIDrainNodeResponse ¶
type ExternalClusterAPIDrainNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1DrainNodeResponse
}
func ParseExternalClusterAPIDrainNodeResponse ¶
func ParseExternalClusterAPIDrainNodeResponse(rsp *http.Response) (*ExternalClusterAPIDrainNodeResponse, error)
ParseExternalClusterAPIDrainNodeResponse parses an HTTP response from a ExternalClusterAPIDrainNodeWithResponse call
func (ExternalClusterAPIDrainNodeResponse) GetBody ¶
func (r ExternalClusterAPIDrainNodeResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIDrainNodeResponse) Status ¶
func (r ExternalClusterAPIDrainNodeResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIDrainNodeResponse) StatusCode ¶
func (r ExternalClusterAPIDrainNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGCPCreateSAJSONRequestBody ¶ added in v0.58.1
type ExternalClusterAPIGCPCreateSAJSONRequestBody = ExternalClusterAPIGCPCreateSARequest
ExternalClusterAPIGCPCreateSAJSONRequestBody defines body for ExternalClusterAPIGCPCreateSA for application/json ContentType.
type ExternalClusterAPIGCPCreateSARequest ¶ added in v0.58.1
type ExternalClusterAPIGCPCreateSARequest struct {
// Aks AKSClusterParams is a placeholder for future use.
Aks *ExternalclusterV1GCPCreateSARequestAKSClusterParams `json:"aks,omitempty"`
// Gke UpdateGKEClusterParams defines updatable GKE cluster configuration.
Gke *ExternalclusterV1UpdateGKEClusterParams `json:"gke,omitempty"`
}
ExternalClusterAPIGCPCreateSARequest defines model for ExternalClusterAPI_GCPCreateSA_request.
type ExternalClusterAPIGCPCreateSAResponse ¶ added in v0.58.1
type ExternalClusterAPIGCPCreateSAResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GCPCreateSAResponse
}
func ParseExternalClusterAPIGCPCreateSAResponse ¶ added in v0.58.1
func ParseExternalClusterAPIGCPCreateSAResponse(rsp *http.Response) (*ExternalClusterAPIGCPCreateSAResponse, error)
ParseExternalClusterAPIGCPCreateSAResponse parses an HTTP response from a ExternalClusterAPIGCPCreateSAWithResponse call
func (ExternalClusterAPIGCPCreateSAResponse) GetBody ¶ added in v0.58.1
func (r ExternalClusterAPIGCPCreateSAResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGCPCreateSAResponse) Status ¶ added in v0.58.1
func (r ExternalClusterAPIGCPCreateSAResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGCPCreateSAResponse) StatusCode ¶ added in v0.58.1
func (r ExternalClusterAPIGCPCreateSAResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGKECreateSAJSONRequestBody ¶
type ExternalClusterAPIGKECreateSAJSONRequestBody = ExternalClusterAPIGKECreateSARequest
ExternalClusterAPIGKECreateSAJSONRequestBody defines body for ExternalClusterAPIGKECreateSA for application/json ContentType.
type ExternalClusterAPIGKECreateSARequest ¶
type ExternalClusterAPIGKECreateSARequest struct {
// Gke UpdateGKEClusterParams defines updatable GKE cluster configuration.
Gke *ExternalclusterV1UpdateGKEClusterParams `json:"gke,omitempty"`
}
ExternalClusterAPIGKECreateSARequest defines model for ExternalClusterAPI_GKECreateSA_request.
type ExternalClusterAPIGKECreateSAResponse ¶
type ExternalClusterAPIGKECreateSAResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GKECreateSAResponse
}
func ParseExternalClusterAPIGKECreateSAResponse ¶
func ParseExternalClusterAPIGKECreateSAResponse(rsp *http.Response) (*ExternalClusterAPIGKECreateSAResponse, error)
ParseExternalClusterAPIGKECreateSAResponse parses an HTTP response from a ExternalClusterAPIGKECreateSAWithResponse call
func (ExternalClusterAPIGKECreateSAResponse) GetBody ¶
func (r ExternalClusterAPIGKECreateSAResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGKECreateSAResponse) Status ¶
func (r ExternalClusterAPIGKECreateSAResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGKECreateSAResponse) StatusCode ¶
func (r ExternalClusterAPIGKECreateSAResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetAssumeRolePrincipalResponse ¶
type ExternalClusterAPIGetAssumeRolePrincipalResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GetAssumeRolePrincipalResponse
}
func ParseExternalClusterAPIGetAssumeRolePrincipalResponse ¶
func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)
ParseExternalClusterAPIGetAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRolePrincipalWithResponse call
func (ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody ¶
func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetAssumeRolePrincipalResponse) Status ¶
func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode ¶
func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetAssumeRoleUserResponse ¶
type ExternalClusterAPIGetAssumeRoleUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GetAssumeRoleUserResponse
}
func ParseExternalClusterAPIGetAssumeRoleUserResponse ¶
func ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)
ParseExternalClusterAPIGetAssumeRoleUserResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRoleUserWithResponse call
func (ExternalClusterAPIGetAssumeRoleUserResponse) GetBody ¶
func (r ExternalClusterAPIGetAssumeRoleUserResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetAssumeRoleUserResponse) Status ¶
func (r ExternalClusterAPIGetAssumeRoleUserResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode ¶
func (r ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetCleanupScriptResponse ¶
type ExternalClusterAPIGetCleanupScriptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GetCleanupScriptResponse
}
func ParseExternalClusterAPIGetCleanupScriptResponse ¶
func ParseExternalClusterAPIGetCleanupScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptResponse, error)
ParseExternalClusterAPIGetCleanupScriptResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptWithResponse call
func (ExternalClusterAPIGetCleanupScriptResponse) GetBody ¶
func (r ExternalClusterAPIGetCleanupScriptResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetCleanupScriptResponse) Status ¶
func (r ExternalClusterAPIGetCleanupScriptResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetCleanupScriptResponse) StatusCode ¶
func (r ExternalClusterAPIGetCleanupScriptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetCleanupScriptTemplateResponse ¶
type ExternalClusterAPIGetCleanupScriptTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
}
func ParseExternalClusterAPIGetCleanupScriptTemplateResponse ¶
func ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)
ParseExternalClusterAPIGetCleanupScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptTemplateWithResponse call
func (ExternalClusterAPIGetCleanupScriptTemplateResponse) GetBody ¶
func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetCleanupScriptTemplateResponse) Status ¶
func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode ¶
func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetClusterResponse ¶
type ExternalClusterAPIGetClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1Cluster
}
func ParseExternalClusterAPIGetClusterResponse ¶
func ParseExternalClusterAPIGetClusterResponse(rsp *http.Response) (*ExternalClusterAPIGetClusterResponse, error)
ParseExternalClusterAPIGetClusterResponse parses an HTTP response from a ExternalClusterAPIGetClusterWithResponse call
func (ExternalClusterAPIGetClusterResponse) GetBody ¶
func (r ExternalClusterAPIGetClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetClusterResponse) Status ¶
func (r ExternalClusterAPIGetClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetClusterResponse) StatusCode ¶
func (r ExternalClusterAPIGetClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetConnectAndEnableCASTAICmdParams ¶ added in v0.62.0
type ExternalClusterAPIGetConnectAndEnableCASTAICmdParams struct {
// ClusterName Customer cluster name.
ClusterName *string `form:"clusterName,omitempty" json:"clusterName,omitempty"`
// Provider Provider: eks, gke, aks, etc.
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
// NvidiaDevicePlugin Whether NVIDIA device plugin DaemonSet should be installed during Phase 2 on-boarding.
NvidiaDevicePlugin *bool `form:"nvidiaDevicePlugin,omitempty" json:"nvidiaDevicePlugin,omitempty"`
// InstallSecurityAgent Whether CAST AI Security Insights agent should be installed.
InstallSecurityAgent *bool `form:"installSecurityAgent,omitempty" json:"installSecurityAgent,omitempty"`
// InstallAutoscalerAgent Whether CAST AI Autoscaler components should be installed.
// To enable backwards compatibility, when the field is omitted, it is defaulted to true.
InstallAutoscalerAgent *bool `form:"installAutoscalerAgent,omitempty" json:"installAutoscalerAgent,omitempty"`
// InstallGpuMetricsExporter Whether CAST AI GPU metrics exporter should be installed.
InstallGpuMetricsExporter *bool `form:"installGpuMetricsExporter,omitempty" json:"installGpuMetricsExporter,omitempty"`
// InstallAiOptimizerProxy Whether CAST AI AI-Optimizer Proxy should be installed.
InstallAiOptimizerProxy *bool `form:"installAiOptimizerProxy,omitempty" json:"installAiOptimizerProxy,omitempty"`
// GcpSaImpersonate Whether GCP SA Impersonate feature should be enabled.
GcpSaImpersonate *bool `form:"gcpSaImpersonate,omitempty" json:"gcpSaImpersonate,omitempty"`
// InstallNetflowExporter Whether Netflow network exporter should be installed.
InstallNetflowExporter *bool `form:"installNetflowExporter,omitempty" json:"installNetflowExporter,omitempty"`
// InstallWorkloadAutoscaler Whether CAST AI Workload Autoscaler should be installed.
InstallWorkloadAutoscaler *bool `form:"installWorkloadAutoscaler,omitempty" json:"installWorkloadAutoscaler,omitempty"`
// InstallPodMutator Whether CAST AI Pod Mutator should be installed.
InstallPodMutator *bool `form:"installPodMutator,omitempty" json:"installPodMutator,omitempty"`
// InstallOmni Whether cluster should be onboarded with CAST AI Omni.
InstallOmni *bool `form:"installOmni,omitempty" json:"installOmni,omitempty"`
// InstallOperator Whether cluster should be onboarded with Castware Operator.
InstallOperator *bool `form:"installOperator,omitempty" json:"installOperator,omitempty"`
}
ExternalClusterAPIGetConnectAndEnableCASTAICmdParams defines parameters for ExternalClusterAPIGetConnectAndEnableCASTAICmd.
type ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse ¶ added in v0.62.0
type ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GetConnectAndEnableCASTAICmdResponse
}
func ParseExternalClusterAPIGetConnectAndEnableCASTAICmdResponse ¶ added in v0.62.0
func ParseExternalClusterAPIGetConnectAndEnableCASTAICmdResponse(rsp *http.Response) (*ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse, error)
ParseExternalClusterAPIGetConnectAndEnableCASTAICmdResponse parses an HTTP response from a ExternalClusterAPIGetConnectAndEnableCASTAICmdWithResponse call
func (ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse) GetBody ¶ added in v0.62.0
func (r ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse) Status ¶ added in v0.62.0
func (r ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse) StatusCode ¶ added in v0.62.0
func (r ExternalClusterAPIGetConnectAndEnableCASTAICmdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse ¶ added in v0.62.0
type ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GoogleApiHttpBody
}
func ParseExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse ¶ added in v0.62.0
func ParseExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse, error)
ParseExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse parses an HTTP response from a ExternalClusterAPIGetConnectAndEnableCASTAIScriptWithResponse call
func (ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse) GetBody ¶ added in v0.62.0
func (r ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse) Status ¶ added in v0.62.0
func (r ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse) StatusCode ¶ added in v0.62.0
func (r ExternalClusterAPIGetConnectAndEnableCASTAIScriptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetCredentialsScriptParams ¶
type ExternalClusterAPIGetCredentialsScriptParams struct {
// CrossRole Whether an AWS CrossRole should be used for authentication.
CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"`
// NvidiaDevicePlugin Whether NVIDIA device plugin DaemonSet should be installed during Phase 2 on-boarding.
NvidiaDevicePlugin *bool `form:"nvidiaDevicePlugin,omitempty" json:"nvidiaDevicePlugin,omitempty"`
// InstallSecurityAgent Whether CAST AI Security Insights agent should be installed.
InstallSecurityAgent *bool `form:"installSecurityAgent,omitempty" json:"installSecurityAgent,omitempty"`
// InstallAutoscalerAgent Whether CAST AI Autoscaler components should be installed.
// To enable backwards compatibility, when the field is omitted, it is defaulted to true.
InstallAutoscalerAgent *bool `form:"installAutoscalerAgent,omitempty" json:"installAutoscalerAgent,omitempty"`
// InstallGpuMetricsExporter Whether CAST AI GPU metrics exporter should be installed.
InstallGpuMetricsExporter *bool `form:"installGpuMetricsExporter,omitempty" json:"installGpuMetricsExporter,omitempty"`
// InstallAiOptimizerProxy Whether CAST AI AI-Optimizer Proxy should be installed.
InstallAiOptimizerProxy *bool `form:"installAiOptimizerProxy,omitempty" json:"installAiOptimizerProxy,omitempty"`
// GcpSaImpersonate Whether GCP SA Impersonate feature should be enabled.
GcpSaImpersonate *bool `form:"gcpSaImpersonate,omitempty" json:"gcpSaImpersonate,omitempty"`
// InstallNetflowExporter Whether Netflow network exporter should be installed.
InstallNetflowExporter *bool `form:"installNetflowExporter,omitempty" json:"installNetflowExporter,omitempty"`
// InstallWorkloadAutoscaler Whether CAST AI Workload Autoscaler should be installed.
InstallWorkloadAutoscaler *bool `form:"installWorkloadAutoscaler,omitempty" json:"installWorkloadAutoscaler,omitempty"`
// InstallPodMutator Whether CAST AI Pod Mutator should be installed.
InstallPodMutator *bool `form:"installPodMutator,omitempty" json:"installPodMutator,omitempty"`
// InstallOmni Whether cluster should be onboarded with CAST AI Omni.
InstallOmni *bool `form:"installOmni,omitempty" json:"installOmni,omitempty"`
// GcpPsc Whether the cluster is connected via GCP Private Service Connect
GcpPsc *bool `form:"gcpPsc,omitempty" json:"gcpPsc,omitempty"`
// InstallKent Whether to install kent
InstallKent *bool `form:"installKent,omitempty" json:"installKent,omitempty"`
// KentParams Params for kent installation
KentParams *[]ExternalClusterAPIGetCredentialsScriptParamsKentParams `form:"kentParams,omitempty" json:"kentParams,omitempty"`
// InstallOperator Whether to install the Operator.
InstallOperator *bool `form:"installOperator,omitempty" json:"installOperator,omitempty"`
}
ExternalClusterAPIGetCredentialsScriptParams defines parameters for ExternalClusterAPIGetCredentialsScript.
type ExternalClusterAPIGetCredentialsScriptParamsKentParams ¶ added in v0.62.0
type ExternalClusterAPIGetCredentialsScriptParamsKentParams string
ExternalClusterAPIGetCredentialsScriptParamsKentParams defines parameters for ExternalClusterAPIGetCredentialsScript.
const ( EnableRebalancing ExternalClusterAPIGetCredentialsScriptParamsKentParams = "enable_rebalancing" EnableSpotInterruptionPrediction ExternalClusterAPIGetCredentialsScriptParamsKentParams = "enable_spot_interruption_prediction" InstallEvictor ExternalClusterAPIGetCredentialsScriptParamsKentParams = "install_evictor" )
Defines values for ExternalClusterAPIGetCredentialsScriptParamsKentParams.
type ExternalClusterAPIGetCredentialsScriptResponse ¶
type ExternalClusterAPIGetCredentialsScriptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GetCredentialsScriptResponse
}
func ParseExternalClusterAPIGetCredentialsScriptResponse ¶
func ParseExternalClusterAPIGetCredentialsScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptResponse, error)
ParseExternalClusterAPIGetCredentialsScriptResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptWithResponse call
func (ExternalClusterAPIGetCredentialsScriptResponse) GetBody ¶
func (r ExternalClusterAPIGetCredentialsScriptResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetCredentialsScriptResponse) Status ¶
func (r ExternalClusterAPIGetCredentialsScriptResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetCredentialsScriptResponse) StatusCode ¶
func (r ExternalClusterAPIGetCredentialsScriptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetCredentialsScriptTemplateParams ¶
type ExternalClusterAPIGetCredentialsScriptTemplateParams struct {
CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"`
}
ExternalClusterAPIGetCredentialsScriptTemplateParams defines parameters for ExternalClusterAPIGetCredentialsScriptTemplate.
type ExternalClusterAPIGetCredentialsScriptTemplateResponse ¶
type ExternalClusterAPIGetCredentialsScriptTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
}
func ParseExternalClusterAPIGetCredentialsScriptTemplateResponse ¶
func ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)
ParseExternalClusterAPIGetCredentialsScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptTemplateWithResponse call
func (ExternalClusterAPIGetCredentialsScriptTemplateResponse) GetBody ¶
func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status ¶
func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetCredentialsScriptTemplateResponse) StatusCode ¶
func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetListNodesFiltersResponse ¶
type ExternalClusterAPIGetListNodesFiltersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1GetListNodesFiltersResponse
}
func ParseExternalClusterAPIGetListNodesFiltersResponse ¶
func ParseExternalClusterAPIGetListNodesFiltersResponse(rsp *http.Response) (*ExternalClusterAPIGetListNodesFiltersResponse, error)
ParseExternalClusterAPIGetListNodesFiltersResponse parses an HTTP response from a ExternalClusterAPIGetListNodesFiltersWithResponse call
func (ExternalClusterAPIGetListNodesFiltersResponse) GetBody ¶
func (r ExternalClusterAPIGetListNodesFiltersResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetListNodesFiltersResponse) Status ¶
func (r ExternalClusterAPIGetListNodesFiltersResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetListNodesFiltersResponse) StatusCode ¶
func (r ExternalClusterAPIGetListNodesFiltersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIGetNodeResponse ¶
type ExternalClusterAPIGetNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1Node
}
func ParseExternalClusterAPIGetNodeResponse ¶
func ParseExternalClusterAPIGetNodeResponse(rsp *http.Response) (*ExternalClusterAPIGetNodeResponse, error)
ParseExternalClusterAPIGetNodeResponse parses an HTTP response from a ExternalClusterAPIGetNodeWithResponse call
func (ExternalClusterAPIGetNodeResponse) GetBody ¶
func (r ExternalClusterAPIGetNodeResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIGetNodeResponse) Status ¶
func (r ExternalClusterAPIGetNodeResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIGetNodeResponse) StatusCode ¶
func (r ExternalClusterAPIGetNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIHandleCloudEventJSONRequestBody ¶
type ExternalClusterAPIHandleCloudEventJSONRequestBody = ExternalclusterV1CloudEvent
ExternalClusterAPIHandleCloudEventJSONRequestBody defines body for ExternalClusterAPIHandleCloudEvent for application/json ContentType.
type ExternalClusterAPIHandleCloudEventResponse ¶
type ExternalClusterAPIHandleCloudEventResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1HandleCloudEventResponse
}
func ParseExternalClusterAPIHandleCloudEventResponse ¶
func ParseExternalClusterAPIHandleCloudEventResponse(rsp *http.Response) (*ExternalClusterAPIHandleCloudEventResponse, error)
ParseExternalClusterAPIHandleCloudEventResponse parses an HTTP response from a ExternalClusterAPIHandleCloudEventWithResponse call
func (ExternalClusterAPIHandleCloudEventResponse) GetBody ¶
func (r ExternalClusterAPIHandleCloudEventResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIHandleCloudEventResponse) Status ¶
func (r ExternalClusterAPIHandleCloudEventResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIHandleCloudEventResponse) StatusCode ¶
func (r ExternalClusterAPIHandleCloudEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIImpersonationServiceAccountJSONRequestBody ¶ added in v0.62.0
type ExternalClusterAPIImpersonationServiceAccountJSONRequestBody = ExternalclusterV1ImpersonationServiceAccountRequest
ExternalClusterAPIImpersonationServiceAccountJSONRequestBody defines body for ExternalClusterAPIImpersonationServiceAccount for application/json ContentType.
type ExternalClusterAPIImpersonationServiceAccountResponse ¶ added in v0.62.0
type ExternalClusterAPIImpersonationServiceAccountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1ImpersonationServiceAccountResponse
}
func ParseExternalClusterAPIImpersonationServiceAccountResponse ¶ added in v0.62.0
func ParseExternalClusterAPIImpersonationServiceAccountResponse(rsp *http.Response) (*ExternalClusterAPIImpersonationServiceAccountResponse, error)
ParseExternalClusterAPIImpersonationServiceAccountResponse parses an HTTP response from a ExternalClusterAPIImpersonationServiceAccountWithResponse call
func (ExternalClusterAPIImpersonationServiceAccountResponse) GetBody ¶ added in v0.62.0
func (r ExternalClusterAPIImpersonationServiceAccountResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIImpersonationServiceAccountResponse) Status ¶ added in v0.62.0
func (r ExternalClusterAPIImpersonationServiceAccountResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIImpersonationServiceAccountResponse) StatusCode ¶ added in v0.62.0
func (r ExternalClusterAPIImpersonationServiceAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIIngestInstanceLogsJSONRequestBody ¶ added in v0.62.0
type ExternalClusterAPIIngestInstanceLogsJSONRequestBody = ExternalclusterV1NodeLogs
ExternalClusterAPIIngestInstanceLogsJSONRequestBody defines body for ExternalClusterAPIIngestInstanceLogs for application/json ContentType.
type ExternalClusterAPIIngestInstanceLogsResponse ¶ added in v0.62.0
type ExternalClusterAPIIngestInstanceLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1IngestInstanceLogsResponse
}
func ParseExternalClusterAPIIngestInstanceLogsResponse ¶ added in v0.62.0
func ParseExternalClusterAPIIngestInstanceLogsResponse(rsp *http.Response) (*ExternalClusterAPIIngestInstanceLogsResponse, error)
ParseExternalClusterAPIIngestInstanceLogsResponse parses an HTTP response from a ExternalClusterAPIIngestInstanceLogsWithResponse call
func (ExternalClusterAPIIngestInstanceLogsResponse) GetBody ¶ added in v0.62.0
func (r ExternalClusterAPIIngestInstanceLogsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIIngestInstanceLogsResponse) Status ¶ added in v0.62.0
func (r ExternalClusterAPIIngestInstanceLogsResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIIngestInstanceLogsResponse) StatusCode ¶ added in v0.62.0
func (r ExternalClusterAPIIngestInstanceLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIListClustersResponse ¶
type ExternalClusterAPIListClustersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1ListClustersResponse
}
func ParseExternalClusterAPIListClustersResponse ¶
func ParseExternalClusterAPIListClustersResponse(rsp *http.Response) (*ExternalClusterAPIListClustersResponse, error)
ParseExternalClusterAPIListClustersResponse parses an HTTP response from a ExternalClusterAPIListClustersWithResponse call
func (ExternalClusterAPIListClustersResponse) GetBody ¶
func (r ExternalClusterAPIListClustersResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIListClustersResponse) Status ¶
func (r ExternalClusterAPIListClustersResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIListClustersResponse) StatusCode ¶
func (r ExternalClusterAPIListClustersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIListNodesParams ¶
type ExternalClusterAPIListNodesParams struct {
PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"`
// PageCursor Cursor that defines token indicating where to start the next page.
// Empty value indicates to start from beginning of the dataset.
PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"`
NodeId *string `form:"nodeId,omitempty" json:"nodeId,omitempty"`
NodeStatus *ExternalClusterAPIListNodesParamsNodeStatus `form:"nodeStatus,omitempty" json:"nodeStatus,omitempty"`
InstanceType *string `form:"instanceType,omitempty" json:"instanceType,omitempty"`
LifecycleType *ExternalClusterAPIListNodesParamsLifecycleType `form:"lifecycleType,omitempty" json:"lifecycleType,omitempty"`
RemovalDisabled *bool `form:"removalDisabled,omitempty" json:"removalDisabled,omitempty"`
Unschedulable *bool `form:"unschedulable,omitempty" json:"unschedulable,omitempty"`
Zone *string `form:"zone,omitempty" json:"zone,omitempty"`
NodeConfigurationName *string `form:"nodeConfigurationName,omitempty" json:"nodeConfigurationName,omitempty"`
NodeConfigurationVersion *string `form:"nodeConfigurationVersion,omitempty" json:"nodeConfigurationVersion,omitempty"`
NodeTemplateName *string `form:"nodeTemplateName,omitempty" json:"nodeTemplateName,omitempty"`
NodeTemplateVersion *string `form:"nodeTemplateVersion,omitempty" json:"nodeTemplateVersion,omitempty"`
NodeName *string `form:"nodeName,omitempty" json:"nodeName,omitempty"`
ExcludeDeleting *bool `form:"excludeDeleting,omitempty" json:"excludeDeleting,omitempty"`
}
ExternalClusterAPIListNodesParams defines parameters for ExternalClusterAPIListNodes.
type ExternalClusterAPIListNodesParamsLifecycleType ¶
type ExternalClusterAPIListNodesParamsLifecycleType string
ExternalClusterAPIListNodesParamsLifecycleType defines parameters for ExternalClusterAPIListNodes.
const ( Fallback ExternalClusterAPIListNodesParamsLifecycleType = "fallback" LifecycleTypeUnspecified ExternalClusterAPIListNodesParamsLifecycleType = "lifecycle_type_unspecified" OnDemand ExternalClusterAPIListNodesParamsLifecycleType = "on_demand" Spot ExternalClusterAPIListNodesParamsLifecycleType = "spot" )
Defines values for ExternalClusterAPIListNodesParamsLifecycleType.
type ExternalClusterAPIListNodesParamsNodeStatus ¶
type ExternalClusterAPIListNodesParamsNodeStatus string
ExternalClusterAPIListNodesParamsNodeStatus defines parameters for ExternalClusterAPIListNodes.
const ( Cordoned ExternalClusterAPIListNodesParamsNodeStatus = "cordoned" Creating ExternalClusterAPIListNodesParamsNodeStatus = "creating" Deleted ExternalClusterAPIListNodesParamsNodeStatus = "deleted" Deleting ExternalClusterAPIListNodesParamsNodeStatus = "deleting" Draining ExternalClusterAPIListNodesParamsNodeStatus = "draining" Interrupted ExternalClusterAPIListNodesParamsNodeStatus = "interrupted" NodeStatusUnspecified ExternalClusterAPIListNodesParamsNodeStatus = "node_status_unspecified" NotReady ExternalClusterAPIListNodesParamsNodeStatus = "not_ready" Pending ExternalClusterAPIListNodesParamsNodeStatus = "pending" Ready ExternalClusterAPIListNodesParamsNodeStatus = "ready" Unknown ExternalClusterAPIListNodesParamsNodeStatus = "unknown" )
Defines values for ExternalClusterAPIListNodesParamsNodeStatus.
type ExternalClusterAPIListNodesResponse ¶
type ExternalClusterAPIListNodesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1ListNodesResponse
}
func ParseExternalClusterAPIListNodesResponse ¶
func ParseExternalClusterAPIListNodesResponse(rsp *http.Response) (*ExternalClusterAPIListNodesResponse, error)
ParseExternalClusterAPIListNodesResponse parses an HTTP response from a ExternalClusterAPIListNodesWithResponse call
func (ExternalClusterAPIListNodesResponse) GetBody ¶
func (r ExternalClusterAPIListNodesResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIListNodesResponse) Status ¶
func (r ExternalClusterAPIListNodesResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIListNodesResponse) StatusCode ¶
func (r ExternalClusterAPIListNodesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIReconcileClusterParams ¶ added in v0.58.1
type ExternalClusterAPIReconcileClusterParams struct {
// SkipAksInitData Whether to skip AKS refresh of instance-template.
SkipAksInitData *bool `form:"skipAksInitData,omitempty" json:"skipAksInitData,omitempty"`
}
ExternalClusterAPIReconcileClusterParams defines parameters for ExternalClusterAPIReconcileCluster.
type ExternalClusterAPIReconcileClusterResponse ¶
type ExternalClusterAPIReconcileClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1ReconcileClusterResponse
}
func ParseExternalClusterAPIReconcileClusterResponse ¶
func ParseExternalClusterAPIReconcileClusterResponse(rsp *http.Response) (*ExternalClusterAPIReconcileClusterResponse, error)
ParseExternalClusterAPIReconcileClusterResponse parses an HTTP response from a ExternalClusterAPIReconcileClusterWithResponse call
func (ExternalClusterAPIReconcileClusterResponse) GetBody ¶
func (r ExternalClusterAPIReconcileClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIReconcileClusterResponse) Status ¶
func (r ExternalClusterAPIReconcileClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIReconcileClusterResponse) StatusCode ¶
func (r ExternalClusterAPIReconcileClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIRegisterClusterJSONRequestBody ¶
type ExternalClusterAPIRegisterClusterJSONRequestBody = ExternalclusterV1RegisterClusterRequest
ExternalClusterAPIRegisterClusterJSONRequestBody defines body for ExternalClusterAPIRegisterCluster for application/json ContentType.
type ExternalClusterAPIRegisterClusterResponse ¶
type ExternalClusterAPIRegisterClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1Cluster
}
func ParseExternalClusterAPIRegisterClusterResponse ¶
func ParseExternalClusterAPIRegisterClusterResponse(rsp *http.Response) (*ExternalClusterAPIRegisterClusterResponse, error)
ParseExternalClusterAPIRegisterClusterResponse parses an HTTP response from a ExternalClusterAPIRegisterClusterWithResponse call
func (ExternalClusterAPIRegisterClusterResponse) GetBody ¶
func (r ExternalClusterAPIRegisterClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIRegisterClusterResponse) Status ¶
func (r ExternalClusterAPIRegisterClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIRegisterClusterResponse) StatusCode ¶
func (r ExternalClusterAPIRegisterClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPITriggerHibernateClusterResponse ¶
type ExternalClusterAPITriggerHibernateClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1TriggerHibernateClusterResponse
}
func ParseExternalClusterAPITriggerHibernateClusterResponse ¶
func ParseExternalClusterAPITriggerHibernateClusterResponse(rsp *http.Response) (*ExternalClusterAPITriggerHibernateClusterResponse, error)
ParseExternalClusterAPITriggerHibernateClusterResponse parses an HTTP response from a ExternalClusterAPITriggerHibernateClusterWithResponse call
func (ExternalClusterAPITriggerHibernateClusterResponse) GetBody ¶
func (r ExternalClusterAPITriggerHibernateClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPITriggerHibernateClusterResponse) Status ¶
func (r ExternalClusterAPITriggerHibernateClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPITriggerHibernateClusterResponse) StatusCode ¶
func (r ExternalClusterAPITriggerHibernateClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPITriggerResumeClusterJSONRequestBody ¶
type ExternalClusterAPITriggerResumeClusterJSONRequestBody = ExternalclusterV1NodeConfig
ExternalClusterAPITriggerResumeClusterJSONRequestBody defines body for ExternalClusterAPITriggerResumeCluster for application/json ContentType.
type ExternalClusterAPITriggerResumeClusterResponse ¶
type ExternalClusterAPITriggerResumeClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1TriggerResumeClusterResponse
}
func ParseExternalClusterAPITriggerResumeClusterResponse ¶
func ParseExternalClusterAPITriggerResumeClusterResponse(rsp *http.Response) (*ExternalClusterAPITriggerResumeClusterResponse, error)
ParseExternalClusterAPITriggerResumeClusterResponse parses an HTTP response from a ExternalClusterAPITriggerResumeClusterWithResponse call
func (ExternalClusterAPITriggerResumeClusterResponse) GetBody ¶
func (r ExternalClusterAPITriggerResumeClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPITriggerResumeClusterResponse) Status ¶
func (r ExternalClusterAPITriggerResumeClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPITriggerResumeClusterResponse) StatusCode ¶
func (r ExternalClusterAPITriggerResumeClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIUpdateClusterJSONRequestBody ¶
type ExternalClusterAPIUpdateClusterJSONRequestBody = ExternalclusterV1ClusterUpdate
ExternalClusterAPIUpdateClusterJSONRequestBody defines body for ExternalClusterAPIUpdateCluster for application/json ContentType.
type ExternalClusterAPIUpdateClusterResponse ¶
type ExternalClusterAPIUpdateClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1Cluster
}
func ParseExternalClusterAPIUpdateClusterResponse ¶
func ParseExternalClusterAPIUpdateClusterResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterResponse, error)
ParseExternalClusterAPIUpdateClusterResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterWithResponse call
func (ExternalClusterAPIUpdateClusterResponse) GetBody ¶
func (r ExternalClusterAPIUpdateClusterResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIUpdateClusterResponse) Status ¶
func (r ExternalClusterAPIUpdateClusterResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIUpdateClusterResponse) StatusCode ¶
func (r ExternalClusterAPIUpdateClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalClusterAPIUpdateClusterTagsJSONBody ¶
ExternalClusterAPIUpdateClusterTagsJSONBody defines parameters for ExternalClusterAPIUpdateClusterTags.
type ExternalClusterAPIUpdateClusterTagsJSONRequestBody ¶
type ExternalClusterAPIUpdateClusterTagsJSONRequestBody ExternalClusterAPIUpdateClusterTagsJSONBody
ExternalClusterAPIUpdateClusterTagsJSONRequestBody defines body for ExternalClusterAPIUpdateClusterTags for application/json ContentType.
type ExternalClusterAPIUpdateClusterTagsResponse ¶
type ExternalClusterAPIUpdateClusterTagsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalclusterV1UpdateClusterTagsResponse
}
func ParseExternalClusterAPIUpdateClusterTagsResponse ¶
func ParseExternalClusterAPIUpdateClusterTagsResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterTagsResponse, error)
ParseExternalClusterAPIUpdateClusterTagsResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterTagsWithResponse call
func (ExternalClusterAPIUpdateClusterTagsResponse) GetBody ¶
func (r ExternalClusterAPIUpdateClusterTagsResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (ExternalClusterAPIUpdateClusterTagsResponse) Status ¶
func (r ExternalClusterAPIUpdateClusterTagsResponse) Status() string
Status returns HTTPResponse.Status
func (ExternalClusterAPIUpdateClusterTagsResponse) StatusCode ¶
func (r ExternalClusterAPIUpdateClusterTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalclusterV1AKSClusterParams ¶
type ExternalclusterV1AKSClusterParams struct {
// ClusterResourceGroup Azure cluster resource group.
ClusterResourceGroup *string `json:"clusterResourceGroup,omitempty"`
// HttpProxyConfig HttpProxyConfig holds settings when HTTP/S communication is required.
HttpProxyConfig *ExternalclusterV1HttpProxyConfig `json:"httpProxyConfig,omitempty"`
// MaxPodsPerNode Deprecated. This field is no longer updatable and node configuration equivalent should be used.
MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"`
// NetworkPlugin Network plugin in use by the cluster. Can be `kubenet` or `azure`.
NetworkPlugin *string `json:"networkPlugin,omitempty"`
// NodeResourceGroup Node resource group of the cluster.
NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"`
PodCidr *string `json:"podCidr"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
// SubscriptionId Azure subscription ID where cluster runs.
SubscriptionId *string `json:"subscriptionId,omitempty"`
// TenantId Azure tenant id.
TenantId *string `json:"tenantId,omitempty"`
// ZoneNamePattern Zone name pattern in the cluster.
ZoneNamePattern *string `json:"zoneNamePattern,omitempty"`
}
ExternalclusterV1AKSClusterParams AKSClusterParams defines AKS-specific arguments.
type ExternalclusterV1AddNodeResponse ¶
type ExternalclusterV1AddNodeResponse struct {
// NodeId The ID of the node.
NodeId string `json:"nodeId"`
// OperationId Add node operation ID.
OperationId string `json:"operationId"`
}
ExternalclusterV1AddNodeResponse AddNodeResponse is the result of AddNodeRequest.
type ExternalclusterV1AnywhereClusterParams ¶ added in v0.58.1
type ExternalclusterV1AnywhereClusterParams struct {
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
// KubeSystemNamespaceId NamespaceID as unique identifier for the cluster.
KubeSystemNamespaceId string `json:"kubeSystemNamespaceId"`
}
ExternalclusterV1AnywhereClusterParams AnywhereClusterParams defines Anywhere-specific arguments.
type ExternalclusterV1CloudEvent ¶
type ExternalclusterV1CloudEvent struct {
// EventType Event type.
EventType *string `json:"eventType,omitempty"`
// NodeId Cast-assigned node ID.
NodeId *string `json:"nodeId"`
// NodeState Node state.
NodeState *string `json:"nodeState,omitempty"`
// ProviderId ProviderID of the node as assigned by the cloud manager or other process.
ProviderId *string `json:"providerId"`
}
ExternalclusterV1CloudEvent CloudEvent represents a remote event that happened in the cloud, e.g. "node added".
type ExternalclusterV1Cluster ¶
type ExternalclusterV1Cluster struct {
// AgentSnapshotReceivedAt The date agent snapshot was last received.
AgentSnapshotReceivedAt *time.Time `json:"agentSnapshotReceivedAt,omitempty"`
// AgentStatus Agent status.
AgentStatus *string `json:"agentStatus,omitempty"`
// Aks AKSClusterParams defines AKS-specific arguments.
Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"`
// AllRegionZones All available zones in cluster's region.
AllRegionZones *[]ExternalclusterV1Zone `json:"allRegionZones,omitempty"`
// Anywhere AnywhereClusterParams defines Anywhere-specific arguments.
Anywhere *ExternalclusterV1AnywhereClusterParams `json:"anywhere,omitempty"`
// Attributes ClusterAttributes defines cluster attributes.
Attributes *ExternalclusterV1ClusterAttributes `json:"attributes,omitempty"`
// CastwareInstallMethod Method used to install CASTware components.
//
// - CASTWARE_INSTALL_METHOD_UNSPECIFIED: Default value.
// - OPERATOR: CASTware installed via the operator.
CastwareInstallMethod *ExternalclusterV1ClusterCastwareInstallMethod `json:"castwareInstallMethod,omitempty"`
// ClusterNameId User friendly unique cluster identifier.
ClusterNameId *string `json:"clusterNameId,omitempty"`
// CreatedAt The date when cluster was registered.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// CredentialsId The cluster's credentials ID.
CredentialsId *string `json:"credentialsId,omitempty"`
// DeletedAt The date when cluster was deleted.
DeletedAt *time.Time `json:"deletedAt"`
// Eks EKSClusterParams defines EKS-specific arguments.
Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"`
// FirstOperationAt Timestamp when the first operation was performed for a given cluster, which marks when cluster optimisation started by CAST AI.
FirstOperationAt *time.Time `json:"firstOperationAt,omitempty"`
// Gke GKEClusterParams defines GKE-specific arguments.
Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"`
// Id The cluster's ID.
Id *string `json:"id,omitempty"`
// IsPhase2 Indicates if the cluster is in phase 2.
IsPhase2 *bool `json:"isPhase2,omitempty"`
// Kops KOPSClusterParams defines KOPS-specific arguments.
Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"`
KubernetesVersion *string `json:"kubernetesVersion"`
// ManagedBy Method used to onboard the cluster, eg.: console, terraform.
ManagedBy *string `json:"managedBy,omitempty"`
// Name The name of the external cluster.
Name *string `json:"name,omitempty"`
// Oke OKEClusterParams defines OKE -specific arguments.
Oke *ExternalclusterV1OKEClusterParams `json:"oke,omitempty"`
// Openshift OpenShiftClusterParams defines OpenShift-specific arguments.
Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"`
// OrganizationId The cluster's organization ID.
OrganizationId *string `json:"organizationId,omitempty"`
// ProviderNamespaceId Cluster location where cloud provider organizes cloud resources, eg.: GCP project ID, AWS account ID.
ProviderNamespaceId *string `json:"providerNamespaceId,omitempty"`
// ProviderType Cluster cloud provider type.
ProviderType *string `json:"providerType,omitempty"`
// ReconcileError Shows last reconcile error if any.
ReconcileError *string `json:"reconcileError"`
ReconcileInfo *ExternalclusterV1ClusterReconcileInfo `json:"reconcileInfo,omitempty"`
// ReconciledAt Timestamp when the last reconcile was performed.
ReconciledAt *time.Time `json:"reconciledAt"`
// Region Region represents cluster region.
Region *ExternalclusterV1Region `json:"region,omitempty"`
SelfHostedWithEc2Nodes *ExternalclusterV1SelfHostedWithEC2NodesParams `json:"selfHostedWithEc2Nodes,omitempty"`
// SshPublicKey Deprecated. Node configuration equivalent should be used.
SshPublicKey *string `json:"sshPublicKey"`
// Status Current status of the cluster.
Status *string `json:"status,omitempty"`
// Subnets Cluster subnets.
Subnets *[]ExternalclusterV1Subnet `json:"subnets,omitempty"`
Tags *map[string]string `json:"tags,omitempty"`
// Zones Cluster zones.
Zones *[]ExternalclusterV1Zone `json:"zones,omitempty"`
}
ExternalclusterV1Cluster Cluster represents external kubernetes cluster.
type ExternalclusterV1ClusterAttributes ¶ added in v0.62.0
type ExternalclusterV1ClusterAttributes struct {
// Karpenter KarpenterAttribute defines Karpenter-specific attributes.
Karpenter *ExternalclusterV1KarpenterAttribute `json:"karpenter,omitempty"`
// Omni OmniAttribute defines Omni-specific attributes.
Omni *ExternalclusterV1OmniAttribute `json:"omni,omitempty"`
}
ExternalclusterV1ClusterAttributes ClusterAttributes defines cluster attributes.
type ExternalclusterV1ClusterCastwareInstallMethod ¶ added in v0.62.0
type ExternalclusterV1ClusterCastwareInstallMethod string
ExternalclusterV1ClusterCastwareInstallMethod Method used to install CASTware components.
- CASTWARE_INSTALL_METHOD_UNSPECIFIED: Default value.
- OPERATOR: CASTware installed via the operator.
const ( CASTWAREINSTALLMETHODUNSPECIFIED ExternalclusterV1ClusterCastwareInstallMethod = "CASTWARE_INSTALL_METHOD_UNSPECIFIED" OPERATOR ExternalclusterV1ClusterCastwareInstallMethod = "OPERATOR" )
Defines values for ExternalclusterV1ClusterCastwareInstallMethod.
type ExternalclusterV1ClusterReconcileInfo ¶
type ExternalclusterV1ClusterReconcileInfo struct {
// Error Shows last reconcile error if any.
Error *string `json:"error"`
// ErrorCount Number of times the reconcile was retried.
ErrorCount *int32 `json:"errorCount,omitempty"`
// Mode Reconcile mode.
Mode *ExternalclusterV1ClusterReconcileInfoReconcileMode `json:"mode,omitempty"`
// ReconciledAt Timestamp when the last reconcile was performed.
ReconciledAt *time.Time `json:"reconciledAt"`
// RetryAt Timestamp when the reconcile was retried.
RetryAt *time.Time `json:"retryAt"`
// StartedAt Timestamp when the reconcile was started.
StartedAt *time.Time `json:"startedAt"`
// Status Reconcile status.
Status *ExternalclusterV1ClusterReconcileInfoReconcileStatus `json:"status,omitempty"`
}
ExternalclusterV1ClusterReconcileInfo defines model for externalcluster.v1.Cluster.ReconcileInfo.
type ExternalclusterV1ClusterReconcileInfoReconcileMode ¶
type ExternalclusterV1ClusterReconcileInfoReconcileMode string
ExternalclusterV1ClusterReconcileInfoReconcileMode Reconcile mode.
const ( Disabled ExternalclusterV1ClusterReconcileInfoReconcileMode = "disabled" Enabled ExternalclusterV1ClusterReconcileInfoReconcileMode = "enabled" Paused ExternalclusterV1ClusterReconcileInfoReconcileMode = "paused" Unspecified ExternalclusterV1ClusterReconcileInfoReconcileMode = "unspecified" )
Defines values for ExternalclusterV1ClusterReconcileInfoReconcileMode.
type ExternalclusterV1ClusterReconcileInfoReconcileStatus ¶
type ExternalclusterV1ClusterReconcileInfoReconcileStatus string
ExternalclusterV1ClusterReconcileInfoReconcileStatus Reconcile status.
const ( ExternalclusterV1ClusterReconcileInfoReconcileStatusFailed ExternalclusterV1ClusterReconcileInfoReconcileStatus = "failed" ExternalclusterV1ClusterReconcileInfoReconcileStatusOk ExternalclusterV1ClusterReconcileInfoReconcileStatus = "ok" ExternalclusterV1ClusterReconcileInfoReconcileStatusUnknown ExternalclusterV1ClusterReconcileInfoReconcileStatus = "unknown" ExternalclusterV1ClusterReconcileInfoReconcileStatusWarning ExternalclusterV1ClusterReconcileInfoReconcileStatus = "warning" )
Defines values for ExternalclusterV1ClusterReconcileInfoReconcileStatus.
type ExternalclusterV1ClusterUpdate ¶
type ExternalclusterV1ClusterUpdate struct {
// Aks UpdateAKSClusterParams defines updatable AKS cluster configuration.
Aks *ExternalclusterV1UpdateAKSClusterParams `json:"aks,omitempty"`
// Credentials JSON encoded cluster credentials string.
Credentials *string `json:"credentials,omitempty"`
// Eks UpdateEKSClusterParams defines updatable EKS cluster configuration.
Eks *ExternalclusterV1UpdateEKSClusterParams `json:"eks,omitempty"`
// Gke UpdateGKEClusterParams defines updatable GKE cluster configuration.
Gke *ExternalclusterV1UpdateGKEClusterParams `json:"gke,omitempty"`
SelfHostedWithEc2Nodes *ExternalclusterV1UpdateSelfHostedWithEC2NodesParams `json:"selfHostedWithEc2Nodes,omitempty"`
}
ExternalclusterV1ClusterUpdate defines model for externalcluster.v1.ClusterUpdate.
type ExternalclusterV1CreateAssumeRolePrincipalResponse ¶
type ExternalclusterV1CreateAssumeRolePrincipalResponse struct {
Arn *string `json:"arn,omitempty"`
}
ExternalclusterV1CreateAssumeRolePrincipalResponse defines model for externalcluster.v1.CreateAssumeRolePrincipalResponse.
type ExternalclusterV1CreateClusterTokenResponse ¶
type ExternalclusterV1CreateClusterTokenResponse struct {
Token *string `json:"token,omitempty"`
}
ExternalclusterV1CreateClusterTokenResponse defines model for externalcluster.v1.CreateClusterTokenResponse.
type ExternalclusterV1DeleteAssumeRolePrincipalResponse ¶
type ExternalclusterV1DeleteAssumeRolePrincipalResponse = map[string]interface{}
ExternalclusterV1DeleteAssumeRolePrincipalResponse defines model for externalcluster.v1.DeleteAssumeRolePrincipalResponse.
type ExternalclusterV1DeleteNodeResponse ¶
type ExternalclusterV1DeleteNodeResponse struct {
// OperationId Node delete operation ID.
OperationId *string `json:"operationId,omitempty"`
}
ExternalclusterV1DeleteNodeResponse DeleteNodeResponse is the result of DeleteNodeRequest.
type ExternalclusterV1DisableGCPSAResponse ¶ added in v0.58.1
type ExternalclusterV1DisableGCPSAResponse = map[string]interface{}
ExternalclusterV1DisableGCPSAResponse defines model for externalcluster.v1.DisableGCPSAResponse.
type ExternalclusterV1DisableGKESAResponse ¶
type ExternalclusterV1DisableGKESAResponse = map[string]interface{}
ExternalclusterV1DisableGKESAResponse defines model for externalcluster.v1.DisableGKESAResponse.
type ExternalclusterV1DisconnectConfig ¶
type ExternalclusterV1DisconnectConfig struct {
// DeleteProvisionedNodes Whether CAST provisioned nodes should be deleted.
DeleteProvisionedNodes *bool `json:"deleteProvisionedNodes,omitempty"`
// KeepKubernetesResources Whether CAST Kubernetes resources should be kept.
KeepKubernetesResources *bool `json:"keepKubernetesResources,omitempty"`
}
ExternalclusterV1DisconnectConfig defines model for externalcluster.v1.DisconnectConfig.
type ExternalclusterV1DrainConfig ¶
type ExternalclusterV1DrainConfig struct {
// Force If set to true, pods will be forcefully deleted after drain timeout.
Force *bool `json:"force,omitempty"`
// TimeoutSeconds Node drain timeout in seconds. Defaults to 600s if not set.
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}
ExternalclusterV1DrainConfig defines model for externalcluster.v1.DrainConfig.
type ExternalclusterV1DrainNodeResponse ¶
type ExternalclusterV1DrainNodeResponse struct {
// OperationId Drain node operation ID.
OperationId string `json:"operationId"`
}
ExternalclusterV1DrainNodeResponse DrainNodeResponse is the result of DrainNodeRequest.
type ExternalclusterV1EKSClusterParams ¶
type ExternalclusterV1EKSClusterParams struct {
// AccountId AWS Account ID where cluster runs.
AccountId *string `json:"accountId,omitempty"`
AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
DnsClusterIp *string `json:"dnsClusterIp,omitempty"`
// InstanceProfileArn Deprecated. Output only. Cluster's instance profile ARN used for CAST provisioned nodes.
InstanceProfileArn *string `json:"instanceProfileArn,omitempty"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
// SecurityGroups Deprecated. Output only. Cluster's security groups configuration.
SecurityGroups *[]string `json:"securityGroups,omitempty"`
// Subnets Deprecated. Output only. Cluster's subnets configuration.
Subnets *[]string `json:"subnets,omitempty"`
// Tags Deprecated. Output only. CAST provisioned nodes tags configuration.
Tags *map[string]string `json:"tags,omitempty"`
}
ExternalclusterV1EKSClusterParams EKSClusterParams defines EKS-specific arguments.
type ExternalclusterV1EdgeConfig ¶ added in v0.62.0
type ExternalclusterV1EdgeConfig struct {
// ConfigurationId ID of the Edge configuration.
ConfigurationId *string `json:"configurationId"`
// LocationId Edge location ID.
LocationId *string `json:"locationId,omitempty"`
}
ExternalclusterV1EdgeConfig EdgeConfig holds Edge specific configuration.
type ExternalclusterV1GCPCreateSARequestAKSClusterParams ¶ added in v0.58.1
type ExternalclusterV1GCPCreateSARequestAKSClusterParams = map[string]interface{}
ExternalclusterV1GCPCreateSARequestAKSClusterParams AKSClusterParams is a placeholder for future use.
type ExternalclusterV1GCPCreateSAResponse ¶ added in v0.58.1
type ExternalclusterV1GCPCreateSAResponse struct {
ServiceAccountEmail *string `json:"serviceAccountEmail,omitempty"`
// ServiceAccountId service_account_id - The unique, stable numeric ID for the service
// account. Each service account retains its unique ID even if you delete the
// service account. For example, if you delete a service account, then create a
// new service account with the same name, the new service account has a
// different unique ID than the deleted service account.
ServiceAccountId *string `json:"serviceAccountId,omitempty"`
}
ExternalclusterV1GCPCreateSAResponse defines model for externalcluster.v1.GCPCreateSAResponse.
type ExternalclusterV1GKEClusterParams ¶
type ExternalclusterV1GKEClusterParams struct {
CastServiceAccount *string `json:"castServiceAccount,omitempty"`
ClientServiceAccount *string `json:"clientServiceAccount,omitempty"`
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
// Location Location of the cluster.
Location *string `json:"location,omitempty"`
// MaxPodsPerNode Max pods per node. Default is 110.
MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"`
// ProjectId GCP project ID where cluster runs.
ProjectId *string `json:"projectId,omitempty"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
}
ExternalclusterV1GKEClusterParams GKEClusterParams defines GKE-specific arguments.
type ExternalclusterV1GKECreateSAResponse ¶
type ExternalclusterV1GKECreateSAResponse struct {
ServiceAccount *string `json:"serviceAccount,omitempty"`
}
ExternalclusterV1GKECreateSAResponse defines model for externalcluster.v1.GKECreateSAResponse.
type ExternalclusterV1GPUConfig ¶
type ExternalclusterV1GPUConfig struct {
// Count Number of GPUs. N1 GCP machines allow attaching custom number of GPUs.
Count *int32 `json:"count,omitempty"`
// MigConfig MIGConfig configures MIG slicing on NVIDIA GPUs.
MigConfig *ExternalclusterV1MIGConfig `json:"migConfig,omitempty"`
// TimeSharing GPUTimeSharing configures sharing strategy by splitting time of single GPU to several processes.
TimeSharing *ExternalclusterV1GPUTimeSharing `json:"timeSharing,omitempty"`
// Type GPU type. N1 GCP machines allow attaching custom type of GPUs.
// Public documentation refers to this as "accelerator type" which you should read "name of specialized hardware".
Type *string `json:"type,omitempty"`
}
ExternalclusterV1GPUConfig GPUConfig describes instance GPU configuration.
Use for: * Creating GCP N1 with customer quantity and type of GPUs attached. * Setting required labels for AKS GPU nodes. * Configuring gpu sharing. Required while provisioning GCP N1 instance types with GPU. Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80
type ExternalclusterV1GPUDevice ¶
type ExternalclusterV1GPUDevice struct {
Count *int32 `json:"count,omitempty"`
Manufacturer *string `json:"manufacturer,omitempty"`
MemoryMib *int32 `json:"memoryMib,omitempty"`
}
ExternalclusterV1GPUDevice defines model for externalcluster.v1.GPUDevice.
type ExternalclusterV1GPUInfo ¶
type ExternalclusterV1GPUInfo struct {
GpuDevices *[]ExternalclusterV1GPUDevice `json:"gpuDevices,omitempty"`
}
ExternalclusterV1GPUInfo defines model for externalcluster.v1.GPUInfo.
type ExternalclusterV1GPUTimeSharing ¶ added in v0.58.1
type ExternalclusterV1GPUTimeSharing struct {
Replicas *int32 `json:"replicas,omitempty"`
}
ExternalclusterV1GPUTimeSharing GPUTimeSharing configures sharing strategy by splitting time of single GPU to several processes.
type ExternalclusterV1GetAssumeRolePrincipalResponse ¶
type ExternalclusterV1GetAssumeRolePrincipalResponse struct {
Arn *string `json:"arn,omitempty"`
}
ExternalclusterV1GetAssumeRolePrincipalResponse defines model for externalcluster.v1.GetAssumeRolePrincipalResponse.
type ExternalclusterV1GetAssumeRoleUserResponse ¶
type ExternalclusterV1GetAssumeRoleUserResponse struct {
Arn *string `json:"arn,omitempty"`
}
ExternalclusterV1GetAssumeRoleUserResponse defines model for externalcluster.v1.GetAssumeRoleUserResponse.
type ExternalclusterV1GetCleanupScriptResponse ¶
type ExternalclusterV1GetCleanupScriptResponse struct {
Script *string `json:"script,omitempty"`
}
ExternalclusterV1GetCleanupScriptResponse GetCleanupScriptResponse is the result of GetCleanupScriptRequest.
type ExternalclusterV1GetConnectAndEnableCASTAICmdResponse ¶ added in v0.62.0
type ExternalclusterV1GetConnectAndEnableCASTAICmdResponse struct {
Script *string `json:"script,omitempty"`
}
ExternalclusterV1GetConnectAndEnableCASTAICmdResponse GetConnectAndEnableCASTAICmdResponse is the result of GetConnectAndEnableCASTAICmdRequest.
type ExternalclusterV1GetCredentialsScriptResponse ¶
type ExternalclusterV1GetCredentialsScriptResponse struct {
Script *string `json:"script,omitempty"`
}
ExternalclusterV1GetCredentialsScriptResponse GetCredentialsScriptResponse is the result of GetCredentialsScriptRequest.
type ExternalclusterV1GetListNodesFiltersResponse ¶
type ExternalclusterV1GetListNodesFiltersResponse struct {
Filters *[]ExternalclusterV1NodeListFilter `json:"filters,omitempty"`
}
ExternalclusterV1GetListNodesFiltersResponse defines model for externalcluster.v1.GetListNodesFiltersResponse.
type ExternalclusterV1HandleCloudEventResponse ¶
type ExternalclusterV1HandleCloudEventResponse = map[string]interface{}
ExternalclusterV1HandleCloudEventResponse HandleCloudEventResponse is the result of HandleCloudEventRequest.
type ExternalclusterV1HttpProxyConfig ¶ added in v0.58.1
type ExternalclusterV1HttpProxyConfig struct {
HttpProxy *string `json:"httpProxy,omitempty"`
HttpsProxy *string `json:"httpsProxy,omitempty"`
NoProxy *[]string `json:"noProxy,omitempty"`
}
ExternalclusterV1HttpProxyConfig HttpProxyConfig holds settings when HTTP/S communication is required.
type ExternalclusterV1ImpersonationServiceAccountRequest ¶ added in v0.62.0
type ExternalclusterV1ImpersonationServiceAccountRequest struct {
Provider *string `json:"provider,omitempty"`
}
ExternalclusterV1ImpersonationServiceAccountRequest defines model for externalcluster.v1.ImpersonationServiceAccountRequest.
type ExternalclusterV1ImpersonationServiceAccountResponse ¶ added in v0.62.0
type ExternalclusterV1ImpersonationServiceAccountResponse struct {
Email *string `json:"email,omitempty"`
Id *string `json:"id,omitempty"`
}
ExternalclusterV1ImpersonationServiceAccountResponse defines model for externalcluster.v1.ImpersonationServiceAccountResponse.
type ExternalclusterV1IngestInstanceLogsResponse ¶ added in v0.62.0
type ExternalclusterV1IngestInstanceLogsResponse = map[string]interface{}
ExternalclusterV1IngestInstanceLogsResponse IngestInstanceLogsResponse returns ingest instance logs response.
type ExternalclusterV1KOPSClusterParams ¶
type ExternalclusterV1KOPSClusterParams struct {
// Cloud Cloud provider of the cluster.
Cloud *string `json:"cloud,omitempty"`
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
// StateStore KOPS state store url.
StateStore *string `json:"stateStore,omitempty"`
}
ExternalclusterV1KOPSClusterParams KOPSClusterParams defines KOPS-specific arguments.
type ExternalclusterV1KarpenterAttribute ¶ added in v0.62.0
type ExternalclusterV1KarpenterAttribute struct {
// KentEligibility KentEligibility defines Karpenter KENT eligibility status.
KentEligibility *ExternalclusterV1KentEligibility `json:"kentEligibility,omitempty"`
// Version Karpenter version.
Version *string `json:"version"`
}
ExternalclusterV1KarpenterAttribute KarpenterAttribute defines Karpenter-specific attributes.
type ExternalclusterV1KentEligibility ¶ added in v0.62.0
type ExternalclusterV1KentEligibility string
ExternalclusterV1KentEligibility KentEligibility defines Karpenter KENT eligibility status.
const ( ELIGIBLE ExternalclusterV1KentEligibility = "ELIGIBLE" NOTSUPPORTED ExternalclusterV1KentEligibility = "NOT_SUPPORTED" )
Defines values for ExternalclusterV1KentEligibility.
type ExternalclusterV1ListClustersResponse ¶
type ExternalclusterV1ListClustersResponse struct {
Items *[]ExternalclusterV1Cluster `json:"items,omitempty"`
}
ExternalclusterV1ListClustersResponse ListClustersResponse is the result of ListClustersRequest.
type ExternalclusterV1ListNodesResponse ¶
type ExternalclusterV1ListNodesResponse struct {
Items *[]ExternalclusterV1Node `json:"items,omitempty"`
NextCursor *string `json:"nextCursor,omitempty"`
}
ExternalclusterV1ListNodesResponse defines model for externalcluster.v1.ListNodesResponse.
type ExternalclusterV1LogEvent ¶ added in v0.62.0
type ExternalclusterV1LogEvent struct {
Fields *map[string]string `json:"fields,omitempty"`
Level *string `json:"level,omitempty"`
Message *string `json:"message,omitempty"`
Time *time.Time `json:"time,omitempty"`
}
ExternalclusterV1LogEvent defines model for externalcluster.v1.LogEvent.
type ExternalclusterV1MIGConfig ¶ added in v0.58.1
type ExternalclusterV1MIGConfig struct {
GpuMemoryGb *int32 `json:"gpuMemoryGb"`
PartitionSizes *[]string `json:"partitionSizes,omitempty"`
}
ExternalclusterV1MIGConfig MIGConfig configures MIG slicing on NVIDIA GPUs.
type ExternalclusterV1Node ¶
type ExternalclusterV1Node struct {
AddedBy *string `json:"addedBy,omitempty"`
Annotations map[string]string `json:"annotations"`
Cloud string `json:"cloud"`
// CreatedAt created_at represents timestamp of when node was created in cloud infrastructure.
CreatedAt time.Time `json:"createdAt"`
GpuInfo *ExternalclusterV1GPUInfo `json:"gpuInfo,omitempty"`
Id string `json:"id"`
// InstanceArchitecture Deprecated. Use node_info architecture field.
InstanceArchitecture *string `json:"instanceArchitecture"`
InstanceId *string `json:"instanceId"`
// InstanceLabels Output only. Cloud provider instance tags/labels.
InstanceLabels *map[string]string `json:"instanceLabels,omitempty"`
// InstanceName Output only. Cloud provider instance name.
InstanceName *string `json:"instanceName"`
// InstancePrice Deprecated. Pricing is now handled by price service.
InstancePrice *string `json:"instancePrice"`
InstanceType string `json:"instanceType"`
// JoinedAt joined_at represents timestamp of when node has joined kubernetes cluster.
JoinedAt *time.Time `json:"joinedAt,omitempty"`
Labels map[string]string `json:"labels"`
Name string `json:"name"`
// Network NodeNetwork represents node network.
Network *ExternalclusterV1NodeNetwork `json:"network,omitempty"`
NodeConfigurationId *string `json:"nodeConfigurationId"`
NodeInfo *ExternalclusterV1NodeInfo `json:"nodeInfo,omitempty"`
ProviderId *string `json:"providerId"`
Resources ExternalclusterV1Resources `json:"resources"`
// Role NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed.
Role ExternalclusterV1NodeType `json:"role"`
// SpotConfig NodeSpotConfig defines if node should be created as spot instance, and params for creation.
SpotConfig ExternalclusterV1NodeSpotConfig `json:"spotConfig"`
// State NodeState contains feedback information about progress on the node provisioning.
State ExternalclusterV1NodeState `json:"state"`
SubnetId *string `json:"subnetId"`
Taints []ExternalclusterV1Taint `json:"taints"`
Unschedulable bool `json:"unschedulable"`
Zone *string `json:"zone,omitempty"`
}
ExternalclusterV1Node Node represents a single VM that run as Kubernetes master or worker.
type ExternalclusterV1NodeAffinity ¶
type ExternalclusterV1NodeAffinity struct {
// Affinity THe affinity rules required for choosing the group.
Affinity *[]K8sSelectorV1KubernetesNodeAffinity `json:"affinity,omitempty"`
// DedicatedGroup The name of the dedicated group.
DedicatedGroup *string `json:"dedicatedGroup"`
}
ExternalclusterV1NodeAffinity NodeAffinity provides control over the assignment of individual nodes to dedicated host instances.
type ExternalclusterV1NodeConfig ¶
type ExternalclusterV1NodeConfig struct {
// ConfigurationId ID reference of Node configuration (template) to be used for node creation. Supersedes Configuration Name.
ConfigurationId *string `json:"configurationId"`
// ConfigurationName Name reference of Node configuration (template)to be used for node creation.
// Superseded if Configuration ID reference is provided.
// Request will fail if several configurations with same name exists for a given cluster.
ConfigurationName *string `json:"configurationName"`
// EdgeConfig EdgeConfig holds Edge specific configuration.
EdgeConfig *ExternalclusterV1EdgeConfig `json:"edgeConfig,omitempty"`
// GpuConfig GPUConfig describes instance GPU configuration.
//
// Use for:
// * Creating GCP N1 with customer quantity and type of GPUs attached.
// * Setting required labels for AKS GPU nodes.
// * Configuring gpu sharing.
// Required while provisioning GCP N1 instance types with GPU.
// Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80
GpuConfig *ExternalclusterV1GPUConfig `json:"gpuConfig,omitempty"`
// InstanceType Instance type of the node.
InstanceType string `json:"instanceType"`
// KubernetesLabels Node Kubernetes labels.
KubernetesLabels *map[string]string `json:"kubernetesLabels,omitempty"`
// KubernetesTaints Node Kubernetes taints.
KubernetesTaints *[]ExternalclusterV1Taint `json:"kubernetesTaints,omitempty"`
// NodeAffinity NodeAffinity provides control over the assignment of individual nodes to dedicated host instances.
NodeAffinity *ExternalclusterV1NodeAffinity `json:"nodeAffinity,omitempty"`
// SpotConfig NodeSpotConfig defines if node should be created as spot instance, and params for creation.
SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"`
// SubnetId Node subnet ID.
SubnetId *string `json:"subnetId"`
// Volume NodeVolume defines node's local root volume configuration.
Volume *ExternalclusterV1NodeVolume `json:"volume,omitempty"`
// Zone Zone of the node.
Zone *string `json:"zone"`
}
ExternalclusterV1NodeConfig defines model for externalcluster.v1.NodeConfig.
type ExternalclusterV1NodeInfo ¶
type ExternalclusterV1NodeInfo struct {
Architecture *string `json:"architecture,omitempty"`
ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`
KernelVersion *string `json:"kernelVersion,omitempty"`
KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"`
KubeletVersion *string `json:"kubeletVersion,omitempty"`
OperatingSystem *string `json:"operatingSystem,omitempty"`
OsImage *string `json:"osImage,omitempty"`
}
ExternalclusterV1NodeInfo defines model for externalcluster.v1.NodeInfo.
type ExternalclusterV1NodeListFilter ¶
type ExternalclusterV1NodeListFilter struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Values *[]string `json:"values,omitempty"`
}
ExternalclusterV1NodeListFilter defines model for externalcluster.v1.NodeListFilter.
type ExternalclusterV1NodeLogs ¶ added in v0.62.0
type ExternalclusterV1NodeLogs struct {
LogEvents *[]ExternalclusterV1LogEvent `json:"logEvents,omitempty"`
}
ExternalclusterV1NodeLogs defines model for externalcluster.v1.NodeLogs.
type ExternalclusterV1NodeNetwork ¶
type ExternalclusterV1NodeNetwork struct {
PrivateIp *string `json:"privateIp,omitempty"`
PublicIp *string `json:"publicIp,omitempty"`
}
ExternalclusterV1NodeNetwork NodeNetwork represents node network.
type ExternalclusterV1NodeSpotConfig ¶
type ExternalclusterV1NodeSpotConfig struct {
// IsSpot Whether node should be created as spot instance.
IsSpot *bool `json:"isSpot,omitempty"`
// Price Spot instance price. Applicable only for AWS nodes.
Price *string `json:"price,omitempty"`
}
ExternalclusterV1NodeSpotConfig NodeSpotConfig defines if node should be created as spot instance, and params for creation.
type ExternalclusterV1NodeState ¶
type ExternalclusterV1NodeState struct {
Phase *string `json:"phase,omitempty"`
}
ExternalclusterV1NodeState NodeState contains feedback information about progress on the node provisioning.
type ExternalclusterV1NodeType ¶
type ExternalclusterV1NodeType string
ExternalclusterV1NodeType NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed.
const ( Master ExternalclusterV1NodeType = "master" NODETYPEINVALID ExternalclusterV1NodeType = "NODE_TYPE_INVALID" NODETYPEMASTER ExternalclusterV1NodeType = "NODE_TYPE_MASTER" NODETYPEWORKER ExternalclusterV1NodeType = "NODE_TYPE_WORKER" Worker ExternalclusterV1NodeType = "worker" )
Defines values for ExternalclusterV1NodeType.
type ExternalclusterV1NodeVolume ¶
type ExternalclusterV1NodeVolume struct {
// RaidConfig RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity
// and also combine their performance by accessing them in parallel.
RaidConfig *ExternalclusterV1RaidConfig `json:"raidConfig,omitempty"`
// Size Volume size in GiB.
Size *int32 `json:"size,omitempty"`
}
ExternalclusterV1NodeVolume NodeVolume defines node's local root volume configuration.
type ExternalclusterV1OKEClusterParams ¶ added in v0.62.0
type ExternalclusterV1OKEClusterParams struct {
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
}
ExternalclusterV1OKEClusterParams OKEClusterParams defines OKE -specific arguments.
type ExternalclusterV1OmniAttribute ¶ added in v0.62.0
type ExternalclusterV1OmniAttribute struct {
// Enabled Indicates if Omni is enabled.
Enabled *bool `json:"enabled,omitempty"`
}
ExternalclusterV1OmniAttribute OmniAttribute defines Omni-specific attributes.
type ExternalclusterV1OpenshiftClusterParams ¶
type ExternalclusterV1OpenshiftClusterParams struct {
// Cloud Cloud provider of the cluster.
Cloud *string `json:"cloud,omitempty"`
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
InternalId *string `json:"internalId,omitempty"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
}
ExternalclusterV1OpenshiftClusterParams OpenShiftClusterParams defines OpenShift-specific arguments.
type ExternalclusterV1RaidConfig ¶
type ExternalclusterV1RaidConfig struct {
// ChunkSize Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored
// for the type of data written by the workloads in the node. If not provided it will default to 64KB.
ChunkSize *int32 `json:"chunkSize"`
}
ExternalclusterV1RaidConfig RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity and also combine their performance by accessing them in parallel.
type ExternalclusterV1ReconcileClusterResponse ¶
type ExternalclusterV1ReconcileClusterResponse = map[string]interface{}
ExternalclusterV1ReconcileClusterResponse ReconcileClusterResponse is the result of ReconcileClusterRequest.
type ExternalclusterV1Region ¶
type ExternalclusterV1Region struct {
// DisplayName Display name of the region.
DisplayName *string `json:"displayName,omitempty"`
// Name Name of the region.
Name *string `json:"name,omitempty"`
}
ExternalclusterV1Region Region represents cluster region.
type ExternalclusterV1RegisterClusterRequest ¶
type ExternalclusterV1RegisterClusterRequest struct {
// Aks AKSClusterParams defines AKS-specific arguments.
Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"`
// Anywhere AnywhereClusterParams defines Anywhere-specific arguments.
Anywhere *ExternalclusterV1AnywhereClusterParams `json:"anywhere,omitempty"`
// CastwareInstallMethod Method used to install CASTware components.
//
// - CASTWARE_INSTALL_METHOD_UNSPECIFIED: Default value.
// - OPERATOR: CASTware installed via the operator.
CastwareInstallMethod *ExternalclusterV1ClusterCastwareInstallMethod `json:"castwareInstallMethod,omitempty"`
// Eks EKSClusterParams defines EKS-specific arguments.
Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"`
// Gke GKEClusterParams defines GKE-specific arguments.
Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"`
// Id The ID of the cluster.
Id *string `json:"id,omitempty"`
// Kops KOPSClusterParams defines KOPS-specific arguments.
Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"`
// Name The name of the cluster.
Name string `json:"name"`
// Oke OKEClusterParams defines OKE -specific arguments.
Oke *ExternalclusterV1OKEClusterParams `json:"oke,omitempty"`
// Openshift OpenShiftClusterParams defines OpenShift-specific arguments.
Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"`
// OrganizationId Organization of the cluster.
OrganizationId *string `json:"organizationId,omitempty"`
SelfHostedWithEc2Nodes *ExternalclusterV1SelfHostedWithEC2NodesParams `json:"selfHostedWithEc2Nodes,omitempty"`
}
ExternalclusterV1RegisterClusterRequest RegisterClusterRequest registers cluster.
type ExternalclusterV1Resources ¶
type ExternalclusterV1Resources struct {
BandwidthCapacityMbps *int32 `json:"bandwidthCapacityMbps,omitempty"`
CpuAllocatableMilli *int32 `json:"cpuAllocatableMilli,omitempty"`
CpuCapacityMilli *int32 `json:"cpuCapacityMilli,omitempty"`
CpuRequestsMilli *int32 `json:"cpuRequestsMilli,omitempty"`
MemAllocatableMib *int32 `json:"memAllocatableMib,omitempty"`
MemCapacityMib *int32 `json:"memCapacityMib,omitempty"`
MemRequestsMib *int32 `json:"memRequestsMib,omitempty"`
}
ExternalclusterV1Resources defines model for externalcluster.v1.Resources.
type ExternalclusterV1SelfHostedWithEC2NodesParams ¶ added in v0.58.1
type ExternalclusterV1SelfHostedWithEC2NodesParams struct {
// AccountId AWS Account ID where cluster runs.
AccountId *string `json:"accountId,omitempty"`
AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`
// ClusterName Name of the cluster.
ClusterName *string `json:"clusterName,omitempty"`
// Region Region of the cluster.
Region *string `json:"region,omitempty"`
}
ExternalclusterV1SelfHostedWithEC2NodesParams defines model for externalcluster.v1.SelfHostedWithEC2NodesParams.
type ExternalclusterV1Subnet ¶
type ExternalclusterV1Subnet struct {
// Cidr Cidr block of the subnet.
Cidr *string `json:"cidr,omitempty"`
// Id The ID of the subnet.
Id *string `json:"id,omitempty"`
// Name Deprecated. Subnet name is not filled and should not be used.
Name *string `json:"name,omitempty"`
// Public Public defines if subnet is publicly routable.
// Optional. Populated for EKS provider only.
Public *bool `json:"public"`
// ZoneName Subnet's zone name.
ZoneName *string `json:"zoneName,omitempty"`
}
ExternalclusterV1Subnet Subnet represents cluster subnet.
type ExternalclusterV1Taint ¶
type ExternalclusterV1Taint struct {
Effect string `json:"effect"`
Key string `json:"key"`
Value string `json:"value"`
}
ExternalclusterV1Taint Taint defines node taint in kubernetes cluster.
type ExternalclusterV1TriggerHibernateClusterResponse ¶
type ExternalclusterV1TriggerHibernateClusterResponse struct {
// ClusterId The ID of the node.
ClusterId string `json:"clusterId"`
// OperationId Add node operation ID.
OperationId string `json:"operationId"`
}
ExternalclusterV1TriggerHibernateClusterResponse TriggerHibernateClusterResponse is the result of HibernateClusterRequest.
type ExternalclusterV1TriggerResumeClusterResponse ¶
type ExternalclusterV1TriggerResumeClusterResponse struct {
// ClusterId The ID of the node.
ClusterId string `json:"clusterId"`
// OperationId Add node operation ID.
OperationId string `json:"operationId"`
}
ExternalclusterV1TriggerResumeClusterResponse TriggerResumeClusterResponse is the result of ResumeClusterRequest.
type ExternalclusterV1UpdateAKSClusterParams ¶ added in v0.58.1
type ExternalclusterV1UpdateAKSClusterParams struct {
// HttpProxyConfig HttpProxyConfig holds settings when HTTP/S communication is required.
HttpProxyConfig *ExternalclusterV1HttpProxyConfig `json:"httpProxyConfig,omitempty"`
}
ExternalclusterV1UpdateAKSClusterParams UpdateAKSClusterParams defines updatable AKS cluster configuration.
type ExternalclusterV1UpdateClusterTagsResponse ¶
type ExternalclusterV1UpdateClusterTagsResponse = map[string]interface{}
ExternalclusterV1UpdateClusterTagsResponse UpdateClusterTagsResponse result of cluster tags update.
type ExternalclusterV1UpdateEKSClusterParams ¶
type ExternalclusterV1UpdateEKSClusterParams struct {
AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`
}
ExternalclusterV1UpdateEKSClusterParams UpdateEKSClusterParams defines updatable EKS cluster configuration.
type ExternalclusterV1UpdateGKEClusterParams ¶
type ExternalclusterV1UpdateGKEClusterParams struct {
// GkeSaImpersonate service account email to impersonate.
GkeSaImpersonate *string `json:"gkeSaImpersonate,omitempty"`
// ProjectId GCP target project where cluster runs.
ProjectId *string `json:"projectId,omitempty"`
}
ExternalclusterV1UpdateGKEClusterParams UpdateGKEClusterParams defines updatable GKE cluster configuration.
type ExternalclusterV1UpdateSelfHostedWithEC2NodesParams ¶ added in v0.58.1
type ExternalclusterV1UpdateSelfHostedWithEC2NodesParams struct {
AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`
InstanceProfileArn *string `json:"instanceProfileArn"`
}
ExternalclusterV1UpdateSelfHostedWithEC2NodesParams defines model for externalcluster.v1.UpdateSelfHostedWithEC2NodesParams.
type ExternalclusterV1Zone ¶
type ExternalclusterV1Zone struct {
// Id ID of the zone.
Id *string `json:"id,omitempty"`
// Name Zone name.
Name *string `json:"name,omitempty"`
}
ExternalclusterV1Zone Cluster zone.
type FieldViolation ¶
FieldViolation defines model for FieldViolation.
type GoogleApiHttpBody ¶ added in v0.62.0
type GoogleApiHttpBody struct {
// ContentType The HTTP Content-Type header value specifying the content type of the body.
ContentType *string `json:"contentType,omitempty"`
// Data The HTTP request/response body as raw binary.
Data *[]byte `json:"data,omitempty"`
// Extensions Application specific response metadata. Must be set in the first response
// for streaming APIs.
Extensions *[]GoogleProtobufAny `json:"extensions,omitempty"`
}
GoogleApiHttpBody Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page.
This message can be used both in streaming and non-streaming API methods in the request as well as the response.
It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body.
Example:
message GetResourceRequest {
// A unique request id.
string request_id = 1;
// The raw HTTP body is bound to this field.
google.api.HttpBody http_body = 2;
}
service ResourceService {
rpc GetResource(GetResourceRequest)
returns (google.api.HttpBody);
rpc UpdateResource(google.api.HttpBody)
returns (google.protobuf.Empty);
}
Example with streaming methods:
service CaldavService {
rpc GetCalendar(stream google.api.HttpBody)
returns (stream google.api.HttpBody);
rpc UpdateCalendar(stream google.api.HttpBody)
returns (stream google.api.HttpBody);
}
Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
type GoogleProtobufAny ¶ added in v0.62.0
type GoogleProtobufAny struct {
// Type A URL/resource name that uniquely identifies the type of the serialized
// protocol buffer message. This string must contain at least
// one "/" character. The last segment of the URL's path must represent
// the fully qualified name of the type (as in
// `path/google.protobuf.Duration`). The name should be in a canonical form
// (e.g., leading "." is not accepted).
//
// In practice, teams usually precompile into the binary all types that they
// expect it to use in the context of Any. However, for URLs which use the
// scheme `http`, `https`, or no scheme, one can optionally set up a type
// server that maps type URLs to message definitions as follows:
//
// * If no scheme is provided, `https` is assumed.
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
// value in binary format, or produce an error.
// * Applications are allowed to cache lookup results based on the
// URL, or have them precompiled into a binary to avoid any
// lookup. Therefore, binary compatibility needs to be preserved
// on changes to types. (Use versioned type names to manage
// breaking changes.)
//
// Note: this functionality is not currently available in the official
// protobuf release, and it is not used for type URLs beginning with
// type.googleapis.com. As of May 2023, there are no widely used type server
// implementations and no plans to implement one.
//
// Schemes other than `http`, `https` (or the empty scheme) might be
// used with implementation specific semantics.
Type *string `json:"@type,omitempty"`
AdditionalProperties map[string]map[string]interface{} `json:"-"`
}
GoogleProtobufAny `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.
Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type.
Example 1: Pack and unpack a message in C++.
Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
...
}
Example 2: Pack and unpack a message in Java.
Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
foo = any.unpack(Foo.getDefaultInstance());
}
Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DESCRIPTOR):
any.Unpack(foo)
...
Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
...
}
The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example "foo.bar.com/x/y.z" will yield type name "y.z".
JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example:
package google.profile;
message Person {
string first_name = 1;
string last_name = 2;
}
{
"@type": "type.googleapis.com/google.profile.Person",
"firstName": <string>,
"lastName": <string>
}
If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]):
{
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
func (GoogleProtobufAny) Get ¶ added in v0.62.0
func (a GoogleProtobufAny) Get(fieldName string) (value map[string]interface{}, found bool)
Getter for additional properties for GoogleProtobufAny. Returns the specified element and whether it was found
func (GoogleProtobufAny) MarshalJSON ¶ added in v0.62.0
func (a GoogleProtobufAny) MarshalJSON() ([]byte, error)
Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties
func (*GoogleProtobufAny) Set ¶ added in v0.62.0
func (a *GoogleProtobufAny) Set(fieldName string, value map[string]interface{})
Setter for additional properties for GoogleProtobufAny
func (*GoogleProtobufAny) UnmarshalJSON ¶ added in v0.62.0
func (a *GoogleProtobufAny) UnmarshalJSON(b []byte) error
Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type K8sSelectorV1KubernetesNodeAffinity ¶
type K8sSelectorV1KubernetesNodeAffinity struct {
Key string `json:"key"`
// Operator - IN: In values
// - NotIn: Not in values
// - Exists: Just exist
// - DoesNotExist: Values does not exist
// - Gt: Greater then
// - Lt: Lower then
Operator K8sSelectorV1Operator `json:"operator"`
Values []string `json:"values"`
}
K8sSelectorV1KubernetesNodeAffinity defines model for k8s_selector.v1.KubernetesNodeAffinity.
type K8sSelectorV1Operator ¶
type K8sSelectorV1Operator string
K8sSelectorV1Operator - IN: In values
- NotIn: Not in values
- Exists: Just exist
- DoesNotExist: Values does not exist
- Gt: Greater then
- Lt: Lower then
const ( DoesNotExist K8sSelectorV1Operator = "DoesNotExist" DoesNotExist1 K8sSelectorV1Operator = "doesNotExist" Exists K8sSelectorV1Operator = "Exists" Exists1 K8sSelectorV1Operator = "exists" Gt K8sSelectorV1Operator = "Gt" Gt1 K8sSelectorV1Operator = "gt" IN K8sSelectorV1Operator = "IN" In K8sSelectorV1Operator = "in" Lt K8sSelectorV1Operator = "Lt" Lt1 K8sSelectorV1Operator = "lt" NotIn K8sSelectorV1Operator = "NotIn" NotIn1 K8sSelectorV1Operator = "notIn" )
Defines values for K8sSelectorV1Operator.
type OperationsAPIGetOperationResponse ¶
type OperationsAPIGetOperationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CastaiOperationsV1beta1Operation
}
func ParseOperationsAPIGetOperationResponse ¶
func ParseOperationsAPIGetOperationResponse(rsp *http.Response) (*OperationsAPIGetOperationResponse, error)
ParseOperationsAPIGetOperationResponse parses an HTTP response from a OperationsAPIGetOperationWithResponse call
func (OperationsAPIGetOperationResponse) GetBody ¶
func (r OperationsAPIGetOperationResponse) GetBody() []byte
TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array
func (OperationsAPIGetOperationResponse) Status ¶
func (r OperationsAPIGetOperationResponse) Status() string
Status returns HTTPResponse.Status
func (OperationsAPIGetOperationResponse) StatusCode ¶
func (r OperationsAPIGetOperationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function