Documentation
¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewAdminCreateSandboxTemplateRequest(server string, body AdminCreateSandboxTemplateJSONRequestBody) (*http.Request, error)
- func NewAdminCreateSandboxTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAdminDeleteSandboxTemplateRequest(server string, name PathTemplateName) (*http.Request, error)
- func NewAdminGetSandboxStatisticsRequest(server string) (*http.Request, error)
- func NewAdminListSandboxTemplatesRequest(server string, params *AdminListSandboxTemplatesParams) (*http.Request, error)
- func NewAdminUpdateSandboxTemplateRequest(server string, name PathTemplateName, ...) (*http.Request, error)
- func NewAdminUpdateSandboxTemplateRequestWithBody(server string, name PathTemplateName, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAPIKeyRequest(server string, body CreateAPIKeyJSONRequestBody) (*http.Request, error)
- func NewCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateEnvSandboxPoolRequest(server string, name string, body CreateEnvSandboxPoolJSONRequestBody) (*http.Request, error)
- func NewCreateEnvSandboxPoolRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSandboxEnvRequest(server string, body CreateSandboxEnvJSONRequestBody) (*http.Request, error)
- func NewCreateSandboxEnvRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSandboxExecTokenRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
- func NewCreateSandboxRequest(server string, body CreateSandboxJSONRequestBody) (*http.Request, error)
- func NewCreateSandboxRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDecideApprovalRequest(server string, approvalId string, body DecideApprovalJSONRequestBody) (*http.Request, error)
- func NewDecideApprovalRequestWithBody(server string, approvalId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAPIKeyRequest(server string, name PathAPIKeyName) (*http.Request, error)
- func NewDeleteEnvAutoscalingGroupRequest(server string, name string, groupName string) (*http.Request, error)
- func NewDeleteEnvSandboxPoolRequest(server string, name string, poolName string) (*http.Request, error)
- func NewDeleteSandboxEnvRequest(server string, name string) (*http.Request, error)
- func NewDeleteSandboxRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
- func NewExecSandboxCommandRequest(server string, sandboxId PathSandboxId, body ExecSandboxCommandJSONRequestBody) (*http.Request, error)
- func NewExecSandboxCommandRequestWithBody(server string, sandboxId PathSandboxId, contentType string, body io.Reader) (*http.Request, error)
- func NewGetApprovalRequest(server string, approvalId string) (*http.Request, error)
- func NewGetEnvAutoscalingGroupRequest(server string, name string, groupName string) (*http.Request, error)
- func NewGetEnvAutoscalingRequest(server string, name string) (*http.Request, error)
- func NewGetEnvSandboxPoolRequest(server string, name string, poolName string) (*http.Request, error)
- func NewGetFeatureGatesRequest(server string) (*http.Request, error)
- func NewGetSandboxEnvRequest(server string, name string) (*http.Request, error)
- func NewGetSandboxLogsRequest(server string, sandboxId PathSandboxId, params *GetSandboxLogsParams) (*http.Request, error)
- func NewGetSandboxRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
- func NewGetSandboxTemplateRequest(server string, name PathTemplateName) (*http.Request, error)
- func NewGetUserSandboxStatisticsRequest(server string) (*http.Request, error)
- func NewGetWhoAmIRequest(server string) (*http.Request, error)
- func NewIsSandboxReadyRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
- func NewListAPIKeysRequest(server string, params *ListAPIKeysParams) (*http.Request, error)
- func NewListApprovalsRequest(server string) (*http.Request, error)
- func NewListClustersRequest(server string) (*http.Request, error)
- func NewListEnvAutoscalingGroupsRequest(server string, name string) (*http.Request, error)
- func NewListEnvEventsRequest(server string, name string, params *ListEnvEventsParams) (*http.Request, error)
- func NewListEnvSandboxPoolsRequest(server string, name string) (*http.Request, error)
- func NewListInstanceTypesRequest(server string) (*http.Request, error)
- func NewListNamespacesRequest(server string) (*http.Request, error)
- func NewListQuotasRequest(server string) (*http.Request, error)
- func NewListSandboxEnvsRequest(server string) (*http.Request, error)
- func NewListSandboxTemplatesRequest(server string) (*http.Request, error)
- func NewListSandboxesRequest(server string, params *ListSandboxesParams) (*http.Request, error)
- func NewListTeamsRequest(server string) (*http.Request, error)
- func NewListUsersByTeamRequest(server string, team PathTeam) (*http.Request, error)
- func NewListVolumesRequest(server string) (*http.Request, error)
- func NewPromoteAPIKeyRequest(server string, name PathAPIKeyName) (*http.Request, error)
- func NewRevokeApprovalGrantRequest(server string, grantId string) (*http.Request, error)
- func NewSelfCreateAPIKeyRequest(server string, body SelfCreateAPIKeyJSONRequestBody) (*http.Request, error)
- func NewSelfCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSelfDeleteAPIKeyRequest(server string, name PathAPIKeyName) (*http.Request, error)
- func NewSelfListAPIKeysRequest(server string) (*http.Request, error)
- func NewSetSandboxTimeoutRequest(server string, sandboxId PathSandboxId, body SetSandboxTimeoutJSONRequestBody) (*http.Request, error)
- func NewSetSandboxTimeoutRequestWithBody(server string, sandboxId PathSandboxId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateEnvAutoscalingGroupRequest(server string, name string, groupName string, ...) (*http.Request, error)
- func NewUpdateEnvAutoscalingGroupRequestWithBody(server string, name string, groupName string, contentType string, ...) (*http.Request, error)
- func NewUpdateEnvSandboxPoolRequest(server string, name string, poolName string, ...) (*http.Request, error)
- func NewUpdateEnvSandboxPoolRequestWithBody(server string, name string, poolName string, contentType string, ...) (*http.Request, error)
- func NewUpdateSandboxEnvRequest(server string, name string, body UpdateSandboxEnvJSONRequestBody) (*http.Request, error)
- func NewUpdateSandboxEnvRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type APIKeyItem
- type APIKeyItemMode
- type AdminCreateSandboxTemplate201JSONResponse
- type AdminCreateSandboxTemplate400JSONResponse
- type AdminCreateSandboxTemplate401JSONResponse
- type AdminCreateSandboxTemplate403JSONResponse
- type AdminCreateSandboxTemplate409JSONResponse
- type AdminCreateSandboxTemplate500JSONResponse
- type AdminCreateSandboxTemplateJSONRequestBody
- type AdminCreateSandboxTemplateRequestObject
- type AdminCreateSandboxTemplateResponse
- type AdminCreateSandboxTemplateResponseObject
- type AdminDeleteSandboxTemplate202JSONResponse
- type AdminDeleteSandboxTemplate401JSONResponse
- type AdminDeleteSandboxTemplate403JSONResponse
- type AdminDeleteSandboxTemplate404JSONResponse
- type AdminDeleteSandboxTemplate500JSONResponse
- type AdminDeleteSandboxTemplateRequestObject
- type AdminDeleteSandboxTemplateResponse
- type AdminDeleteSandboxTemplateResponseObject
- type AdminGetSandboxStatistics200JSONResponse
- type AdminGetSandboxStatistics401JSONResponse
- type AdminGetSandboxStatistics403JSONResponse
- type AdminGetSandboxStatistics500JSONResponse
- type AdminGetSandboxStatisticsRequestObject
- type AdminGetSandboxStatisticsResponse
- type AdminGetSandboxStatisticsResponseObject
- type AdminListSandboxTemplates200JSONResponse
- type AdminListSandboxTemplates401JSONResponse
- type AdminListSandboxTemplates403JSONResponse
- type AdminListSandboxTemplates500JSONResponse
- type AdminListSandboxTemplatesParams
- type AdminListSandboxTemplatesRequestObject
- type AdminListSandboxTemplatesResponse
- type AdminListSandboxTemplatesResponseObject
- type AdminUpdateSandboxTemplate200JSONResponse
- type AdminUpdateSandboxTemplate400JSONResponse
- type AdminUpdateSandboxTemplate401JSONResponse
- type AdminUpdateSandboxTemplate403JSONResponse
- type AdminUpdateSandboxTemplate404JSONResponse
- type AdminUpdateSandboxTemplate409JSONResponse
- type AdminUpdateSandboxTemplate500JSONResponse
- type AdminUpdateSandboxTemplateJSONRequestBody
- type AdminUpdateSandboxTemplateRequestObject
- type AdminUpdateSandboxTemplateResponse
- type AdminUpdateSandboxTemplateResponseObject
- type ApprovalDecisionRequest
- type ApprovalDecisionRequestDecision
- type ApprovalDecisionRequestScope
- type ApprovalGrant
- type ApprovalGrantScope
- type ApprovalPrincipal
- type ApprovalRequest
- type ApprovalRequestScope
- type ApprovalRequestStatus
- type Client
- func (c *Client) AdminCreateSandboxTemplate(ctx context.Context, body AdminCreateSandboxTemplateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminCreateSandboxTemplateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AdminDeleteSandboxTemplate(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AdminGetSandboxStatistics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AdminListSandboxTemplates(ctx context.Context, params *AdminListSandboxTemplatesParams, ...) (*http.Response, error)
- func (c *Client) AdminUpdateSandboxTemplate(ctx context.Context, name PathTemplateName, ...) (*http.Response, error)
- func (c *Client) AdminUpdateSandboxTemplateWithBody(ctx context.Context, name PathTemplateName, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateEnvSandboxPool(ctx context.Context, name string, body CreateEnvSandboxPoolJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEnvSandboxPoolWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSandbox(ctx context.Context, body CreateSandboxJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSandboxEnv(ctx context.Context, body CreateSandboxEnvJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSandboxEnvWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSandboxExecToken(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateSandboxWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DecideApproval(ctx context.Context, approvalId string, body DecideApprovalJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DecideApprovalWithBody(ctx context.Context, approvalId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteEnvAutoscalingGroup(ctx context.Context, name string, groupName string, ...) (*http.Response, error)
- func (c *Client) DeleteEnvSandboxPool(ctx context.Context, name string, poolName string, ...) (*http.Response, error)
- func (c *Client) DeleteSandbox(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSandboxEnv(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExecSandboxCommand(ctx context.Context, sandboxId PathSandboxId, ...) (*http.Response, error)
- func (c *Client) ExecSandboxCommandWithBody(ctx context.Context, sandboxId PathSandboxId, contentType string, ...) (*http.Response, error)
- func (c *Client) GetApproval(ctx context.Context, approvalId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEnvAutoscaling(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEnvAutoscalingGroup(ctx context.Context, name string, groupName string, ...) (*http.Response, error)
- func (c *Client) GetEnvSandboxPool(ctx context.Context, name string, poolName string, ...) (*http.Response, error)
- func (c *Client) GetFeatureGates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandbox(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandboxEnv(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandboxLogs(ctx context.Context, sandboxId PathSandboxId, params *GetSandboxLogsParams, ...) (*http.Response, error)
- func (c *Client) GetSandboxTemplate(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserSandboxStatistics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetWhoAmI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IsSandboxReady(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListApprovals(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEnvAutoscalingGroups(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEnvEvents(ctx context.Context, name string, params *ListEnvEventsParams, ...) (*http.Response, error)
- func (c *Client) ListEnvSandboxPools(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInstanceTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNamespaces(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListQuotas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSandboxEnvs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSandboxTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSandboxes(ctx context.Context, params *ListSandboxesParams, ...) (*http.Response, error)
- func (c *Client) ListTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUsersByTeam(ctx context.Context, team PathTeam, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListVolumes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PromoteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RevokeApprovalGrant(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SelfCreateAPIKey(ctx context.Context, body SelfCreateAPIKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SelfCreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SelfDeleteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SelfListAPIKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetSandboxTimeout(ctx context.Context, sandboxId PathSandboxId, ...) (*http.Response, error)
- func (c *Client) SetSandboxTimeoutWithBody(ctx context.Context, sandboxId PathSandboxId, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateEnvAutoscalingGroup(ctx context.Context, name string, groupName string, ...) (*http.Response, error)
- func (c *Client) UpdateEnvAutoscalingGroupWithBody(ctx context.Context, name string, groupName string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateEnvSandboxPool(ctx context.Context, name string, poolName string, ...) (*http.Response, error)
- func (c *Client) UpdateEnvSandboxPoolWithBody(ctx context.Context, name string, poolName string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateSandboxEnv(ctx context.Context, name string, body UpdateSandboxEnvJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSandboxEnvWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AdminCreateSandboxTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminCreateSandboxTemplateResponse, error)
- func (c *ClientWithResponses) AdminCreateSandboxTemplateWithResponse(ctx context.Context, body AdminCreateSandboxTemplateJSONRequestBody, ...) (*AdminCreateSandboxTemplateResponse, error)
- func (c *ClientWithResponses) AdminDeleteSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*AdminDeleteSandboxTemplateResponse, error)
- func (c *ClientWithResponses) AdminGetSandboxStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AdminGetSandboxStatisticsResponse, error)
- func (c *ClientWithResponses) AdminListSandboxTemplatesWithResponse(ctx context.Context, params *AdminListSandboxTemplatesParams, ...) (*AdminListSandboxTemplatesResponse, error)
- func (c *ClientWithResponses) AdminUpdateSandboxTemplateWithBodyWithResponse(ctx context.Context, name PathTemplateName, contentType string, body io.Reader, ...) (*AdminUpdateSandboxTemplateResponse, error)
- func (c *ClientWithResponses) AdminUpdateSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, ...) (*AdminUpdateSandboxTemplateResponse, error)
- func (c *ClientWithResponses) CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAPIKeyResponse, error)
- func (c *ClientWithResponses) CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, ...) (*CreateAPIKeyResponse, error)
- func (c *ClientWithResponses) CreateEnvSandboxPoolWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*CreateEnvSandboxPoolResponse, error)
- func (c *ClientWithResponses) CreateEnvSandboxPoolWithResponse(ctx context.Context, name string, body CreateEnvSandboxPoolJSONRequestBody, ...) (*CreateEnvSandboxPoolResponse, error)
- func (c *ClientWithResponses) CreateSandboxEnvWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSandboxEnvResponse, error)
- func (c *ClientWithResponses) CreateSandboxEnvWithResponse(ctx context.Context, body CreateSandboxEnvJSONRequestBody, ...) (*CreateSandboxEnvResponse, error)
- func (c *ClientWithResponses) CreateSandboxExecTokenWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*CreateSandboxExecTokenResponse, error)
- func (c *ClientWithResponses) CreateSandboxWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSandboxResponse, error)
- func (c *ClientWithResponses) CreateSandboxWithResponse(ctx context.Context, body CreateSandboxJSONRequestBody, ...) (*CreateSandboxResponse, error)
- func (c *ClientWithResponses) DecideApprovalWithBodyWithResponse(ctx context.Context, approvalId string, contentType string, body io.Reader, ...) (*DecideApprovalResponse, error)
- func (c *ClientWithResponses) DecideApprovalWithResponse(ctx context.Context, approvalId string, body DecideApprovalJSONRequestBody, ...) (*DecideApprovalResponse, error)
- func (c *ClientWithResponses) DeleteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error)
- func (c *ClientWithResponses) DeleteEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, ...) (*DeleteEnvAutoscalingGroupResponse, error)
- func (c *ClientWithResponses) DeleteEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, ...) (*DeleteEnvSandboxPoolResponse, error)
- func (c *ClientWithResponses) DeleteSandboxEnvWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteSandboxEnvResponse, error)
- func (c *ClientWithResponses) DeleteSandboxWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*DeleteSandboxResponse, error)
- func (c *ClientWithResponses) ExecSandboxCommandWithBodyWithResponse(ctx context.Context, sandboxId PathSandboxId, contentType string, ...) (*ExecSandboxCommandResponse, error)
- func (c *ClientWithResponses) ExecSandboxCommandWithResponse(ctx context.Context, sandboxId PathSandboxId, ...) (*ExecSandboxCommandResponse, error)
- func (c *ClientWithResponses) GetApprovalWithResponse(ctx context.Context, approvalId string, reqEditors ...RequestEditorFn) (*GetApprovalResponse, error)
- func (c *ClientWithResponses) GetEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, ...) (*GetEnvAutoscalingGroupResponse, error)
- func (c *ClientWithResponses) GetEnvAutoscalingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetEnvAutoscalingResponse, error)
- func (c *ClientWithResponses) GetEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, ...) (*GetEnvSandboxPoolResponse, error)
- func (c *ClientWithResponses) GetFeatureGatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeatureGatesResponse, error)
- func (c *ClientWithResponses) GetSandboxEnvWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetSandboxEnvResponse, error)
- func (c *ClientWithResponses) GetSandboxLogsWithResponse(ctx context.Context, sandboxId PathSandboxId, params *GetSandboxLogsParams, ...) (*GetSandboxLogsResponse, error)
- func (c *ClientWithResponses) GetSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*GetSandboxTemplateResponse, error)
- func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
- func (c *ClientWithResponses) GetUserSandboxStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserSandboxStatisticsResponse, error)
- func (c *ClientWithResponses) GetWhoAmIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWhoAmIResponse, error)
- func (c *ClientWithResponses) IsSandboxReadyWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*IsSandboxReadyResponse, error)
- func (c *ClientWithResponses) ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)
- func (c *ClientWithResponses) ListApprovalsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApprovalsResponse, error)
- func (c *ClientWithResponses) ListClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)
- func (c *ClientWithResponses) ListEnvAutoscalingGroupsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ListEnvAutoscalingGroupsResponse, error)
- func (c *ClientWithResponses) ListEnvEventsWithResponse(ctx context.Context, name string, params *ListEnvEventsParams, ...) (*ListEnvEventsResponse, error)
- func (c *ClientWithResponses) ListEnvSandboxPoolsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ListEnvSandboxPoolsResponse, error)
- func (c *ClientWithResponses) ListInstanceTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
- func (c *ClientWithResponses) ListNamespacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNamespacesResponse, error)
- func (c *ClientWithResponses) ListQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListQuotasResponse, error)
- func (c *ClientWithResponses) ListSandboxEnvsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxEnvsResponse, error)
- func (c *ClientWithResponses) ListSandboxTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxTemplatesResponse, error)
- func (c *ClientWithResponses) ListSandboxesWithResponse(ctx context.Context, params *ListSandboxesParams, ...) (*ListSandboxesResponse, error)
- func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
- func (c *ClientWithResponses) ListUsersByTeamWithResponse(ctx context.Context, team PathTeam, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error)
- func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
- func (c *ClientWithResponses) PromoteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*PromoteAPIKeyResponse, error)
- func (c *ClientWithResponses) RevokeApprovalGrantWithResponse(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*RevokeApprovalGrantResponse, error)
- func (c *ClientWithResponses) SelfCreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SelfCreateAPIKeyResponse, error)
- func (c *ClientWithResponses) SelfCreateAPIKeyWithResponse(ctx context.Context, body SelfCreateAPIKeyJSONRequestBody, ...) (*SelfCreateAPIKeyResponse, error)
- func (c *ClientWithResponses) SelfDeleteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*SelfDeleteAPIKeyResponse, error)
- func (c *ClientWithResponses) SelfListAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SelfListAPIKeysResponse, error)
- func (c *ClientWithResponses) SetSandboxTimeoutWithBodyWithResponse(ctx context.Context, sandboxId PathSandboxId, contentType string, ...) (*SetSandboxTimeoutResponse, error)
- func (c *ClientWithResponses) SetSandboxTimeoutWithResponse(ctx context.Context, sandboxId PathSandboxId, ...) (*SetSandboxTimeoutResponse, error)
- func (c *ClientWithResponses) UpdateEnvAutoscalingGroupWithBodyWithResponse(ctx context.Context, name string, groupName string, contentType string, ...) (*UpdateEnvAutoscalingGroupResponse, error)
- func (c *ClientWithResponses) UpdateEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, ...) (*UpdateEnvAutoscalingGroupResponse, error)
- func (c *ClientWithResponses) UpdateEnvSandboxPoolWithBodyWithResponse(ctx context.Context, name string, poolName string, contentType string, ...) (*UpdateEnvSandboxPoolResponse, error)
- func (c *ClientWithResponses) UpdateEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, ...) (*UpdateEnvSandboxPoolResponse, error)
- func (c *ClientWithResponses) UpdateSandboxEnvWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*UpdateSandboxEnvResponse, error)
- func (c *ClientWithResponses) UpdateSandboxEnvWithResponse(ctx context.Context, name string, body UpdateSandboxEnvJSONRequestBody, ...) (*UpdateSandboxEnvResponse, error)
- type ClientWithResponsesInterface
- type ClusterSummary
- type CreateAPIKey201JSONResponse
- type CreateAPIKey400JSONResponse
- type CreateAPIKey401JSONResponse
- type CreateAPIKey403JSONResponse
- type CreateAPIKey503JSONResponse
- type CreateAPIKeyJSONRequestBody
- type CreateAPIKeyRequest
- type CreateAPIKeyRequestObject
- type CreateAPIKeyResponse
- type CreateAPIKeyResponseObject
- type CreateAPIKeyResult
- type CreateEnvSandboxPool202JSONResponse
- type CreateEnvSandboxPool400JSONResponse
- type CreateEnvSandboxPool401JSONResponse
- type CreateEnvSandboxPool404JSONResponse
- type CreateEnvSandboxPool409JSONResponse
- type CreateEnvSandboxPool500JSONResponse
- type CreateEnvSandboxPool503JSONResponse
- type CreateEnvSandboxPoolJSONRequestBody
- type CreateEnvSandboxPoolRequest
- type CreateEnvSandboxPoolRequestObject
- type CreateEnvSandboxPoolResponse
- type CreateEnvSandboxPoolResponseObject
- type CreateSandbox201JSONResponse
- type CreateSandbox400JSONResponse
- type CreateSandbox401JSONResponse
- type CreateSandbox403JSONResponse
- type CreateSandbox404JSONResponse
- type CreateSandbox409JSONResponse
- type CreateSandbox429JSONResponse
- type CreateSandbox500JSONResponse
- type CreateSandboxEnv201JSONResponse
- type CreateSandboxEnv400JSONResponse
- type CreateSandboxEnv401JSONResponse
- type CreateSandboxEnv409JSONResponse
- type CreateSandboxEnv500JSONResponse
- type CreateSandboxEnvJSONRequestBody
- type CreateSandboxEnvRequest
- type CreateSandboxEnvRequestMode
- type CreateSandboxEnvRequestObject
- type CreateSandboxEnvResponse
- type CreateSandboxEnvResponseObject
- type CreateSandboxExecToken200JSONResponse
- type CreateSandboxExecToken400JSONResponse
- type CreateSandboxExecToken401JSONResponse
- type CreateSandboxExecToken404JSONResponse
- type CreateSandboxExecToken500JSONResponse
- type CreateSandboxExecTokenRequestObject
- type CreateSandboxExecTokenResponse
- type CreateSandboxExecTokenResponseObject
- type CreateSandboxJSONRequestBody
- type CreateSandboxRequest
- type CreateSandboxRequestObject
- type CreateSandboxResponse
- type CreateSandboxResponseObject
- type DecideApproval200JSONResponse
- type DecideApproval400JSONResponse
- type DecideApproval403JSONResponse
- type DecideApproval404JSONResponse
- type DecideApprovalJSONRequestBody
- type DecideApprovalRequestObject
- type DecideApprovalResponse
- type DecideApprovalResponseObject
- type DeleteAPIKey200JSONResponse
- type DeleteAPIKey401JSONResponse
- type DeleteAPIKey403JSONResponse
- type DeleteAPIKey404JSONResponse
- type DeleteAPIKey503JSONResponse
- type DeleteAPIKeyRequestObject
- type DeleteAPIKeyResponse
- type DeleteAPIKeyResponseObject
- type DeleteAPIKeyResult
- type DeleteEnvAutoscalingGroup200JSONResponse
- type DeleteEnvAutoscalingGroup401JSONResponse
- type DeleteEnvAutoscalingGroup404JSONResponse
- type DeleteEnvAutoscalingGroup500JSONResponse
- type DeleteEnvAutoscalingGroupRequestObject
- type DeleteEnvAutoscalingGroupResponse
- type DeleteEnvAutoscalingGroupResponseObject
- type DeleteEnvAutoscalingGroupResult
- type DeleteEnvSandboxPool202JSONResponse
- type DeleteEnvSandboxPool401JSONResponse
- type DeleteEnvSandboxPool404JSONResponse
- type DeleteEnvSandboxPool500JSONResponse
- type DeleteEnvSandboxPool503JSONResponse
- type DeleteEnvSandboxPoolRequestObject
- type DeleteEnvSandboxPoolResponse
- type DeleteEnvSandboxPoolResponseObject
- type DeleteSandbox202JSONResponse
- type DeleteSandbox401JSONResponse
- type DeleteSandbox404JSONResponse
- type DeleteSandbox500JSONResponse
- type DeleteSandboxEnv202JSONResponse
- type DeleteSandboxEnv401JSONResponse
- type DeleteSandboxEnv404JSONResponse
- type DeleteSandboxEnv500JSONResponse
- type DeleteSandboxEnvRequestObject
- type DeleteSandboxEnvResponse
- type DeleteSandboxEnvResponseObject
- type DeleteSandboxEnvResult
- type DeleteSandboxPoolResult
- type DeleteSandboxRequestObject
- type DeleteSandboxResponse
- type DeleteSandboxResponseObject
- type DeleteSandboxResult
- type DeleteSandboxTemplateResult
- type EnvAutoscalingGroup
- type EnvAutoscalingGroupEnvelope
- type EnvAutoscalingSpec
- type EnvAutoscalingSpecEnvelope
- type EnvClusterMember
- type EnvClusterMemberConfig
- type EnvClusterSpec
- type EnvClusterStatus
- type EnvCondition
- type EnvEvent
- type EnvObservedMember
- type EnvObservedMemberState
- type EnvOverrides
- type EnvOverridesPodCreationImagePolicy
- type EnvScalingGroupStatus
- type EnvUpdateStrategy
- type EnvVolumeMount
- type EnvdSpec
- type ErrorResponse
- type ExecCommandRequest
- type ExecCommandResult
- type ExecSandboxCommand200JSONResponse
- type ExecSandboxCommand400JSONResponse
- type ExecSandboxCommand401JSONResponse
- type ExecSandboxCommand404JSONResponse
- type ExecSandboxCommand500JSONResponse
- type ExecSandboxCommandJSONRequestBody
- type ExecSandboxCommandRequestObject
- type ExecSandboxCommandResponse
- type ExecSandboxCommandResponseObject
- type ExecTokenResponse
- type FeatureGates
- type GatewaySpec
- type GetApproval200JSONResponse
- type GetApproval404JSONResponse
- type GetApprovalRequestObject
- type GetApprovalResponse
- type GetApprovalResponseObject
- type GetEnvAutoscaling200JSONResponse
- type GetEnvAutoscaling401JSONResponse
- type GetEnvAutoscaling404JSONResponse
- type GetEnvAutoscaling500JSONResponse
- type GetEnvAutoscalingGroup200JSONResponse
- type GetEnvAutoscalingGroup401JSONResponse
- type GetEnvAutoscalingGroup404JSONResponse
- type GetEnvAutoscalingGroup500JSONResponse
- type GetEnvAutoscalingGroupRequestObject
- type GetEnvAutoscalingGroupResponse
- type GetEnvAutoscalingGroupResponseObject
- type GetEnvAutoscalingRequestObject
- type GetEnvAutoscalingResponse
- type GetEnvAutoscalingResponseObject
- type GetEnvSandboxPool200JSONResponse
- type GetEnvSandboxPool401JSONResponse
- type GetEnvSandboxPool404JSONResponse
- type GetEnvSandboxPool500JSONResponse
- type GetEnvSandboxPoolRequestObject
- type GetEnvSandboxPoolResponse
- type GetEnvSandboxPoolResponseObject
- type GetFeatureGates200JSONResponse
- type GetFeatureGates401JSONResponse
- type GetFeatureGates500JSONResponse
- type GetFeatureGatesRequestObject
- type GetFeatureGatesResponse
- type GetFeatureGatesResponseObject
- type GetSandbox200JSONResponse
- type GetSandbox401JSONResponse
- type GetSandbox404JSONResponse
- type GetSandbox500JSONResponse
- type GetSandboxEnv200JSONResponse
- type GetSandboxEnv401JSONResponse
- type GetSandboxEnv404JSONResponse
- type GetSandboxEnv500JSONResponse
- type GetSandboxEnvRequestObject
- type GetSandboxEnvResponse
- type GetSandboxEnvResponseObject
- type GetSandboxLogs200JSONResponse
- type GetSandboxLogs400JSONResponse
- type GetSandboxLogs401JSONResponse
- type GetSandboxLogs404JSONResponse
- type GetSandboxLogs500JSONResponse
- type GetSandboxLogsParams
- type GetSandboxLogsRequestObject
- type GetSandboxLogsResponse
- type GetSandboxLogsResponseObject
- type GetSandboxRequestObject
- type GetSandboxResponse
- type GetSandboxResponseObject
- type GetSandboxTemplate200JSONResponse
- type GetSandboxTemplate401JSONResponse
- type GetSandboxTemplate404JSONResponse
- type GetSandboxTemplate500JSONResponse
- type GetSandboxTemplateRequestObject
- type GetSandboxTemplateResponse
- type GetSandboxTemplateResponseObject
- type GetUserSandboxStatistics200JSONResponse
- type GetUserSandboxStatistics401JSONResponse
- type GetUserSandboxStatistics500JSONResponse
- type GetUserSandboxStatisticsRequestObject
- type GetUserSandboxStatisticsResponse
- type GetUserSandboxStatisticsResponseObject
- type GetWhoAmI200JSONResponse
- type GetWhoAmI401JSONResponse
- type GetWhoAmIRequestObject
- type GetWhoAmIResponse
- type GetWhoAmIResponseObject
- type GinServerOptions
- type HttpRequestDoer
- type ImagePullSecretInput
- type InstanceTypeItem
- type IsSandboxReady200JSONResponse
- type IsSandboxReady404JSONResponse
- type IsSandboxReady500JSONResponse
- type IsSandboxReady503JSONResponse
- type IsSandboxReadyRequestObject
- type IsSandboxReadyResponse
- type IsSandboxReadyResponseObject
- type ListAPIKeys200JSONResponse
- type ListAPIKeys401JSONResponse
- type ListAPIKeys403JSONResponse
- type ListAPIKeys503JSONResponse
- type ListAPIKeysParams
- type ListAPIKeysRequestObject
- type ListAPIKeysResponse
- type ListAPIKeysResponseObject
- type ListAPIKeysResult
- type ListApprovals200JSONResponse
- type ListApprovalsRequestObject
- type ListApprovalsResponse
- type ListApprovalsResponseObject
- type ListApprovalsResult
- type ListClusters200JSONResponse
- type ListClusters401JSONResponse
- type ListClusters500JSONResponse
- type ListClustersRequestObject
- type ListClustersResponse
- type ListClustersResponseObject
- type ListClustersResult
- type ListEnvAutoscalingGroups200JSONResponse
- type ListEnvAutoscalingGroups401JSONResponse
- type ListEnvAutoscalingGroups404JSONResponse
- type ListEnvAutoscalingGroups500JSONResponse
- type ListEnvAutoscalingGroupsRequestObject
- type ListEnvAutoscalingGroupsResponse
- type ListEnvAutoscalingGroupsResponseObject
- type ListEnvAutoscalingGroupsResult
- type ListEnvEvents200JSONResponse
- type ListEnvEvents401JSONResponse
- type ListEnvEvents404JSONResponse
- type ListEnvEvents500JSONResponse
- type ListEnvEventsParams
- type ListEnvEventsRequestObject
- type ListEnvEventsResponse
- type ListEnvEventsResponseObject
- type ListEnvEventsResult
- type ListEnvSandboxPools200JSONResponse
- type ListEnvSandboxPools401JSONResponse
- type ListEnvSandboxPools404JSONResponse
- type ListEnvSandboxPools500JSONResponse
- type ListEnvSandboxPoolsRequestObject
- type ListEnvSandboxPoolsResponse
- type ListEnvSandboxPoolsResponseObject
- type ListInstanceTypes200JSONResponse
- type ListInstanceTypes401JSONResponse
- type ListInstanceTypes500JSONResponse
- type ListInstanceTypesRequestObject
- type ListInstanceTypesResponse
- type ListInstanceTypesResponseObject
- type ListInstanceTypesResult
- type ListNamespaces200JSONResponse
- type ListNamespaces401JSONResponse
- type ListNamespaces403JSONResponse
- type ListNamespaces500JSONResponse
- type ListNamespacesRequestObject
- type ListNamespacesResponse
- type ListNamespacesResponseObject
- type ListQuotas200JSONResponse
- type ListQuotas401JSONResponse
- type ListQuotas403JSONResponse
- type ListQuotas500JSONResponse
- type ListQuotasRequestObject
- type ListQuotasResponse
- type ListQuotasResponseObject
- type ListQuotasResult
- type ListSandboxEnvs200JSONResponse
- type ListSandboxEnvs401JSONResponse
- type ListSandboxEnvs500JSONResponse
- type ListSandboxEnvsRequestObject
- type ListSandboxEnvsResponse
- type ListSandboxEnvsResponseObject
- type ListSandboxEnvsResult
- type ListSandboxPoolsResult
- type ListSandboxTemplates200JSONResponse
- type ListSandboxTemplates401JSONResponse
- type ListSandboxTemplates500JSONResponse
- type ListSandboxTemplatesRequestObject
- type ListSandboxTemplatesResponse
- type ListSandboxTemplatesResponseObject
- type ListSandboxTemplatesResult
- type ListSandboxes200JSONResponse
- type ListSandboxes401JSONResponse
- type ListSandboxes500JSONResponse
- type ListSandboxesParams
- type ListSandboxesRequestObject
- type ListSandboxesResponse
- type ListSandboxesResponseObject
- type ListSandboxesResult
- type ListTeams200JSONResponse
- type ListTeams401JSONResponse
- type ListTeams403JSONResponse
- type ListTeams500JSONResponse
- type ListTeamsRequestObject
- type ListTeamsResponse
- type ListTeamsResponseObject
- type ListUsersByTeam200JSONResponse
- type ListUsersByTeam400JSONResponse
- type ListUsersByTeam401JSONResponse
- type ListUsersByTeam403JSONResponse
- type ListUsersByTeam500JSONResponse
- type ListUsersByTeamRequestObject
- type ListUsersByTeamResponse
- type ListUsersByTeamResponseObject
- type ListVolumes200JSONResponse
- type ListVolumes401JSONResponse
- type ListVolumes500JSONResponse
- type ListVolumesRequestObject
- type ListVolumesResponse
- type ListVolumesResponseObject
- type ListVolumesResult
- type MiddlewareFunc
- type NamespacesResult
- type PathAPIKeyName
- type PathSandboxId
- type PathTeam
- type PathTemplateName
- type PoolAutoScalingStatus
- type PoolAutoScalingStatusLastScaleUpAttemptResult
- type PoolScaleDownPolicy
- type PoolScaleUpPolicy
- type PoolScaleUpPolicyMode
- type PoolSizing
- type PoolTemplateOverrides
- type PromoteAPIKey200JSONResponse
- type PromoteAPIKey401JSONResponse
- type PromoteAPIKey403JSONResponse
- type PromoteAPIKey404JSONResponse
- type PromoteAPIKey409JSONResponse
- type PromoteAPIKey503JSONResponse
- type PromoteAPIKeyRequestObject
- type PromoteAPIKeyResponse
- type PromoteAPIKeyResponseObject
- type PromoteAPIKeyResult
- type QueryLimit
- type QueryNamespace
- type QueryOffset
- type QueryPoolName
- type QuerySandboxStatus
- type Quota
- type QuotaResources
- type RegistryCredential
- type RequestEditorFn
- type ResourceRequirements
- type RevokeApprovalGrant204Response
- type RevokeApprovalGrant404JSONResponse
- type RevokeApprovalGrantRequestObject
- type RevokeApprovalGrantResponse
- type RevokeApprovalGrantResponseObject
- type Sandbox
- type SandboxEndpoint
- type SandboxEnv
- type SandboxEnvDefaults
- type SandboxEnvEnvelope
- type SandboxEnvName
- type SandboxEnvSpec
- type SandboxEnvSpecMode
- type SandboxEnvStatus
- type SandboxEnvSummary
- type SandboxEnvSummaryMode
- type SandboxEnvTemplateRef
- type SandboxEnvelope
- type SandboxLogEntry
- type SandboxLogsResult
- type SandboxLogsResultSource
- type SandboxPool
- type SandboxPoolEnvelope
- type SandboxPoolSpec
- type SandboxPoolSpecPodCreationImagePolicy
- type SandboxPoolStatus
- type SandboxPoolStatusPhase
- type SandboxPoolSummary
- type SandboxReadinessResult
- type SandboxStatistics
- type SandboxStatisticsEnvelope
- type SandboxStatus
- type SandboxStatusDetail
- type SandboxTemplate
- type SandboxTemplateEnvelope
- type SandboxTemplateSummary
- type SelfCreateAPIKey201JSONResponse
- type SelfCreateAPIKey400JSONResponse
- type SelfCreateAPIKey503JSONResponse
- type SelfCreateAPIKeyJSONRequestBody
- type SelfCreateAPIKeyRequest
- type SelfCreateAPIKeyRequestMode
- type SelfCreateAPIKeyRequestObject
- type SelfCreateAPIKeyResponse
- type SelfCreateAPIKeyResponseObject
- type SelfDeleteAPIKey200JSONResponse
- type SelfDeleteAPIKey403JSONResponse
- type SelfDeleteAPIKey404JSONResponse
- type SelfDeleteAPIKey503JSONResponse
- type SelfDeleteAPIKeyRequestObject
- type SelfDeleteAPIKeyResponse
- type SelfDeleteAPIKeyResponseObject
- type SelfListAPIKeys200JSONResponse
- type SelfListAPIKeys503JSONResponse
- type SelfListAPIKeysRequestObject
- type SelfListAPIKeysResponse
- type SelfListAPIKeysResponseObject
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AdminCreateSandboxTemplate(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AdminDeleteSandboxTemplate(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AdminGetSandboxStatistics(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AdminListSandboxTemplates(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AdminUpdateSandboxTemplate(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateAPIKey(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateEnvSandboxPool(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateSandbox(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateSandboxEnv(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateSandboxExecToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DecideApproval(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteAPIKey(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteEnvAutoscalingGroup(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteEnvSandboxPool(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteSandbox(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteSandboxEnv(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ExecSandboxCommand(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetApproval(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetEnvAutoscaling(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetEnvAutoscalingGroup(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetEnvSandboxPool(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetFeatureGates(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetSandbox(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetSandboxEnv(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetSandboxLogs(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetSandboxTemplate(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetUserSandboxStatistics(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetWhoAmI(c *gin.Context)
- func (siw *ServerInterfaceWrapper) IsSandboxReady(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListAPIKeys(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListApprovals(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListClusters(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListEnvAutoscalingGroups(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListEnvEvents(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListEnvSandboxPools(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListInstanceTypes(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListNamespaces(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListQuotas(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListSandboxEnvs(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListSandboxTemplates(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListSandboxes(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListTeams(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListUsersByTeam(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListVolumes(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PromoteAPIKey(c *gin.Context)
- func (siw *ServerInterfaceWrapper) RevokeApprovalGrant(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SelfCreateAPIKey(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SelfDeleteAPIKey(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SelfListAPIKeys(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SetSandboxTimeout(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateEnvAutoscalingGroup(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateEnvSandboxPool(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateSandboxEnv(c *gin.Context)
- type SetSandboxTimeout204Response
- type SetSandboxTimeout401JSONResponse
- type SetSandboxTimeout404JSONResponse
- type SetSandboxTimeout500JSONResponse
- type SetSandboxTimeoutJSONRequestBody
- type SetSandboxTimeoutRequest
- type SetSandboxTimeoutRequestObject
- type SetSandboxTimeoutResponse
- type SetSandboxTimeoutResponseObject
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type StringMap
- type TeamsResult
- type UpdateEnvAutoscalingGroup200JSONResponse
- type UpdateEnvAutoscalingGroup400JSONResponse
- type UpdateEnvAutoscalingGroup401JSONResponse
- type UpdateEnvAutoscalingGroup404JSONResponse
- type UpdateEnvAutoscalingGroup500JSONResponse
- type UpdateEnvAutoscalingGroupJSONRequestBody
- type UpdateEnvAutoscalingGroupRequest
- type UpdateEnvAutoscalingGroupRequestObject
- type UpdateEnvAutoscalingGroupResponse
- type UpdateEnvAutoscalingGroupResponseObject
- type UpdateEnvSandboxPool200JSONResponse
- type UpdateEnvSandboxPool400JSONResponse
- type UpdateEnvSandboxPool401JSONResponse
- type UpdateEnvSandboxPool404JSONResponse
- type UpdateEnvSandboxPool500JSONResponse
- type UpdateEnvSandboxPool503JSONResponse
- type UpdateEnvSandboxPoolJSONRequestBody
- type UpdateEnvSandboxPoolRequest
- type UpdateEnvSandboxPoolRequestObject
- type UpdateEnvSandboxPoolResponse
- type UpdateEnvSandboxPoolResponseObject
- type UpdateSandboxEnv200JSONResponse
- type UpdateSandboxEnv400JSONResponse
- type UpdateSandboxEnv401JSONResponse
- type UpdateSandboxEnv404JSONResponse
- type UpdateSandboxEnv500JSONResponse
- type UpdateSandboxEnvJSONRequestBody
- type UpdateSandboxEnvRequest
- type UpdateSandboxEnvRequestObject
- type UpdateSandboxEnvResponse
- type UpdateSandboxEnvResponseObject
- type UpsertSandboxEnvRequest
- type UpsertSandboxEnvRequestMode
- type UpsertSandboxPoolRequest
- type UpsertSandboxTemplateRequest
- type UserSandboxStatistics
- type UserSandboxStatisticsEnvelope
- type UsersResult
- type VolumeItem
- type WhoAmIResult
- type WhoAmIResultMode
Constants ¶
const ( AdminKeyAuthScopes = "AdminKeyAuth.Scopes" ApiKeyAuthScopes = "ApiKeyAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewAdminCreateSandboxTemplateRequest ¶
func NewAdminCreateSandboxTemplateRequest(server string, body AdminCreateSandboxTemplateJSONRequestBody) (*http.Request, error)
NewAdminCreateSandboxTemplateRequest calls the generic AdminCreateSandboxTemplate builder with application/json body
func NewAdminCreateSandboxTemplateRequestWithBody ¶
func NewAdminCreateSandboxTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminCreateSandboxTemplateRequestWithBody generates requests for AdminCreateSandboxTemplate with any type of body
func NewAdminDeleteSandboxTemplateRequest ¶
func NewAdminDeleteSandboxTemplateRequest(server string, name PathTemplateName) (*http.Request, error)
NewAdminDeleteSandboxTemplateRequest generates requests for AdminDeleteSandboxTemplate
func NewAdminGetSandboxStatisticsRequest ¶
NewAdminGetSandboxStatisticsRequest generates requests for AdminGetSandboxStatistics
func NewAdminListSandboxTemplatesRequest ¶ added in v0.0.2
func NewAdminListSandboxTemplatesRequest(server string, params *AdminListSandboxTemplatesParams) (*http.Request, error)
NewAdminListSandboxTemplatesRequest generates requests for AdminListSandboxTemplates
func NewAdminUpdateSandboxTemplateRequest ¶
func NewAdminUpdateSandboxTemplateRequest(server string, name PathTemplateName, body AdminUpdateSandboxTemplateJSONRequestBody) (*http.Request, error)
NewAdminUpdateSandboxTemplateRequest calls the generic AdminUpdateSandboxTemplate builder with application/json body
func NewAdminUpdateSandboxTemplateRequestWithBody ¶
func NewAdminUpdateSandboxTemplateRequestWithBody(server string, name PathTemplateName, contentType string, body io.Reader) (*http.Request, error)
NewAdminUpdateSandboxTemplateRequestWithBody generates requests for AdminUpdateSandboxTemplate with any type of body
func NewCreateAPIKeyRequest ¶
func NewCreateAPIKeyRequest(server string, body CreateAPIKeyJSONRequestBody) (*http.Request, error)
NewCreateAPIKeyRequest calls the generic CreateAPIKey builder with application/json body
func NewCreateAPIKeyRequestWithBody ¶
func NewCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAPIKeyRequestWithBody generates requests for CreateAPIKey with any type of body
func NewCreateEnvSandboxPoolRequest ¶ added in v0.0.5
func NewCreateEnvSandboxPoolRequest(server string, name string, body CreateEnvSandboxPoolJSONRequestBody) (*http.Request, error)
NewCreateEnvSandboxPoolRequest calls the generic CreateEnvSandboxPool builder with application/json body
func NewCreateEnvSandboxPoolRequestWithBody ¶ added in v0.0.5
func NewCreateEnvSandboxPoolRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEnvSandboxPoolRequestWithBody generates requests for CreateEnvSandboxPool with any type of body
func NewCreateSandboxEnvRequest ¶ added in v0.0.5
func NewCreateSandboxEnvRequest(server string, body CreateSandboxEnvJSONRequestBody) (*http.Request, error)
NewCreateSandboxEnvRequest calls the generic CreateSandboxEnv builder with application/json body
func NewCreateSandboxEnvRequestWithBody ¶ added in v0.0.5
func NewCreateSandboxEnvRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSandboxEnvRequestWithBody generates requests for CreateSandboxEnv with any type of body
func NewCreateSandboxExecTokenRequest ¶
func NewCreateSandboxExecTokenRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
NewCreateSandboxExecTokenRequest generates requests for CreateSandboxExecToken
func NewCreateSandboxRequest ¶
func NewCreateSandboxRequest(server string, body CreateSandboxJSONRequestBody) (*http.Request, error)
NewCreateSandboxRequest calls the generic CreateSandbox builder with application/json body
func NewCreateSandboxRequestWithBody ¶
func NewCreateSandboxRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSandboxRequestWithBody generates requests for CreateSandbox with any type of body
func NewDecideApprovalRequest ¶ added in v0.0.11
func NewDecideApprovalRequest(server string, approvalId string, body DecideApprovalJSONRequestBody) (*http.Request, error)
NewDecideApprovalRequest calls the generic DecideApproval builder with application/json body
func NewDecideApprovalRequestWithBody ¶ added in v0.0.11
func NewDecideApprovalRequestWithBody(server string, approvalId string, contentType string, body io.Reader) (*http.Request, error)
NewDecideApprovalRequestWithBody generates requests for DecideApproval with any type of body
func NewDeleteAPIKeyRequest ¶
func NewDeleteAPIKeyRequest(server string, name PathAPIKeyName) (*http.Request, error)
NewDeleteAPIKeyRequest generates requests for DeleteAPIKey
func NewDeleteEnvAutoscalingGroupRequest ¶ added in v0.0.5
func NewDeleteEnvAutoscalingGroupRequest(server string, name string, groupName string) (*http.Request, error)
NewDeleteEnvAutoscalingGroupRequest generates requests for DeleteEnvAutoscalingGroup
func NewDeleteEnvSandboxPoolRequest ¶ added in v0.0.5
func NewDeleteEnvSandboxPoolRequest(server string, name string, poolName string) (*http.Request, error)
NewDeleteEnvSandboxPoolRequest generates requests for DeleteEnvSandboxPool
func NewDeleteSandboxEnvRequest ¶ added in v0.0.5
NewDeleteSandboxEnvRequest generates requests for DeleteSandboxEnv
func NewDeleteSandboxRequest ¶
func NewDeleteSandboxRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
NewDeleteSandboxRequest generates requests for DeleteSandbox
func NewExecSandboxCommandRequest ¶
func NewExecSandboxCommandRequest(server string, sandboxId PathSandboxId, body ExecSandboxCommandJSONRequestBody) (*http.Request, error)
NewExecSandboxCommandRequest calls the generic ExecSandboxCommand builder with application/json body
func NewExecSandboxCommandRequestWithBody ¶
func NewExecSandboxCommandRequestWithBody(server string, sandboxId PathSandboxId, contentType string, body io.Reader) (*http.Request, error)
NewExecSandboxCommandRequestWithBody generates requests for ExecSandboxCommand with any type of body
func NewGetApprovalRequest ¶ added in v0.0.11
NewGetApprovalRequest generates requests for GetApproval
func NewGetEnvAutoscalingGroupRequest ¶ added in v0.0.5
func NewGetEnvAutoscalingGroupRequest(server string, name string, groupName string) (*http.Request, error)
NewGetEnvAutoscalingGroupRequest generates requests for GetEnvAutoscalingGroup
func NewGetEnvAutoscalingRequest ¶ added in v0.0.5
NewGetEnvAutoscalingRequest generates requests for GetEnvAutoscaling
func NewGetEnvSandboxPoolRequest ¶ added in v0.0.5
func NewGetEnvSandboxPoolRequest(server string, name string, poolName string) (*http.Request, error)
NewGetEnvSandboxPoolRequest generates requests for GetEnvSandboxPool
func NewGetFeatureGatesRequest ¶
NewGetFeatureGatesRequest generates requests for GetFeatureGates
func NewGetSandboxEnvRequest ¶ added in v0.0.5
NewGetSandboxEnvRequest generates requests for GetSandboxEnv
func NewGetSandboxLogsRequest ¶
func NewGetSandboxLogsRequest(server string, sandboxId PathSandboxId, params *GetSandboxLogsParams) (*http.Request, error)
NewGetSandboxLogsRequest generates requests for GetSandboxLogs
func NewGetSandboxRequest ¶
func NewGetSandboxRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
NewGetSandboxRequest generates requests for GetSandbox
func NewGetSandboxTemplateRequest ¶
func NewGetSandboxTemplateRequest(server string, name PathTemplateName) (*http.Request, error)
NewGetSandboxTemplateRequest generates requests for GetSandboxTemplate
func NewGetUserSandboxStatisticsRequest ¶
NewGetUserSandboxStatisticsRequest generates requests for GetUserSandboxStatistics
func NewGetWhoAmIRequest ¶
NewGetWhoAmIRequest generates requests for GetWhoAmI
func NewIsSandboxReadyRequest ¶
func NewIsSandboxReadyRequest(server string, sandboxId PathSandboxId) (*http.Request, error)
NewIsSandboxReadyRequest generates requests for IsSandboxReady
func NewListAPIKeysRequest ¶
func NewListAPIKeysRequest(server string, params *ListAPIKeysParams) (*http.Request, error)
NewListAPIKeysRequest generates requests for ListAPIKeys
func NewListApprovalsRequest ¶ added in v0.0.11
NewListApprovalsRequest generates requests for ListApprovals
func NewListClustersRequest ¶
NewListClustersRequest generates requests for ListClusters
func NewListEnvAutoscalingGroupsRequest ¶ added in v0.0.5
NewListEnvAutoscalingGroupsRequest generates requests for ListEnvAutoscalingGroups
func NewListEnvEventsRequest ¶ added in v0.0.5
func NewListEnvEventsRequest(server string, name string, params *ListEnvEventsParams) (*http.Request, error)
NewListEnvEventsRequest generates requests for ListEnvEvents
func NewListEnvSandboxPoolsRequest ¶ added in v0.0.5
NewListEnvSandboxPoolsRequest generates requests for ListEnvSandboxPools
func NewListInstanceTypesRequest ¶ added in v0.0.5
NewListInstanceTypesRequest generates requests for ListInstanceTypes
func NewListNamespacesRequest ¶
NewListNamespacesRequest generates requests for ListNamespaces
func NewListQuotasRequest ¶
NewListQuotasRequest generates requests for ListQuotas
func NewListSandboxEnvsRequest ¶ added in v0.0.5
NewListSandboxEnvsRequest generates requests for ListSandboxEnvs
func NewListSandboxTemplatesRequest ¶
NewListSandboxTemplatesRequest generates requests for ListSandboxTemplates
func NewListSandboxesRequest ¶
func NewListSandboxesRequest(server string, params *ListSandboxesParams) (*http.Request, error)
NewListSandboxesRequest generates requests for ListSandboxes
func NewListTeamsRequest ¶
NewListTeamsRequest generates requests for ListTeams
func NewListUsersByTeamRequest ¶
NewListUsersByTeamRequest generates requests for ListUsersByTeam
func NewListVolumesRequest ¶ added in v0.0.10
NewListVolumesRequest generates requests for ListVolumes
func NewPromoteAPIKeyRequest ¶
func NewPromoteAPIKeyRequest(server string, name PathAPIKeyName) (*http.Request, error)
NewPromoteAPIKeyRequest generates requests for PromoteAPIKey
func NewRevokeApprovalGrantRequest ¶ added in v0.0.11
NewRevokeApprovalGrantRequest generates requests for RevokeApprovalGrant
func NewSelfCreateAPIKeyRequest ¶
func NewSelfCreateAPIKeyRequest(server string, body SelfCreateAPIKeyJSONRequestBody) (*http.Request, error)
NewSelfCreateAPIKeyRequest calls the generic SelfCreateAPIKey builder with application/json body
func NewSelfCreateAPIKeyRequestWithBody ¶
func NewSelfCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSelfCreateAPIKeyRequestWithBody generates requests for SelfCreateAPIKey with any type of body
func NewSelfDeleteAPIKeyRequest ¶
func NewSelfDeleteAPIKeyRequest(server string, name PathAPIKeyName) (*http.Request, error)
NewSelfDeleteAPIKeyRequest generates requests for SelfDeleteAPIKey
func NewSelfListAPIKeysRequest ¶
NewSelfListAPIKeysRequest generates requests for SelfListAPIKeys
func NewSetSandboxTimeoutRequest ¶
func NewSetSandboxTimeoutRequest(server string, sandboxId PathSandboxId, body SetSandboxTimeoutJSONRequestBody) (*http.Request, error)
NewSetSandboxTimeoutRequest calls the generic SetSandboxTimeout builder with application/json body
func NewSetSandboxTimeoutRequestWithBody ¶
func NewSetSandboxTimeoutRequestWithBody(server string, sandboxId PathSandboxId, contentType string, body io.Reader) (*http.Request, error)
NewSetSandboxTimeoutRequestWithBody generates requests for SetSandboxTimeout with any type of body
func NewUpdateEnvAutoscalingGroupRequest ¶ added in v0.0.5
func NewUpdateEnvAutoscalingGroupRequest(server string, name string, groupName string, body UpdateEnvAutoscalingGroupJSONRequestBody) (*http.Request, error)
NewUpdateEnvAutoscalingGroupRequest calls the generic UpdateEnvAutoscalingGroup builder with application/json body
func NewUpdateEnvAutoscalingGroupRequestWithBody ¶ added in v0.0.5
func NewUpdateEnvAutoscalingGroupRequestWithBody(server string, name string, groupName string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEnvAutoscalingGroupRequestWithBody generates requests for UpdateEnvAutoscalingGroup with any type of body
func NewUpdateEnvSandboxPoolRequest ¶ added in v0.0.5
func NewUpdateEnvSandboxPoolRequest(server string, name string, poolName string, body UpdateEnvSandboxPoolJSONRequestBody) (*http.Request, error)
NewUpdateEnvSandboxPoolRequest calls the generic UpdateEnvSandboxPool builder with application/json body
func NewUpdateEnvSandboxPoolRequestWithBody ¶ added in v0.0.5
func NewUpdateEnvSandboxPoolRequestWithBody(server string, name string, poolName string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEnvSandboxPoolRequestWithBody generates requests for UpdateEnvSandboxPool with any type of body
func NewUpdateSandboxEnvRequest ¶ added in v0.0.5
func NewUpdateSandboxEnvRequest(server string, name string, body UpdateSandboxEnvJSONRequestBody) (*http.Request, error)
NewUpdateSandboxEnvRequest calls the generic UpdateSandboxEnv builder with application/json body
func NewUpdateSandboxEnvRequestWithBody ¶ added in v0.0.5
func NewUpdateSandboxEnvRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSandboxEnvRequestWithBody generates requests for UpdateSandboxEnv with any type of body
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type APIKeyItem ¶
type APIKeyItem struct {
// Description Human-readable description of the key.
Description *string `json:"description,omitempty"`
// ExpiresAt RFC 3339 expiry timestamp, or absent if the key never expires.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// IssuedAt RFC 3339 timestamp when the key was created.
IssuedAt time.Time `json:"issuedAt"`
// KeyId Unique identifier for this API key.
KeyId string `json:"keyId"`
// Mode What this key is for. Absent on keys issued before the field existed, which read as `unrestricted`.
Mode *APIKeyItemMode `json:"mode,omitempty"`
// RawToken The full raw API key value (`agbx_...`), for recovery by the person
// who owns it. Present only for keys created after plaintext storage
// was introduced; absent for legacy keys, and displayed masked in the
// console.
//
// **Always absent for an agent credential.** An agent is forbidden
// from minting a key precisely so that it cannot issue itself one
// without the agent restriction — and returning an existing key here
// would have let it read that credential instead of creating it. The
// metadata still comes back, so an agent can say which keys exist and
// which are gated; only the material is withheld.
RawToken *string `json:"rawToken,omitempty"`
// Role Role granted by this key (e.g. tenant, admin).
Role string `json:"role"`
// SyncSource Resource origin: 'global' (synced via ws-proxy) or 'local' (created directly on worker). Empty for legacy resources.
SyncSource *string `json:"syncSource,omitempty"`
// Team Team associated with the key.
Team *string `json:"team,omitempty"`
// User Username associated with the key.
User *string `json:"user,omitempty"`
}
APIKeyItem defines model for APIKeyItem.
type APIKeyItemMode ¶ added in v0.0.11
type APIKeyItemMode string
APIKeyItemMode What this key is for. Absent on keys issued before the field existed, which read as `unrestricted`.
const ( APIKeyItemModeAgent APIKeyItemMode = "agent" APIKeyItemModeUnrestricted APIKeyItemMode = "unrestricted" )
Defines values for APIKeyItemMode.
func (APIKeyItemMode) Valid ¶ added in v0.0.11
func (e APIKeyItemMode) Valid() bool
Valid indicates whether the value is a known member of the APIKeyItemMode enum.
type AdminCreateSandboxTemplate201JSONResponse ¶
type AdminCreateSandboxTemplate201JSONResponse SandboxTemplateEnvelope
func (AdminCreateSandboxTemplate201JSONResponse) VisitAdminCreateSandboxTemplateResponse ¶
func (response AdminCreateSandboxTemplate201JSONResponse) VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminCreateSandboxTemplate400JSONResponse ¶
type AdminCreateSandboxTemplate400JSONResponse ErrorResponse
func (AdminCreateSandboxTemplate400JSONResponse) VisitAdminCreateSandboxTemplateResponse ¶
func (response AdminCreateSandboxTemplate400JSONResponse) VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminCreateSandboxTemplate401JSONResponse ¶
type AdminCreateSandboxTemplate401JSONResponse ErrorResponse
func (AdminCreateSandboxTemplate401JSONResponse) VisitAdminCreateSandboxTemplateResponse ¶
func (response AdminCreateSandboxTemplate401JSONResponse) VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminCreateSandboxTemplate403JSONResponse ¶
type AdminCreateSandboxTemplate403JSONResponse ErrorResponse
func (AdminCreateSandboxTemplate403JSONResponse) VisitAdminCreateSandboxTemplateResponse ¶
func (response AdminCreateSandboxTemplate403JSONResponse) VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminCreateSandboxTemplate409JSONResponse ¶
type AdminCreateSandboxTemplate409JSONResponse ErrorResponse
func (AdminCreateSandboxTemplate409JSONResponse) VisitAdminCreateSandboxTemplateResponse ¶
func (response AdminCreateSandboxTemplate409JSONResponse) VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminCreateSandboxTemplate500JSONResponse ¶
type AdminCreateSandboxTemplate500JSONResponse ErrorResponse
func (AdminCreateSandboxTemplate500JSONResponse) VisitAdminCreateSandboxTemplateResponse ¶
func (response AdminCreateSandboxTemplate500JSONResponse) VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminCreateSandboxTemplateJSONRequestBody ¶
type AdminCreateSandboxTemplateJSONRequestBody = UpsertSandboxTemplateRequest
AdminCreateSandboxTemplateJSONRequestBody defines body for AdminCreateSandboxTemplate for application/json ContentType.
type AdminCreateSandboxTemplateRequestObject ¶
type AdminCreateSandboxTemplateRequestObject struct {
Body *AdminCreateSandboxTemplateJSONRequestBody
}
type AdminCreateSandboxTemplateResponse ¶
type AdminCreateSandboxTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SandboxTemplateEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON409 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseAdminCreateSandboxTemplateResponse ¶
func ParseAdminCreateSandboxTemplateResponse(rsp *http.Response) (*AdminCreateSandboxTemplateResponse, error)
ParseAdminCreateSandboxTemplateResponse parses an HTTP response from a AdminCreateSandboxTemplateWithResponse call
func (AdminCreateSandboxTemplateResponse) Status ¶
func (r AdminCreateSandboxTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (AdminCreateSandboxTemplateResponse) StatusCode ¶
func (r AdminCreateSandboxTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminCreateSandboxTemplateResponseObject ¶
type AdminCreateSandboxTemplateResponseObject interface {
VisitAdminCreateSandboxTemplateResponse(w http.ResponseWriter) error
}
type AdminDeleteSandboxTemplate202JSONResponse ¶
type AdminDeleteSandboxTemplate202JSONResponse DeleteSandboxTemplateResult
func (AdminDeleteSandboxTemplate202JSONResponse) VisitAdminDeleteSandboxTemplateResponse ¶
func (response AdminDeleteSandboxTemplate202JSONResponse) VisitAdminDeleteSandboxTemplateResponse(w http.ResponseWriter) error
type AdminDeleteSandboxTemplate401JSONResponse ¶
type AdminDeleteSandboxTemplate401JSONResponse ErrorResponse
func (AdminDeleteSandboxTemplate401JSONResponse) VisitAdminDeleteSandboxTemplateResponse ¶
func (response AdminDeleteSandboxTemplate401JSONResponse) VisitAdminDeleteSandboxTemplateResponse(w http.ResponseWriter) error
type AdminDeleteSandboxTemplate403JSONResponse ¶
type AdminDeleteSandboxTemplate403JSONResponse ErrorResponse
func (AdminDeleteSandboxTemplate403JSONResponse) VisitAdminDeleteSandboxTemplateResponse ¶
func (response AdminDeleteSandboxTemplate403JSONResponse) VisitAdminDeleteSandboxTemplateResponse(w http.ResponseWriter) error
type AdminDeleteSandboxTemplate404JSONResponse ¶
type AdminDeleteSandboxTemplate404JSONResponse ErrorResponse
func (AdminDeleteSandboxTemplate404JSONResponse) VisitAdminDeleteSandboxTemplateResponse ¶
func (response AdminDeleteSandboxTemplate404JSONResponse) VisitAdminDeleteSandboxTemplateResponse(w http.ResponseWriter) error
type AdminDeleteSandboxTemplate500JSONResponse ¶
type AdminDeleteSandboxTemplate500JSONResponse ErrorResponse
func (AdminDeleteSandboxTemplate500JSONResponse) VisitAdminDeleteSandboxTemplateResponse ¶
func (response AdminDeleteSandboxTemplate500JSONResponse) VisitAdminDeleteSandboxTemplateResponse(w http.ResponseWriter) error
type AdminDeleteSandboxTemplateRequestObject ¶
type AdminDeleteSandboxTemplateRequestObject struct {
Name PathTemplateName `json:"name"`
}
type AdminDeleteSandboxTemplateResponse ¶
type AdminDeleteSandboxTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *DeleteSandboxTemplateResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseAdminDeleteSandboxTemplateResponse ¶
func ParseAdminDeleteSandboxTemplateResponse(rsp *http.Response) (*AdminDeleteSandboxTemplateResponse, error)
ParseAdminDeleteSandboxTemplateResponse parses an HTTP response from a AdminDeleteSandboxTemplateWithResponse call
func (AdminDeleteSandboxTemplateResponse) Status ¶
func (r AdminDeleteSandboxTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (AdminDeleteSandboxTemplateResponse) StatusCode ¶
func (r AdminDeleteSandboxTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminDeleteSandboxTemplateResponseObject ¶
type AdminDeleteSandboxTemplateResponseObject interface {
VisitAdminDeleteSandboxTemplateResponse(w http.ResponseWriter) error
}
type AdminGetSandboxStatistics200JSONResponse ¶
type AdminGetSandboxStatistics200JSONResponse SandboxStatisticsEnvelope
func (AdminGetSandboxStatistics200JSONResponse) VisitAdminGetSandboxStatisticsResponse ¶
func (response AdminGetSandboxStatistics200JSONResponse) VisitAdminGetSandboxStatisticsResponse(w http.ResponseWriter) error
type AdminGetSandboxStatistics401JSONResponse ¶
type AdminGetSandboxStatistics401JSONResponse ErrorResponse
func (AdminGetSandboxStatistics401JSONResponse) VisitAdminGetSandboxStatisticsResponse ¶
func (response AdminGetSandboxStatistics401JSONResponse) VisitAdminGetSandboxStatisticsResponse(w http.ResponseWriter) error
type AdminGetSandboxStatistics403JSONResponse ¶
type AdminGetSandboxStatistics403JSONResponse ErrorResponse
func (AdminGetSandboxStatistics403JSONResponse) VisitAdminGetSandboxStatisticsResponse ¶
func (response AdminGetSandboxStatistics403JSONResponse) VisitAdminGetSandboxStatisticsResponse(w http.ResponseWriter) error
type AdminGetSandboxStatistics500JSONResponse ¶
type AdminGetSandboxStatistics500JSONResponse ErrorResponse
func (AdminGetSandboxStatistics500JSONResponse) VisitAdminGetSandboxStatisticsResponse ¶
func (response AdminGetSandboxStatistics500JSONResponse) VisitAdminGetSandboxStatisticsResponse(w http.ResponseWriter) error
type AdminGetSandboxStatisticsRequestObject ¶
type AdminGetSandboxStatisticsRequestObject struct {
}
type AdminGetSandboxStatisticsResponse ¶
type AdminGetSandboxStatisticsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxStatisticsEnvelope
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseAdminGetSandboxStatisticsResponse ¶
func ParseAdminGetSandboxStatisticsResponse(rsp *http.Response) (*AdminGetSandboxStatisticsResponse, error)
ParseAdminGetSandboxStatisticsResponse parses an HTTP response from a AdminGetSandboxStatisticsWithResponse call
func (AdminGetSandboxStatisticsResponse) Status ¶
func (r AdminGetSandboxStatisticsResponse) Status() string
Status returns HTTPResponse.Status
func (AdminGetSandboxStatisticsResponse) StatusCode ¶
func (r AdminGetSandboxStatisticsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminGetSandboxStatisticsResponseObject ¶
type AdminGetSandboxStatisticsResponseObject interface {
VisitAdminGetSandboxStatisticsResponse(w http.ResponseWriter) error
}
type AdminListSandboxTemplates200JSONResponse ¶ added in v0.0.2
type AdminListSandboxTemplates200JSONResponse ListSandboxTemplatesResult
func (AdminListSandboxTemplates200JSONResponse) VisitAdminListSandboxTemplatesResponse ¶ added in v0.0.2
func (response AdminListSandboxTemplates200JSONResponse) VisitAdminListSandboxTemplatesResponse(w http.ResponseWriter) error
type AdminListSandboxTemplates401JSONResponse ¶ added in v0.0.2
type AdminListSandboxTemplates401JSONResponse ErrorResponse
func (AdminListSandboxTemplates401JSONResponse) VisitAdminListSandboxTemplatesResponse ¶ added in v0.0.2
func (response AdminListSandboxTemplates401JSONResponse) VisitAdminListSandboxTemplatesResponse(w http.ResponseWriter) error
type AdminListSandboxTemplates403JSONResponse ¶ added in v0.0.2
type AdminListSandboxTemplates403JSONResponse ErrorResponse
func (AdminListSandboxTemplates403JSONResponse) VisitAdminListSandboxTemplatesResponse ¶ added in v0.0.2
func (response AdminListSandboxTemplates403JSONResponse) VisitAdminListSandboxTemplatesResponse(w http.ResponseWriter) error
type AdminListSandboxTemplates500JSONResponse ¶ added in v0.0.2
type AdminListSandboxTemplates500JSONResponse ErrorResponse
func (AdminListSandboxTemplates500JSONResponse) VisitAdminListSandboxTemplatesResponse ¶ added in v0.0.2
func (response AdminListSandboxTemplates500JSONResponse) VisitAdminListSandboxTemplatesResponse(w http.ResponseWriter) error
type AdminListSandboxTemplatesParams ¶ added in v0.0.2
type AdminListSandboxTemplatesParams struct {
// Team Filter by team.
Team *string `form:"team,omitempty" json:"team,omitempty"`
// User Filter by user.
User *string `form:"user,omitempty" json:"user,omitempty"`
}
AdminListSandboxTemplatesParams defines parameters for AdminListSandboxTemplates.
type AdminListSandboxTemplatesRequestObject ¶ added in v0.0.2
type AdminListSandboxTemplatesRequestObject struct {
Params AdminListSandboxTemplatesParams
}
type AdminListSandboxTemplatesResponse ¶ added in v0.0.2
type AdminListSandboxTemplatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSandboxTemplatesResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseAdminListSandboxTemplatesResponse ¶ added in v0.0.2
func ParseAdminListSandboxTemplatesResponse(rsp *http.Response) (*AdminListSandboxTemplatesResponse, error)
ParseAdminListSandboxTemplatesResponse parses an HTTP response from a AdminListSandboxTemplatesWithResponse call
func (AdminListSandboxTemplatesResponse) Status ¶ added in v0.0.2
func (r AdminListSandboxTemplatesResponse) Status() string
Status returns HTTPResponse.Status
func (AdminListSandboxTemplatesResponse) StatusCode ¶ added in v0.0.2
func (r AdminListSandboxTemplatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminListSandboxTemplatesResponseObject ¶ added in v0.0.2
type AdminListSandboxTemplatesResponseObject interface {
VisitAdminListSandboxTemplatesResponse(w http.ResponseWriter) error
}
type AdminUpdateSandboxTemplate200JSONResponse ¶
type AdminUpdateSandboxTemplate200JSONResponse SandboxTemplateEnvelope
func (AdminUpdateSandboxTemplate200JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate200JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplate400JSONResponse ¶
type AdminUpdateSandboxTemplate400JSONResponse ErrorResponse
func (AdminUpdateSandboxTemplate400JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate400JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplate401JSONResponse ¶
type AdminUpdateSandboxTemplate401JSONResponse ErrorResponse
func (AdminUpdateSandboxTemplate401JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate401JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplate403JSONResponse ¶
type AdminUpdateSandboxTemplate403JSONResponse ErrorResponse
func (AdminUpdateSandboxTemplate403JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate403JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplate404JSONResponse ¶
type AdminUpdateSandboxTemplate404JSONResponse ErrorResponse
func (AdminUpdateSandboxTemplate404JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate404JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplate409JSONResponse ¶
type AdminUpdateSandboxTemplate409JSONResponse ErrorResponse
func (AdminUpdateSandboxTemplate409JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate409JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplate500JSONResponse ¶
type AdminUpdateSandboxTemplate500JSONResponse ErrorResponse
func (AdminUpdateSandboxTemplate500JSONResponse) VisitAdminUpdateSandboxTemplateResponse ¶
func (response AdminUpdateSandboxTemplate500JSONResponse) VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
type AdminUpdateSandboxTemplateJSONRequestBody ¶
type AdminUpdateSandboxTemplateJSONRequestBody = UpsertSandboxTemplateRequest
AdminUpdateSandboxTemplateJSONRequestBody defines body for AdminUpdateSandboxTemplate for application/json ContentType.
type AdminUpdateSandboxTemplateRequestObject ¶
type AdminUpdateSandboxTemplateRequestObject struct {
Name PathTemplateName `json:"name"`
Body *AdminUpdateSandboxTemplateJSONRequestBody
}
type AdminUpdateSandboxTemplateResponse ¶
type AdminUpdateSandboxTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxTemplateEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseAdminUpdateSandboxTemplateResponse ¶
func ParseAdminUpdateSandboxTemplateResponse(rsp *http.Response) (*AdminUpdateSandboxTemplateResponse, error)
ParseAdminUpdateSandboxTemplateResponse parses an HTTP response from a AdminUpdateSandboxTemplateWithResponse call
func (AdminUpdateSandboxTemplateResponse) Status ¶
func (r AdminUpdateSandboxTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (AdminUpdateSandboxTemplateResponse) StatusCode ¶
func (r AdminUpdateSandboxTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminUpdateSandboxTemplateResponseObject ¶
type AdminUpdateSandboxTemplateResponseObject interface {
VisitAdminUpdateSandboxTemplateResponse(w http.ResponseWriter) error
}
type ApprovalDecisionRequest ¶ added in v0.0.11
type ApprovalDecisionRequest struct {
Decision ApprovalDecisionRequestDecision `json:"decision"`
// Scope Ignored when denying. `session` needs the request to carry a session id; both wider scopes are refused for a once-only operation.
Scope *ApprovalDecisionRequestScope `json:"scope,omitempty"`
}
ApprovalDecisionRequest defines model for ApprovalDecisionRequest.
type ApprovalDecisionRequestDecision ¶ added in v0.0.11
type ApprovalDecisionRequestDecision string
ApprovalDecisionRequestDecision defines model for ApprovalDecisionRequest.Decision.
const ( Approve ApprovalDecisionRequestDecision = "approve" Deny ApprovalDecisionRequestDecision = "deny" )
Defines values for ApprovalDecisionRequestDecision.
func (ApprovalDecisionRequestDecision) Valid ¶ added in v0.0.11
func (e ApprovalDecisionRequestDecision) Valid() bool
Valid indicates whether the value is a known member of the ApprovalDecisionRequestDecision enum.
type ApprovalDecisionRequestScope ¶ added in v0.0.11
type ApprovalDecisionRequestScope string
ApprovalDecisionRequestScope Ignored when denying. `session` needs the request to carry a session id; both wider scopes are refused for a once-only operation.
const ( ApprovalDecisionRequestScopeKey ApprovalDecisionRequestScope = "key" ApprovalDecisionRequestScopeOnce ApprovalDecisionRequestScope = "once" ApprovalDecisionRequestScopeSession ApprovalDecisionRequestScope = "session" )
Defines values for ApprovalDecisionRequestScope.
func (ApprovalDecisionRequestScope) Valid ¶ added in v0.0.11
func (e ApprovalDecisionRequestScope) Valid() bool
Valid indicates whether the value is a known member of the ApprovalDecisionRequestScope enum.
type ApprovalGrant ¶ added in v0.0.11
type ApprovalGrant struct {
CreatedAt time.Time `json:"createdAt"`
// ExpiresAt Absent for a key-scoped grant, which ends only when revoked.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
GrantedBy string `json:"grantedBy"`
Id string `json:"id"`
Operation string `json:"operation"`
Principal ApprovalPrincipal `json:"principal"`
Scope ApprovalGrantScope `json:"scope"`
SessionId *string `json:"sessionId,omitempty"`
}
ApprovalGrant defines model for ApprovalGrant.
type ApprovalGrantScope ¶ added in v0.0.11
type ApprovalGrantScope string
ApprovalGrantScope defines model for ApprovalGrant.Scope.
const ( ApprovalGrantScopeKey ApprovalGrantScope = "key" ApprovalGrantScopeSession ApprovalGrantScope = "session" )
Defines values for ApprovalGrantScope.
func (ApprovalGrantScope) Valid ¶ added in v0.0.11
func (e ApprovalGrantScope) Valid() bool
Valid indicates whether the value is a known member of the ApprovalGrantScope enum.
type ApprovalPrincipal ¶ added in v0.0.11
type ApprovalPrincipal struct {
// KeyId Which credential asked. A key-scoped grant belongs to this key alone, so deleting the key must take its grants with it.
KeyId *string `json:"keyId,omitempty"`
Team string `json:"team"`
User string `json:"user"`
}
ApprovalPrincipal defines model for ApprovalPrincipal.
type ApprovalRequest ¶ added in v0.0.11
type ApprovalRequest struct {
CreatedAt time.Time `json:"createdAt"`
DecidedAt *time.Time `json:"decidedAt,omitempty"`
DecidedBy *string `json:"decidedBy,omitempty"`
ExpiresAt time.Time `json:"expiresAt"`
Id string `json:"id"`
Method string `json:"method"`
// OnceOnly True for destructive and credential-minting calls, which refuse the session and key scopes.
OnceOnly bool `json:"onceOnly"`
// Operation What is being asked for, e.g. `env.create`. A grant is written against this, not against a route.
Operation string `json:"operation"`
Path string `json:"path"`
Principal ApprovalPrincipal `json:"principal"`
// Scope How far the decision reached. Set once decided.
Scope *ApprovalRequestScope `json:"scope,omitempty"`
// SessionId Absent when the caller sent no session header. Such a request can only ever be approved for one call.
SessionId *string `json:"sessionId,omitempty"`
Status ApprovalRequestStatus `json:"status"`
// Summary What the person is being asked, naming the thing acted on.
Summary string `json:"summary"`
}
ApprovalRequest defines model for ApprovalRequest.
type ApprovalRequestScope ¶ added in v0.0.11
type ApprovalRequestScope string
ApprovalRequestScope How far the decision reached. Set once decided.
const ( Key ApprovalRequestScope = "key" Once ApprovalRequestScope = "once" Session ApprovalRequestScope = "session" )
Defines values for ApprovalRequestScope.
func (ApprovalRequestScope) Valid ¶ added in v0.0.11
func (e ApprovalRequestScope) Valid() bool
Valid indicates whether the value is a known member of the ApprovalRequestScope enum.
type ApprovalRequestStatus ¶ added in v0.0.11
type ApprovalRequestStatus string
ApprovalRequestStatus defines model for ApprovalRequest.Status.
const ( ApprovalRequestStatusApproved ApprovalRequestStatus = "approved" ApprovalRequestStatusDenied ApprovalRequestStatus = "denied" ApprovalRequestStatusExpired ApprovalRequestStatus = "expired" ApprovalRequestStatusPending ApprovalRequestStatus = "pending" )
Defines values for ApprovalRequestStatus.
func (ApprovalRequestStatus) Valid ¶ added in v0.0.11
func (e ApprovalRequestStatus) Valid() bool
Valid indicates whether the value is a known member of the ApprovalRequestStatus enum.
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) AdminCreateSandboxTemplate ¶
func (c *Client) AdminCreateSandboxTemplate(ctx context.Context, body AdminCreateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminCreateSandboxTemplateWithBody ¶
func (*Client) AdminDeleteSandboxTemplate ¶
func (c *Client) AdminDeleteSandboxTemplate(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminGetSandboxStatistics ¶
func (*Client) AdminListSandboxTemplates ¶ added in v0.0.2
func (c *Client) AdminListSandboxTemplates(ctx context.Context, params *AdminListSandboxTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminUpdateSandboxTemplate ¶
func (c *Client) AdminUpdateSandboxTemplate(ctx context.Context, name PathTemplateName, body AdminUpdateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminUpdateSandboxTemplateWithBody ¶
func (*Client) CreateAPIKey ¶
func (c *Client) CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAPIKeyWithBody ¶
func (*Client) CreateEnvSandboxPool ¶ added in v0.0.5
func (c *Client) CreateEnvSandboxPool(ctx context.Context, name string, body CreateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEnvSandboxPoolWithBody ¶ added in v0.0.5
func (*Client) CreateSandbox ¶
func (c *Client) CreateSandbox(ctx context.Context, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSandboxEnv ¶ added in v0.0.5
func (c *Client) CreateSandboxEnv(ctx context.Context, body CreateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSandboxEnvWithBody ¶ added in v0.0.5
func (*Client) CreateSandboxExecToken ¶
func (c *Client) CreateSandboxExecToken(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSandboxWithBody ¶
func (*Client) DecideApproval ¶ added in v0.0.11
func (c *Client) DecideApproval(ctx context.Context, approvalId string, body DecideApprovalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DecideApprovalWithBody ¶ added in v0.0.11
func (*Client) DeleteAPIKey ¶
func (c *Client) DeleteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteEnvAutoscalingGroup ¶ added in v0.0.5
func (*Client) DeleteEnvSandboxPool ¶ added in v0.0.5
func (*Client) DeleteSandbox ¶
func (c *Client) DeleteSandbox(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSandboxEnv ¶ added in v0.0.5
func (*Client) ExecSandboxCommand ¶
func (c *Client) ExecSandboxCommand(ctx context.Context, sandboxId PathSandboxId, body ExecSandboxCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExecSandboxCommandWithBody ¶
func (*Client) GetApproval ¶ added in v0.0.11
func (*Client) GetEnvAutoscaling ¶ added in v0.0.5
func (*Client) GetEnvAutoscalingGroup ¶ added in v0.0.5
func (*Client) GetEnvSandboxPool ¶ added in v0.0.5
func (*Client) GetFeatureGates ¶
func (*Client) GetSandbox ¶
func (c *Client) GetSandbox(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandboxEnv ¶ added in v0.0.5
func (*Client) GetSandboxLogs ¶
func (c *Client) GetSandboxLogs(ctx context.Context, sandboxId PathSandboxId, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandboxTemplate ¶
func (c *Client) GetSandboxTemplate(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserSandboxStatistics ¶
func (*Client) IsSandboxReady ¶
func (c *Client) IsSandboxReady(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListAPIKeys ¶
func (c *Client) ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApprovals ¶ added in v0.0.11
func (*Client) ListClusters ¶
func (*Client) ListEnvAutoscalingGroups ¶ added in v0.0.5
func (*Client) ListEnvEvents ¶ added in v0.0.5
func (c *Client) ListEnvEvents(ctx context.Context, name string, params *ListEnvEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEnvSandboxPools ¶ added in v0.0.5
func (*Client) ListInstanceTypes ¶ added in v0.0.5
func (*Client) ListNamespaces ¶
func (*Client) ListQuotas ¶
func (*Client) ListSandboxEnvs ¶ added in v0.0.5
func (*Client) ListSandboxTemplates ¶
func (*Client) ListSandboxes ¶
func (c *Client) ListSandboxes(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListUsersByTeam ¶
func (*Client) ListVolumes ¶ added in v0.0.10
func (*Client) PromoteAPIKey ¶
func (c *Client) PromoteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RevokeApprovalGrant ¶ added in v0.0.11
func (*Client) SelfCreateAPIKey ¶
func (c *Client) SelfCreateAPIKey(ctx context.Context, body SelfCreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SelfCreateAPIKeyWithBody ¶
func (*Client) SelfDeleteAPIKey ¶
func (c *Client) SelfDeleteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SelfListAPIKeys ¶
func (*Client) SetSandboxTimeout ¶
func (c *Client) SetSandboxTimeout(ctx context.Context, sandboxId PathSandboxId, body SetSandboxTimeoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetSandboxTimeoutWithBody ¶
func (*Client) UpdateEnvAutoscalingGroup ¶ added in v0.0.5
func (c *Client) UpdateEnvAutoscalingGroup(ctx context.Context, name string, groupName string, body UpdateEnvAutoscalingGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEnvAutoscalingGroupWithBody ¶ added in v0.0.5
func (*Client) UpdateEnvSandboxPool ¶ added in v0.0.5
func (c *Client) UpdateEnvSandboxPool(ctx context.Context, name string, poolName string, body UpdateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEnvSandboxPoolWithBody ¶ added in v0.0.5
func (*Client) UpdateSandboxEnv ¶ added in v0.0.5
func (c *Client) UpdateSandboxEnv(ctx context.Context, name string, body UpdateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListAPIKeys request
ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAPIKeyWithBody request with any body
CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAPIKey request
DeleteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromoteAPIKey request
PromoteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNamespaces request
ListNamespaces(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminListSandboxTemplates request
AdminListSandboxTemplates(ctx context.Context, params *AdminListSandboxTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminCreateSandboxTemplateWithBody request with any body
AdminCreateSandboxTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminCreateSandboxTemplate(ctx context.Context, body AdminCreateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminDeleteSandboxTemplate request
AdminDeleteSandboxTemplate(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminUpdateSandboxTemplateWithBody request with any body
AdminUpdateSandboxTemplateWithBody(ctx context.Context, name PathTemplateName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminUpdateSandboxTemplate(ctx context.Context, name PathTemplateName, body AdminUpdateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminGetSandboxStatistics request
AdminGetSandboxStatistics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTeams request
ListTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsersByTeam request
ListUsersByTeam(ctx context.Context, team PathTeam, reqEditors ...RequestEditorFn) (*http.Response, error)
// SelfListAPIKeys request
SelfListAPIKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SelfCreateAPIKeyWithBody request with any body
SelfCreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SelfCreateAPIKey(ctx context.Context, body SelfCreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SelfDeleteAPIKey request
SelfDeleteAPIKey(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApprovals request
ListApprovals(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeApprovalGrant request
RevokeApprovalGrant(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApproval request
GetApproval(ctx context.Context, approvalId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DecideApprovalWithBody request with any body
DecideApprovalWithBody(ctx context.Context, approvalId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DecideApproval(ctx context.Context, approvalId string, body DecideApprovalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWhoAmI request
GetWhoAmI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListClusters request
ListClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSandboxEnvs request
ListSandboxEnvs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSandboxEnvWithBody request with any body
CreateSandboxEnvWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSandboxEnv(ctx context.Context, body CreateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSandboxEnv request
DeleteSandboxEnv(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxEnv request
GetSandboxEnv(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSandboxEnvWithBody request with any body
UpdateSandboxEnvWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSandboxEnv(ctx context.Context, name string, body UpdateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEnvAutoscaling request
GetEnvAutoscaling(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEnvAutoscalingGroups request
ListEnvAutoscalingGroups(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteEnvAutoscalingGroup request
DeleteEnvAutoscalingGroup(ctx context.Context, name string, groupName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEnvAutoscalingGroup request
GetEnvAutoscalingGroup(ctx context.Context, name string, groupName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEnvAutoscalingGroupWithBody request with any body
UpdateEnvAutoscalingGroupWithBody(ctx context.Context, name string, groupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEnvAutoscalingGroup(ctx context.Context, name string, groupName string, body UpdateEnvAutoscalingGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEnvEvents request
ListEnvEvents(ctx context.Context, name string, params *ListEnvEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEnvSandboxPools request
ListEnvSandboxPools(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEnvSandboxPoolWithBody request with any body
CreateEnvSandboxPoolWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEnvSandboxPool(ctx context.Context, name string, body CreateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteEnvSandboxPool request
DeleteEnvSandboxPool(ctx context.Context, name string, poolName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEnvSandboxPool request
GetEnvSandboxPool(ctx context.Context, name string, poolName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEnvSandboxPoolWithBody request with any body
UpdateEnvSandboxPoolWithBody(ctx context.Context, name string, poolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEnvSandboxPool(ctx context.Context, name string, poolName string, body UpdateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeatureGates request
GetFeatureGates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInstanceTypes request
ListInstanceTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListQuotas request
ListQuotas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSandboxTemplates request
ListSandboxTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxTemplate request
GetSandboxTemplate(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSandboxes request
ListSandboxes(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSandboxWithBody request with any body
CreateSandboxWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSandbox(ctx context.Context, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSandbox request
DeleteSandbox(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandbox request
GetSandbox(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExecSandboxCommandWithBody request with any body
ExecSandboxCommandWithBody(ctx context.Context, sandboxId PathSandboxId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExecSandboxCommand(ctx context.Context, sandboxId PathSandboxId, body ExecSandboxCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSandboxExecToken request
CreateSandboxExecToken(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
// IsSandboxReady request
IsSandboxReady(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxLogs request
GetSandboxLogs(ctx context.Context, sandboxId PathSandboxId, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetSandboxTimeoutWithBody request with any body
SetSandboxTimeoutWithBody(ctx context.Context, sandboxId PathSandboxId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetSandboxTimeout(ctx context.Context, sandboxId PathSandboxId, body SetSandboxTimeoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserSandboxStatistics request
GetUserSandboxStatistics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVolumes request
ListVolumes(ctx context.Context, 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 NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AdminCreateSandboxTemplateWithBodyWithResponse ¶
func (c *ClientWithResponses) AdminCreateSandboxTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminCreateSandboxTemplateResponse, error)
AdminCreateSandboxTemplateWithBodyWithResponse request with arbitrary body returning *AdminCreateSandboxTemplateResponse
func (*ClientWithResponses) AdminCreateSandboxTemplateWithResponse ¶
func (c *ClientWithResponses) AdminCreateSandboxTemplateWithResponse(ctx context.Context, body AdminCreateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminCreateSandboxTemplateResponse, error)
func (*ClientWithResponses) AdminDeleteSandboxTemplateWithResponse ¶
func (c *ClientWithResponses) AdminDeleteSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*AdminDeleteSandboxTemplateResponse, error)
AdminDeleteSandboxTemplateWithResponse request returning *AdminDeleteSandboxTemplateResponse
func (*ClientWithResponses) AdminGetSandboxStatisticsWithResponse ¶
func (c *ClientWithResponses) AdminGetSandboxStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AdminGetSandboxStatisticsResponse, error)
AdminGetSandboxStatisticsWithResponse request returning *AdminGetSandboxStatisticsResponse
func (*ClientWithResponses) AdminListSandboxTemplatesWithResponse ¶ added in v0.0.2
func (c *ClientWithResponses) AdminListSandboxTemplatesWithResponse(ctx context.Context, params *AdminListSandboxTemplatesParams, reqEditors ...RequestEditorFn) (*AdminListSandboxTemplatesResponse, error)
AdminListSandboxTemplatesWithResponse request returning *AdminListSandboxTemplatesResponse
func (*ClientWithResponses) AdminUpdateSandboxTemplateWithBodyWithResponse ¶
func (c *ClientWithResponses) AdminUpdateSandboxTemplateWithBodyWithResponse(ctx context.Context, name PathTemplateName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminUpdateSandboxTemplateResponse, error)
AdminUpdateSandboxTemplateWithBodyWithResponse request with arbitrary body returning *AdminUpdateSandboxTemplateResponse
func (*ClientWithResponses) AdminUpdateSandboxTemplateWithResponse ¶
func (c *ClientWithResponses) AdminUpdateSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, body AdminUpdateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminUpdateSandboxTemplateResponse, error)
func (*ClientWithResponses) CreateAPIKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
CreateAPIKeyWithBodyWithResponse request with arbitrary body returning *CreateAPIKeyResponse
func (*ClientWithResponses) CreateAPIKeyWithResponse ¶
func (c *ClientWithResponses) CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
func (*ClientWithResponses) CreateEnvSandboxPoolWithBodyWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) CreateEnvSandboxPoolWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvSandboxPoolResponse, error)
CreateEnvSandboxPoolWithBodyWithResponse request with arbitrary body returning *CreateEnvSandboxPoolResponse
func (*ClientWithResponses) CreateEnvSandboxPoolWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) CreateEnvSandboxPoolWithResponse(ctx context.Context, name string, body CreateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvSandboxPoolResponse, error)
func (*ClientWithResponses) CreateSandboxEnvWithBodyWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) CreateSandboxEnvWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxEnvResponse, error)
CreateSandboxEnvWithBodyWithResponse request with arbitrary body returning *CreateSandboxEnvResponse
func (*ClientWithResponses) CreateSandboxEnvWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) CreateSandboxEnvWithResponse(ctx context.Context, body CreateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxEnvResponse, error)
func (*ClientWithResponses) CreateSandboxExecTokenWithResponse ¶
func (c *ClientWithResponses) CreateSandboxExecTokenWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*CreateSandboxExecTokenResponse, error)
CreateSandboxExecTokenWithResponse request returning *CreateSandboxExecTokenResponse
func (*ClientWithResponses) CreateSandboxWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSandboxWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
CreateSandboxWithBodyWithResponse request with arbitrary body returning *CreateSandboxResponse
func (*ClientWithResponses) CreateSandboxWithResponse ¶
func (c *ClientWithResponses) CreateSandboxWithResponse(ctx context.Context, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
func (*ClientWithResponses) DecideApprovalWithBodyWithResponse ¶ added in v0.0.11
func (c *ClientWithResponses) DecideApprovalWithBodyWithResponse(ctx context.Context, approvalId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DecideApprovalResponse, error)
DecideApprovalWithBodyWithResponse request with arbitrary body returning *DecideApprovalResponse
func (*ClientWithResponses) DecideApprovalWithResponse ¶ added in v0.0.11
func (c *ClientWithResponses) DecideApprovalWithResponse(ctx context.Context, approvalId string, body DecideApprovalJSONRequestBody, reqEditors ...RequestEditorFn) (*DecideApprovalResponse, error)
func (*ClientWithResponses) DeleteAPIKeyWithResponse ¶
func (c *ClientWithResponses) DeleteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error)
DeleteAPIKeyWithResponse request returning *DeleteAPIKeyResponse
func (*ClientWithResponses) DeleteEnvAutoscalingGroupWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) DeleteEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, reqEditors ...RequestEditorFn) (*DeleteEnvAutoscalingGroupResponse, error)
DeleteEnvAutoscalingGroupWithResponse request returning *DeleteEnvAutoscalingGroupResponse
func (*ClientWithResponses) DeleteEnvSandboxPoolWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) DeleteEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, reqEditors ...RequestEditorFn) (*DeleteEnvSandboxPoolResponse, error)
DeleteEnvSandboxPoolWithResponse request returning *DeleteEnvSandboxPoolResponse
func (*ClientWithResponses) DeleteSandboxEnvWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) DeleteSandboxEnvWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteSandboxEnvResponse, error)
DeleteSandboxEnvWithResponse request returning *DeleteSandboxEnvResponse
func (*ClientWithResponses) DeleteSandboxWithResponse ¶
func (c *ClientWithResponses) DeleteSandboxWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*DeleteSandboxResponse, error)
DeleteSandboxWithResponse request returning *DeleteSandboxResponse
func (*ClientWithResponses) ExecSandboxCommandWithBodyWithResponse ¶
func (c *ClientWithResponses) ExecSandboxCommandWithBodyWithResponse(ctx context.Context, sandboxId PathSandboxId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecSandboxCommandResponse, error)
ExecSandboxCommandWithBodyWithResponse request with arbitrary body returning *ExecSandboxCommandResponse
func (*ClientWithResponses) ExecSandboxCommandWithResponse ¶
func (c *ClientWithResponses) ExecSandboxCommandWithResponse(ctx context.Context, sandboxId PathSandboxId, body ExecSandboxCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecSandboxCommandResponse, error)
func (*ClientWithResponses) GetApprovalWithResponse ¶ added in v0.0.11
func (c *ClientWithResponses) GetApprovalWithResponse(ctx context.Context, approvalId string, reqEditors ...RequestEditorFn) (*GetApprovalResponse, error)
GetApprovalWithResponse request returning *GetApprovalResponse
func (*ClientWithResponses) GetEnvAutoscalingGroupWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) GetEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, reqEditors ...RequestEditorFn) (*GetEnvAutoscalingGroupResponse, error)
GetEnvAutoscalingGroupWithResponse request returning *GetEnvAutoscalingGroupResponse
func (*ClientWithResponses) GetEnvAutoscalingWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) GetEnvAutoscalingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetEnvAutoscalingResponse, error)
GetEnvAutoscalingWithResponse request returning *GetEnvAutoscalingResponse
func (*ClientWithResponses) GetEnvSandboxPoolWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) GetEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, reqEditors ...RequestEditorFn) (*GetEnvSandboxPoolResponse, error)
GetEnvSandboxPoolWithResponse request returning *GetEnvSandboxPoolResponse
func (*ClientWithResponses) GetFeatureGatesWithResponse ¶
func (c *ClientWithResponses) GetFeatureGatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeatureGatesResponse, error)
GetFeatureGatesWithResponse request returning *GetFeatureGatesResponse
func (*ClientWithResponses) GetSandboxEnvWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) GetSandboxEnvWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetSandboxEnvResponse, error)
GetSandboxEnvWithResponse request returning *GetSandboxEnvResponse
func (*ClientWithResponses) GetSandboxLogsWithResponse ¶
func (c *ClientWithResponses) GetSandboxLogsWithResponse(ctx context.Context, sandboxId PathSandboxId, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
GetSandboxLogsWithResponse request returning *GetSandboxLogsResponse
func (*ClientWithResponses) GetSandboxTemplateWithResponse ¶
func (c *ClientWithResponses) GetSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*GetSandboxTemplateResponse, error)
GetSandboxTemplateWithResponse request returning *GetSandboxTemplateResponse
func (*ClientWithResponses) GetSandboxWithResponse ¶
func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
GetSandboxWithResponse request returning *GetSandboxResponse
func (*ClientWithResponses) GetUserSandboxStatisticsWithResponse ¶
func (c *ClientWithResponses) GetUserSandboxStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserSandboxStatisticsResponse, error)
GetUserSandboxStatisticsWithResponse request returning *GetUserSandboxStatisticsResponse
func (*ClientWithResponses) GetWhoAmIWithResponse ¶
func (c *ClientWithResponses) GetWhoAmIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWhoAmIResponse, error)
GetWhoAmIWithResponse request returning *GetWhoAmIResponse
func (*ClientWithResponses) IsSandboxReadyWithResponse ¶
func (c *ClientWithResponses) IsSandboxReadyWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*IsSandboxReadyResponse, error)
IsSandboxReadyWithResponse request returning *IsSandboxReadyResponse
func (*ClientWithResponses) ListAPIKeysWithResponse ¶
func (c *ClientWithResponses) ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)
ListAPIKeysWithResponse request returning *ListAPIKeysResponse
func (*ClientWithResponses) ListApprovalsWithResponse ¶ added in v0.0.11
func (c *ClientWithResponses) ListApprovalsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApprovalsResponse, error)
ListApprovalsWithResponse request returning *ListApprovalsResponse
func (*ClientWithResponses) ListClustersWithResponse ¶
func (c *ClientWithResponses) ListClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)
ListClustersWithResponse request returning *ListClustersResponse
func (*ClientWithResponses) ListEnvAutoscalingGroupsWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) ListEnvAutoscalingGroupsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ListEnvAutoscalingGroupsResponse, error)
ListEnvAutoscalingGroupsWithResponse request returning *ListEnvAutoscalingGroupsResponse
func (*ClientWithResponses) ListEnvEventsWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) ListEnvEventsWithResponse(ctx context.Context, name string, params *ListEnvEventsParams, reqEditors ...RequestEditorFn) (*ListEnvEventsResponse, error)
ListEnvEventsWithResponse request returning *ListEnvEventsResponse
func (*ClientWithResponses) ListEnvSandboxPoolsWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) ListEnvSandboxPoolsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ListEnvSandboxPoolsResponse, error)
ListEnvSandboxPoolsWithResponse request returning *ListEnvSandboxPoolsResponse
func (*ClientWithResponses) ListInstanceTypesWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) ListInstanceTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
ListInstanceTypesWithResponse request returning *ListInstanceTypesResponse
func (*ClientWithResponses) ListNamespacesWithResponse ¶
func (c *ClientWithResponses) ListNamespacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNamespacesResponse, error)
ListNamespacesWithResponse request returning *ListNamespacesResponse
func (*ClientWithResponses) ListQuotasWithResponse ¶
func (c *ClientWithResponses) ListQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListQuotasResponse, error)
ListQuotasWithResponse request returning *ListQuotasResponse
func (*ClientWithResponses) ListSandboxEnvsWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) ListSandboxEnvsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxEnvsResponse, error)
ListSandboxEnvsWithResponse request returning *ListSandboxEnvsResponse
func (*ClientWithResponses) ListSandboxTemplatesWithResponse ¶
func (c *ClientWithResponses) ListSandboxTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxTemplatesResponse, error)
ListSandboxTemplatesWithResponse request returning *ListSandboxTemplatesResponse
func (*ClientWithResponses) ListSandboxesWithResponse ¶
func (c *ClientWithResponses) ListSandboxesWithResponse(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesResponse, error)
ListSandboxesWithResponse request returning *ListSandboxesResponse
func (*ClientWithResponses) ListTeamsWithResponse ¶
func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
ListTeamsWithResponse request returning *ListTeamsResponse
func (*ClientWithResponses) ListUsersByTeamWithResponse ¶
func (c *ClientWithResponses) ListUsersByTeamWithResponse(ctx context.Context, team PathTeam, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error)
ListUsersByTeamWithResponse request returning *ListUsersByTeamResponse
func (*ClientWithResponses) ListVolumesWithResponse ¶ added in v0.0.10
func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
ListVolumesWithResponse request returning *ListVolumesResponse
func (*ClientWithResponses) PromoteAPIKeyWithResponse ¶
func (c *ClientWithResponses) PromoteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*PromoteAPIKeyResponse, error)
PromoteAPIKeyWithResponse request returning *PromoteAPIKeyResponse
func (*ClientWithResponses) RevokeApprovalGrantWithResponse ¶ added in v0.0.11
func (c *ClientWithResponses) RevokeApprovalGrantWithResponse(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*RevokeApprovalGrantResponse, error)
RevokeApprovalGrantWithResponse request returning *RevokeApprovalGrantResponse
func (*ClientWithResponses) SelfCreateAPIKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) SelfCreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelfCreateAPIKeyResponse, error)
SelfCreateAPIKeyWithBodyWithResponse request with arbitrary body returning *SelfCreateAPIKeyResponse
func (*ClientWithResponses) SelfCreateAPIKeyWithResponse ¶
func (c *ClientWithResponses) SelfCreateAPIKeyWithResponse(ctx context.Context, body SelfCreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SelfCreateAPIKeyResponse, error)
func (*ClientWithResponses) SelfDeleteAPIKeyWithResponse ¶
func (c *ClientWithResponses) SelfDeleteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*SelfDeleteAPIKeyResponse, error)
SelfDeleteAPIKeyWithResponse request returning *SelfDeleteAPIKeyResponse
func (*ClientWithResponses) SelfListAPIKeysWithResponse ¶
func (c *ClientWithResponses) SelfListAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SelfListAPIKeysResponse, error)
SelfListAPIKeysWithResponse request returning *SelfListAPIKeysResponse
func (*ClientWithResponses) SetSandboxTimeoutWithBodyWithResponse ¶
func (c *ClientWithResponses) SetSandboxTimeoutWithBodyWithResponse(ctx context.Context, sandboxId PathSandboxId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetSandboxTimeoutResponse, error)
SetSandboxTimeoutWithBodyWithResponse request with arbitrary body returning *SetSandboxTimeoutResponse
func (*ClientWithResponses) SetSandboxTimeoutWithResponse ¶
func (c *ClientWithResponses) SetSandboxTimeoutWithResponse(ctx context.Context, sandboxId PathSandboxId, body SetSandboxTimeoutJSONRequestBody, reqEditors ...RequestEditorFn) (*SetSandboxTimeoutResponse, error)
func (*ClientWithResponses) UpdateEnvAutoscalingGroupWithBodyWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) UpdateEnvAutoscalingGroupWithBodyWithResponse(ctx context.Context, name string, groupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvAutoscalingGroupResponse, error)
UpdateEnvAutoscalingGroupWithBodyWithResponse request with arbitrary body returning *UpdateEnvAutoscalingGroupResponse
func (*ClientWithResponses) UpdateEnvAutoscalingGroupWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) UpdateEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, body UpdateEnvAutoscalingGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvAutoscalingGroupResponse, error)
func (*ClientWithResponses) UpdateEnvSandboxPoolWithBodyWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) UpdateEnvSandboxPoolWithBodyWithResponse(ctx context.Context, name string, poolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvSandboxPoolResponse, error)
UpdateEnvSandboxPoolWithBodyWithResponse request with arbitrary body returning *UpdateEnvSandboxPoolResponse
func (*ClientWithResponses) UpdateEnvSandboxPoolWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) UpdateEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, body UpdateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvSandboxPoolResponse, error)
func (*ClientWithResponses) UpdateSandboxEnvWithBodyWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) UpdateSandboxEnvWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSandboxEnvResponse, error)
UpdateSandboxEnvWithBodyWithResponse request with arbitrary body returning *UpdateSandboxEnvResponse
func (*ClientWithResponses) UpdateSandboxEnvWithResponse ¶ added in v0.0.5
func (c *ClientWithResponses) UpdateSandboxEnvWithResponse(ctx context.Context, name string, body UpdateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSandboxEnvResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAPIKeysWithResponse request
ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)
// CreateAPIKeyWithBodyWithResponse request with any body
CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
// DeleteAPIKeyWithResponse request
DeleteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error)
// PromoteAPIKeyWithResponse request
PromoteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*PromoteAPIKeyResponse, error)
// ListNamespacesWithResponse request
ListNamespacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNamespacesResponse, error)
// AdminListSandboxTemplatesWithResponse request
AdminListSandboxTemplatesWithResponse(ctx context.Context, params *AdminListSandboxTemplatesParams, reqEditors ...RequestEditorFn) (*AdminListSandboxTemplatesResponse, error)
// AdminCreateSandboxTemplateWithBodyWithResponse request with any body
AdminCreateSandboxTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminCreateSandboxTemplateResponse, error)
AdminCreateSandboxTemplateWithResponse(ctx context.Context, body AdminCreateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminCreateSandboxTemplateResponse, error)
// AdminDeleteSandboxTemplateWithResponse request
AdminDeleteSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*AdminDeleteSandboxTemplateResponse, error)
// AdminUpdateSandboxTemplateWithBodyWithResponse request with any body
AdminUpdateSandboxTemplateWithBodyWithResponse(ctx context.Context, name PathTemplateName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminUpdateSandboxTemplateResponse, error)
AdminUpdateSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, body AdminUpdateSandboxTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminUpdateSandboxTemplateResponse, error)
// AdminGetSandboxStatisticsWithResponse request
AdminGetSandboxStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AdminGetSandboxStatisticsResponse, error)
// ListTeamsWithResponse request
ListTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
// ListUsersByTeamWithResponse request
ListUsersByTeamWithResponse(ctx context.Context, team PathTeam, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error)
// SelfListAPIKeysWithResponse request
SelfListAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SelfListAPIKeysResponse, error)
// SelfCreateAPIKeyWithBodyWithResponse request with any body
SelfCreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelfCreateAPIKeyResponse, error)
SelfCreateAPIKeyWithResponse(ctx context.Context, body SelfCreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SelfCreateAPIKeyResponse, error)
// SelfDeleteAPIKeyWithResponse request
SelfDeleteAPIKeyWithResponse(ctx context.Context, name PathAPIKeyName, reqEditors ...RequestEditorFn) (*SelfDeleteAPIKeyResponse, error)
// ListApprovalsWithResponse request
ListApprovalsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApprovalsResponse, error)
// RevokeApprovalGrantWithResponse request
RevokeApprovalGrantWithResponse(ctx context.Context, grantId string, reqEditors ...RequestEditorFn) (*RevokeApprovalGrantResponse, error)
// GetApprovalWithResponse request
GetApprovalWithResponse(ctx context.Context, approvalId string, reqEditors ...RequestEditorFn) (*GetApprovalResponse, error)
// DecideApprovalWithBodyWithResponse request with any body
DecideApprovalWithBodyWithResponse(ctx context.Context, approvalId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DecideApprovalResponse, error)
DecideApprovalWithResponse(ctx context.Context, approvalId string, body DecideApprovalJSONRequestBody, reqEditors ...RequestEditorFn) (*DecideApprovalResponse, error)
// GetWhoAmIWithResponse request
GetWhoAmIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWhoAmIResponse, error)
// ListClustersWithResponse request
ListClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)
// ListSandboxEnvsWithResponse request
ListSandboxEnvsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxEnvsResponse, error)
// CreateSandboxEnvWithBodyWithResponse request with any body
CreateSandboxEnvWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxEnvResponse, error)
CreateSandboxEnvWithResponse(ctx context.Context, body CreateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxEnvResponse, error)
// DeleteSandboxEnvWithResponse request
DeleteSandboxEnvWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteSandboxEnvResponse, error)
// GetSandboxEnvWithResponse request
GetSandboxEnvWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetSandboxEnvResponse, error)
// UpdateSandboxEnvWithBodyWithResponse request with any body
UpdateSandboxEnvWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSandboxEnvResponse, error)
UpdateSandboxEnvWithResponse(ctx context.Context, name string, body UpdateSandboxEnvJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSandboxEnvResponse, error)
// GetEnvAutoscalingWithResponse request
GetEnvAutoscalingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetEnvAutoscalingResponse, error)
// ListEnvAutoscalingGroupsWithResponse request
ListEnvAutoscalingGroupsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ListEnvAutoscalingGroupsResponse, error)
// DeleteEnvAutoscalingGroupWithResponse request
DeleteEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, reqEditors ...RequestEditorFn) (*DeleteEnvAutoscalingGroupResponse, error)
// GetEnvAutoscalingGroupWithResponse request
GetEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, reqEditors ...RequestEditorFn) (*GetEnvAutoscalingGroupResponse, error)
// UpdateEnvAutoscalingGroupWithBodyWithResponse request with any body
UpdateEnvAutoscalingGroupWithBodyWithResponse(ctx context.Context, name string, groupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvAutoscalingGroupResponse, error)
UpdateEnvAutoscalingGroupWithResponse(ctx context.Context, name string, groupName string, body UpdateEnvAutoscalingGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvAutoscalingGroupResponse, error)
// ListEnvEventsWithResponse request
ListEnvEventsWithResponse(ctx context.Context, name string, params *ListEnvEventsParams, reqEditors ...RequestEditorFn) (*ListEnvEventsResponse, error)
// ListEnvSandboxPoolsWithResponse request
ListEnvSandboxPoolsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ListEnvSandboxPoolsResponse, error)
// CreateEnvSandboxPoolWithBodyWithResponse request with any body
CreateEnvSandboxPoolWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvSandboxPoolResponse, error)
CreateEnvSandboxPoolWithResponse(ctx context.Context, name string, body CreateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvSandboxPoolResponse, error)
// DeleteEnvSandboxPoolWithResponse request
DeleteEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, reqEditors ...RequestEditorFn) (*DeleteEnvSandboxPoolResponse, error)
// GetEnvSandboxPoolWithResponse request
GetEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, reqEditors ...RequestEditorFn) (*GetEnvSandboxPoolResponse, error)
// UpdateEnvSandboxPoolWithBodyWithResponse request with any body
UpdateEnvSandboxPoolWithBodyWithResponse(ctx context.Context, name string, poolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvSandboxPoolResponse, error)
UpdateEnvSandboxPoolWithResponse(ctx context.Context, name string, poolName string, body UpdateEnvSandboxPoolJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvSandboxPoolResponse, error)
// GetFeatureGatesWithResponse request
GetFeatureGatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeatureGatesResponse, error)
// ListInstanceTypesWithResponse request
ListInstanceTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
// ListQuotasWithResponse request
ListQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListQuotasResponse, error)
// ListSandboxTemplatesWithResponse request
ListSandboxTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxTemplatesResponse, error)
// GetSandboxTemplateWithResponse request
GetSandboxTemplateWithResponse(ctx context.Context, name PathTemplateName, reqEditors ...RequestEditorFn) (*GetSandboxTemplateResponse, error)
// ListSandboxesWithResponse request
ListSandboxesWithResponse(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesResponse, error)
// CreateSandboxWithBodyWithResponse request with any body
CreateSandboxWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
CreateSandboxWithResponse(ctx context.Context, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
// DeleteSandboxWithResponse request
DeleteSandboxWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*DeleteSandboxResponse, error)
// GetSandboxWithResponse request
GetSandboxWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
// ExecSandboxCommandWithBodyWithResponse request with any body
ExecSandboxCommandWithBodyWithResponse(ctx context.Context, sandboxId PathSandboxId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecSandboxCommandResponse, error)
ExecSandboxCommandWithResponse(ctx context.Context, sandboxId PathSandboxId, body ExecSandboxCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecSandboxCommandResponse, error)
// CreateSandboxExecTokenWithResponse request
CreateSandboxExecTokenWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*CreateSandboxExecTokenResponse, error)
// IsSandboxReadyWithResponse request
IsSandboxReadyWithResponse(ctx context.Context, sandboxId PathSandboxId, reqEditors ...RequestEditorFn) (*IsSandboxReadyResponse, error)
// GetSandboxLogsWithResponse request
GetSandboxLogsWithResponse(ctx context.Context, sandboxId PathSandboxId, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
// SetSandboxTimeoutWithBodyWithResponse request with any body
SetSandboxTimeoutWithBodyWithResponse(ctx context.Context, sandboxId PathSandboxId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetSandboxTimeoutResponse, error)
SetSandboxTimeoutWithResponse(ctx context.Context, sandboxId PathSandboxId, body SetSandboxTimeoutJSONRequestBody, reqEditors ...RequestEditorFn) (*SetSandboxTimeoutResponse, error)
// GetUserSandboxStatisticsWithResponse request
GetUserSandboxStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserSandboxStatisticsResponse, error)
// ListVolumesWithResponse request
ListVolumesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClusterSummary ¶
type ClusterSummary struct {
// Id Cluster identifier. Use this value as the prefix when addressing
// cross-cluster resources: `{id}.{uuid}` for sandboxes,
// `{id}::{poolName}` for pools.
Id string `json:"id"`
// Local True when this entry is the cluster serving the current request —
// i.e. sandbox/pool identifiers without any cross-cluster prefix refer
// to this cluster.
Local bool `json:"local"`
// Name Human-readable display name (may equal id).
Name *string `json:"name,omitempty"`
}
ClusterSummary One cluster entry visible through the gateway's routing table.
type CreateAPIKey201JSONResponse ¶
type CreateAPIKey201JSONResponse CreateAPIKeyResult
func (CreateAPIKey201JSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKey201JSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAPIKey400JSONResponse ¶
type CreateAPIKey400JSONResponse ErrorResponse
func (CreateAPIKey400JSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKey400JSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAPIKey401JSONResponse ¶
type CreateAPIKey401JSONResponse ErrorResponse
func (CreateAPIKey401JSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKey401JSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAPIKey403JSONResponse ¶
type CreateAPIKey403JSONResponse ErrorResponse
func (CreateAPIKey403JSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKey403JSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAPIKey503JSONResponse ¶
type CreateAPIKey503JSONResponse ErrorResponse
func (CreateAPIKey503JSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKey503JSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAPIKeyJSONRequestBody ¶
type CreateAPIKeyJSONRequestBody = CreateAPIKeyRequest
CreateAPIKeyJSONRequestBody defines body for CreateAPIKey for application/json ContentType.
type CreateAPIKeyRequest ¶
type CreateAPIKeyRequest struct {
// Description Optional human-readable description for this key.
Description *string `json:"description,omitempty"`
// ExpiresAt Optional RFC 3339 expiry timestamp. Omit for a non-expiring key.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// HashPrefix First 16 hex characters of the tokenHash. Required when tokenHash is provided.
HashPrefix *string `json:"hashPrefix,omitempty"`
// IssuedAt Original issue timestamp (import mode). Used to preserve the original creation time. Ignored when tokenHash is not provided.
IssuedAt *time.Time `json:"issuedAt,omitempty"`
// Namespace Kubernetes namespace to associate the key with.
Namespace *string `json:"namespace,omitempty"`
// Team Team name to associate the key with.
Team *string `json:"team,omitempty"`
// TokenHash Full SHA-256 hex hash of the raw token (64 hex chars). When provided together with hashPrefix, the key is imported using the given hash instead of generating a new random token. The operation is idempotent — if a key with the same hash already exists it is silently accepted. Admin-only.
TokenHash *string `json:"tokenHash,omitempty"`
// User Username to associate the key with.
User *string `json:"user,omitempty"`
}
CreateAPIKeyRequest defines model for CreateAPIKeyRequest.
type CreateAPIKeyRequestObject ¶
type CreateAPIKeyRequestObject struct {
Body *CreateAPIKeyJSONRequestBody
}
type CreateAPIKeyResponse ¶
type CreateAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateAPIKeyResult
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseCreateAPIKeyResponse ¶
func ParseCreateAPIKeyResponse(rsp *http.Response) (*CreateAPIKeyResponse, error)
ParseCreateAPIKeyResponse parses an HTTP response from a CreateAPIKeyWithResponse call
func (CreateAPIKeyResponse) Status ¶
func (r CreateAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAPIKeyResponse) StatusCode ¶
func (r CreateAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAPIKeyResponseObject ¶
type CreateAPIKeyResponseObject interface {
VisitCreateAPIKeyResponse(w http.ResponseWriter) error
}
type CreateAPIKeyResult ¶
type CreateAPIKeyResult struct {
// ApiKey The raw API key value (only returned once at creation time; store it securely).
ApiKey string `json:"apiKey"`
// Description Human-readable description of the key.
Description *string `json:"description,omitempty"`
// ExpiresAt RFC 3339 expiry timestamp, or absent if the key never expires.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// IssuedAt RFC 3339 timestamp when the key was created.
IssuedAt time.Time `json:"issuedAt"`
// KeyId Unique identifier for this API key (used to look up or delete the key).
KeyId string `json:"keyId"`
// Role Role granted by this key (e.g. tenant, admin).
Role string `json:"role"`
// Team Team associated with the key.
Team *string `json:"team,omitempty"`
// User Username associated with the key.
User *string `json:"user,omitempty"`
}
CreateAPIKeyResult defines model for CreateAPIKeyResult.
type CreateEnvSandboxPool202JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool202JSONResponse SandboxPoolEnvelope
func (CreateEnvSandboxPool202JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool202JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPool400JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool400JSONResponse ErrorResponse
func (CreateEnvSandboxPool400JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool400JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPool401JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool401JSONResponse ErrorResponse
func (CreateEnvSandboxPool401JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool401JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPool404JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool404JSONResponse ErrorResponse
func (CreateEnvSandboxPool404JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool404JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPool409JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool409JSONResponse ErrorResponse
func (CreateEnvSandboxPool409JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool409JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPool500JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool500JSONResponse ErrorResponse
func (CreateEnvSandboxPool500JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool500JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPool503JSONResponse ¶ added in v0.0.5
type CreateEnvSandboxPool503JSONResponse ErrorResponse
func (CreateEnvSandboxPool503JSONResponse) VisitCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response CreateEnvSandboxPool503JSONResponse) VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
type CreateEnvSandboxPoolJSONRequestBody ¶ added in v0.0.5
type CreateEnvSandboxPoolJSONRequestBody = CreateEnvSandboxPoolRequest
CreateEnvSandboxPoolJSONRequestBody defines body for CreateEnvSandboxPool for application/json ContentType.
type CreateEnvSandboxPoolRequest ¶ added in v0.0.5
type CreateEnvSandboxPoolRequest = UpsertSandboxPoolRequest
CreateEnvSandboxPoolRequest Add a member SandboxPool to an Env. The server derives:
- `name` = "{envName}-{resourceKey}[-{quotaShort}]"
- `scalingGroup` = `resourceKey` (e.g. "2c8Gi")
where `resourceKey` is `instancetype.DeriveResourceKey(effective resources)` and `quotaShort` (when a quota label is supplied) is `quotaProvider.DeriveShortName(quotaID)`. Members in the same `scalingGroup` share an autoscaling policy.
WHICH OF THE SHAPES BELOW IS ACCEPTED IS THE ENV'S TO SAY, not the caller's — read `poolSizing` off the Env this Pool joins (Template detail and Env detail both carry it; `abx envs <name>` prints it).
Billed Env (`poolSizing: billed`) — the Template is billed, so the Pool must name what it spends:
- `instanceType` (+ optional `multiplier`) alone → the Pod is sized to the full `instanceType × multiplier` envelope (default `multiplier` = 1).
- `instanceType` (+ `multiplier`) AND `inlineResources` together → `instanceType × multiplier` is the reservation/billing envelope, while `inlineResources` is the actual (possibly rounded-down) Pod request. Every dimension of `inlineResources` must be ≤ the envelope (round down allowed, round up rejected with 400); the reservation still charges quota for the whole instance.
- `labels` must carry `quota.scitix.ai/url`.
Free-form Env (`poolSizing: free-form`) — the Template is one the deployment does not bill, so the Pool is sized directly:
- `inlineResources` alone → explicit per-Pool resource requests/limits.
- `instanceType`, `multiplier` and the quota label are REJECTED (400): an instance type buys an instance nobody reserved, and a quota label on a Pool that is never submitted for reservation is a claim the server cannot honour.
Unmanaged Env (`poolSizing: either`) — this deployment states no rule, so both shapes are accepted and the caller picks. Every deployment behaved this way before the rule existed.
Under the two managed values there is no per-Pool choice: the shape follows from the Env, so two Pools of one Env are always sized the same way. `scalingGroup` / pool name are derived from the effective Pod request (the rounded-down `inlineResources` when supplied, else the full envelope), so the name reflects the Pod's real size and Pools downsized differently land in distinct scaling groups.
This is also what an update takes, and what `GET` returns as `editable`: one body for create, update and export, so a client edits what the API handed it rather than translating between two subsets that drift.
The fields marked `x-immutable` describe the Pool's SHAPE and are fixed at create. An update must carry them back unchanged — omitting one or changing one is a 400 that names the value in force, because a body that loses the instance type is a caller bug, not a request for a smaller machine.
type CreateEnvSandboxPoolRequestObject ¶ added in v0.0.5
type CreateEnvSandboxPoolRequestObject struct {
Name string `json:"name"`
Body *CreateEnvSandboxPoolJSONRequestBody
}
type CreateEnvSandboxPoolResponse ¶ added in v0.0.5
type CreateEnvSandboxPoolResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *SandboxPoolEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
JSON500 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseCreateEnvSandboxPoolResponse ¶ added in v0.0.5
func ParseCreateEnvSandboxPoolResponse(rsp *http.Response) (*CreateEnvSandboxPoolResponse, error)
ParseCreateEnvSandboxPoolResponse parses an HTTP response from a CreateEnvSandboxPoolWithResponse call
func (CreateEnvSandboxPoolResponse) Status ¶ added in v0.0.5
func (r CreateEnvSandboxPoolResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEnvSandboxPoolResponse) StatusCode ¶ added in v0.0.5
func (r CreateEnvSandboxPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEnvSandboxPoolResponseObject ¶ added in v0.0.5
type CreateEnvSandboxPoolResponseObject interface {
VisitCreateEnvSandboxPoolResponse(w http.ResponseWriter) error
}
type CreateSandbox201JSONResponse ¶
type CreateSandbox201JSONResponse SandboxEnvelope
func (CreateSandbox201JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox201JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox400JSONResponse ¶
type CreateSandbox400JSONResponse ErrorResponse
func (CreateSandbox400JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox400JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox401JSONResponse ¶
type CreateSandbox401JSONResponse ErrorResponse
func (CreateSandbox401JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox401JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox403JSONResponse ¶ added in v0.0.11
type CreateSandbox403JSONResponse ErrorResponse
func (CreateSandbox403JSONResponse) VisitCreateSandboxResponse ¶ added in v0.0.11
func (response CreateSandbox403JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox404JSONResponse ¶
type CreateSandbox404JSONResponse ErrorResponse
func (CreateSandbox404JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox404JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox409JSONResponse ¶
type CreateSandbox409JSONResponse ErrorResponse
func (CreateSandbox409JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox409JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox429JSONResponse ¶
type CreateSandbox429JSONResponse ErrorResponse
func (CreateSandbox429JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox429JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandbox500JSONResponse ¶
type CreateSandbox500JSONResponse ErrorResponse
func (CreateSandbox500JSONResponse) VisitCreateSandboxResponse ¶
func (response CreateSandbox500JSONResponse) VisitCreateSandboxResponse(w http.ResponseWriter) error
type CreateSandboxEnv201JSONResponse ¶ added in v0.0.5
type CreateSandboxEnv201JSONResponse SandboxEnvEnvelope
func (CreateSandboxEnv201JSONResponse) VisitCreateSandboxEnvResponse ¶ added in v0.0.5
func (response CreateSandboxEnv201JSONResponse) VisitCreateSandboxEnvResponse(w http.ResponseWriter) error
type CreateSandboxEnv400JSONResponse ¶ added in v0.0.5
type CreateSandboxEnv400JSONResponse ErrorResponse
func (CreateSandboxEnv400JSONResponse) VisitCreateSandboxEnvResponse ¶ added in v0.0.5
func (response CreateSandboxEnv400JSONResponse) VisitCreateSandboxEnvResponse(w http.ResponseWriter) error
type CreateSandboxEnv401JSONResponse ¶ added in v0.0.5
type CreateSandboxEnv401JSONResponse ErrorResponse
func (CreateSandboxEnv401JSONResponse) VisitCreateSandboxEnvResponse ¶ added in v0.0.5
func (response CreateSandboxEnv401JSONResponse) VisitCreateSandboxEnvResponse(w http.ResponseWriter) error
type CreateSandboxEnv409JSONResponse ¶ added in v0.0.5
type CreateSandboxEnv409JSONResponse ErrorResponse
func (CreateSandboxEnv409JSONResponse) VisitCreateSandboxEnvResponse ¶ added in v0.0.5
func (response CreateSandboxEnv409JSONResponse) VisitCreateSandboxEnvResponse(w http.ResponseWriter) error
type CreateSandboxEnv500JSONResponse ¶ added in v0.0.5
type CreateSandboxEnv500JSONResponse ErrorResponse
func (CreateSandboxEnv500JSONResponse) VisitCreateSandboxEnvResponse ¶ added in v0.0.5
func (response CreateSandboxEnv500JSONResponse) VisitCreateSandboxEnvResponse(w http.ResponseWriter) error
type CreateSandboxEnvJSONRequestBody ¶ added in v0.0.5
type CreateSandboxEnvJSONRequestBody = CreateSandboxEnvRequest
CreateSandboxEnvJSONRequestBody defines body for CreateSandboxEnv for application/json ContentType.
type CreateSandboxEnvRequest ¶ added in v0.0.5
type CreateSandboxEnvRequest struct {
// Annotations Annotations stamped onto the Env's objects.
Annotations *StringMap `json:"annotations,omitempty"`
// Labels Metadata stamped onto the Env's objects. Use for plugin-driven metadata such as quota.scitix.ai/url (parsed by the server to derive the pool-name suffix).
Labels *StringMap `json:"labels,omitempty"`
// Mode WarmPool keeps idle Pods ready to claim. OnDemandJob creates a Pod per sandbox and tears it down after, trading start latency for holding no capacity between runs. Fixed after create.
Mode *CreateSandboxEnvRequestMode `json:"mode,omitempty"`
// Name The Env this file is about. `create` requires it; `update` takes the name from the address and refuses a file whose `name` says something else. It is part of the write body so that the file a create wrote is the file an update takes — one shape, sent to one address. RFC 1123 DNS label, capped at 24 chars so derived names (PoolName = EnvName + ResourceKey + QuotaShort, PodName = PoolName + UUID) stay under the 63-char label/DNS limit.
Name SandboxEnvName `json:"name"`
// Overrides SandboxTemplate fields this Env replaces uniformly for every member Pool. The Env represents a single class of sandbox runtime, so image, image policy, default timeouts and image-pull credentials are expected to be shared; per-Pool variation lives on each EnvClusterMember.
Overrides *EnvOverrides `json:"overrides,omitempty"`
// TemplateRef Which SandboxTemplate every member Pool is rendered from. Pin a version to hold the Env still across Template edits; omit it to follow the Template. Fixed after create.
TemplateRef SandboxEnvTemplateRef `json:"templateRef"`
}
CreateSandboxEnvRequest defines model for CreateSandboxEnvRequest.
type CreateSandboxEnvRequestMode ¶ added in v0.0.5
type CreateSandboxEnvRequestMode string
CreateSandboxEnvRequestMode WarmPool keeps idle Pods ready to claim. OnDemandJob creates a Pod per sandbox and tears it down after, trading start latency for holding no capacity between runs. Fixed after create.
const ( CreateSandboxEnvRequestModeOnDemandJob CreateSandboxEnvRequestMode = "OnDemandJob" CreateSandboxEnvRequestModeWarmPool CreateSandboxEnvRequestMode = "WarmPool" )
Defines values for CreateSandboxEnvRequestMode.
func (CreateSandboxEnvRequestMode) Valid ¶ added in v0.0.5
func (e CreateSandboxEnvRequestMode) Valid() bool
Valid indicates whether the value is a known member of the CreateSandboxEnvRequestMode enum.
type CreateSandboxEnvRequestObject ¶ added in v0.0.5
type CreateSandboxEnvRequestObject struct {
Body *CreateSandboxEnvJSONRequestBody
}
type CreateSandboxEnvResponse ¶ added in v0.0.5
type CreateSandboxEnvResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SandboxEnvEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON409 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseCreateSandboxEnvResponse ¶ added in v0.0.5
func ParseCreateSandboxEnvResponse(rsp *http.Response) (*CreateSandboxEnvResponse, error)
ParseCreateSandboxEnvResponse parses an HTTP response from a CreateSandboxEnvWithResponse call
func (CreateSandboxEnvResponse) Status ¶ added in v0.0.5
func (r CreateSandboxEnvResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSandboxEnvResponse) StatusCode ¶ added in v0.0.5
func (r CreateSandboxEnvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSandboxEnvResponseObject ¶ added in v0.0.5
type CreateSandboxEnvResponseObject interface {
VisitCreateSandboxEnvResponse(w http.ResponseWriter) error
}
type CreateSandboxExecToken200JSONResponse ¶
type CreateSandboxExecToken200JSONResponse ExecTokenResponse
func (CreateSandboxExecToken200JSONResponse) VisitCreateSandboxExecTokenResponse ¶
func (response CreateSandboxExecToken200JSONResponse) VisitCreateSandboxExecTokenResponse(w http.ResponseWriter) error
type CreateSandboxExecToken400JSONResponse ¶
type CreateSandboxExecToken400JSONResponse ErrorResponse
func (CreateSandboxExecToken400JSONResponse) VisitCreateSandboxExecTokenResponse ¶
func (response CreateSandboxExecToken400JSONResponse) VisitCreateSandboxExecTokenResponse(w http.ResponseWriter) error
type CreateSandboxExecToken401JSONResponse ¶
type CreateSandboxExecToken401JSONResponse ErrorResponse
func (CreateSandboxExecToken401JSONResponse) VisitCreateSandboxExecTokenResponse ¶
func (response CreateSandboxExecToken401JSONResponse) VisitCreateSandboxExecTokenResponse(w http.ResponseWriter) error
type CreateSandboxExecToken404JSONResponse ¶
type CreateSandboxExecToken404JSONResponse ErrorResponse
func (CreateSandboxExecToken404JSONResponse) VisitCreateSandboxExecTokenResponse ¶
func (response CreateSandboxExecToken404JSONResponse) VisitCreateSandboxExecTokenResponse(w http.ResponseWriter) error
type CreateSandboxExecToken500JSONResponse ¶
type CreateSandboxExecToken500JSONResponse ErrorResponse
func (CreateSandboxExecToken500JSONResponse) VisitCreateSandboxExecTokenResponse ¶
func (response CreateSandboxExecToken500JSONResponse) VisitCreateSandboxExecTokenResponse(w http.ResponseWriter) error
type CreateSandboxExecTokenRequestObject ¶
type CreateSandboxExecTokenRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
}
type CreateSandboxExecTokenResponse ¶
type CreateSandboxExecTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExecTokenResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseCreateSandboxExecTokenResponse ¶
func ParseCreateSandboxExecTokenResponse(rsp *http.Response) (*CreateSandboxExecTokenResponse, error)
ParseCreateSandboxExecTokenResponse parses an HTTP response from a CreateSandboxExecTokenWithResponse call
func (CreateSandboxExecTokenResponse) Status ¶
func (r CreateSandboxExecTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSandboxExecTokenResponse) StatusCode ¶
func (r CreateSandboxExecTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSandboxExecTokenResponseObject ¶
type CreateSandboxExecTokenResponseObject interface {
VisitCreateSandboxExecTokenResponse(w http.ResponseWriter) error
}
type CreateSandboxJSONRequestBody ¶
type CreateSandboxJSONRequestBody = CreateSandboxRequest
CreateSandboxJSONRequestBody defines body for CreateSandbox for application/json ContentType.
type CreateSandboxRequest ¶
type CreateSandboxRequest struct {
// Annotations Kubernetes annotations to apply to the sandbox pod.
Annotations *map[string]string `json:"annotations,omitempty"`
// ContainerImages Per-container image overrides keyed by container name. Takes precedence over `image`.
ContainerImages *map[string]string `json:"containerImages,omitempty"`
// IdleTimeout Duration of inactivity after which the sandbox is automatically stopped. Duration string, e.g. '5m', '1h'. Use '0' to disable.
IdleTimeout *string `json:"idleTimeout,omitempty"`
// Image Override the main container image for this sandbox. Replaces the pool's default image.
Image *string `json:"image,omitempty"`
// Labels Kubernetes labels to apply to the sandbox pod.
Labels *map[string]string `json:"labels,omitempty"`
// Metadata User-defined key-value metadata for filtering and annotation. Available on the sandbox object after creation.
Metadata *map[string]string `json:"metadata,omitempty"`
// PoolName Where to allocate the sandbox from:
//
// * `{envName}` — a SandboxEnv; the server picks one of its member Pools.
// A bare name must match an Env (every Pool has a same-named Env).
// * `{clusterID}::{name}` — pinned to one cluster, where `name` is resolved
// Env-first and falls back to a Pool of that name. A foreign `clusterID`
// forwards the request to that cluster, which resolves `name` itself.
PoolName string `json:"poolName"`
// StartupTimeout Maximum duration to wait for the sandbox to reach Running status before marking it as Failed. Duration string, e.g. '30s', '2m'.
StartupTimeout *string `json:"startupTimeout,omitempty"`
}
CreateSandboxRequest defines model for CreateSandboxRequest.
type CreateSandboxRequestObject ¶
type CreateSandboxRequestObject struct {
Body *CreateSandboxJSONRequestBody
}
type CreateSandboxResponse ¶
type CreateSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SandboxEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
JSON429 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseCreateSandboxResponse ¶
func ParseCreateSandboxResponse(rsp *http.Response) (*CreateSandboxResponse, error)
ParseCreateSandboxResponse parses an HTTP response from a CreateSandboxWithResponse call
func (CreateSandboxResponse) Status ¶
func (r CreateSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSandboxResponse) StatusCode ¶
func (r CreateSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSandboxResponseObject ¶
type CreateSandboxResponseObject interface {
VisitCreateSandboxResponse(w http.ResponseWriter) error
}
type DecideApproval200JSONResponse ¶ added in v0.0.11
type DecideApproval200JSONResponse ApprovalRequest
func (DecideApproval200JSONResponse) VisitDecideApprovalResponse ¶ added in v0.0.11
func (response DecideApproval200JSONResponse) VisitDecideApprovalResponse(w http.ResponseWriter) error
type DecideApproval400JSONResponse ¶ added in v0.0.11
type DecideApproval400JSONResponse ErrorResponse
func (DecideApproval400JSONResponse) VisitDecideApprovalResponse ¶ added in v0.0.11
func (response DecideApproval400JSONResponse) VisitDecideApprovalResponse(w http.ResponseWriter) error
type DecideApproval403JSONResponse ¶ added in v0.0.11
type DecideApproval403JSONResponse ErrorResponse
func (DecideApproval403JSONResponse) VisitDecideApprovalResponse ¶ added in v0.0.11
func (response DecideApproval403JSONResponse) VisitDecideApprovalResponse(w http.ResponseWriter) error
type DecideApproval404JSONResponse ¶ added in v0.0.11
type DecideApproval404JSONResponse ErrorResponse
func (DecideApproval404JSONResponse) VisitDecideApprovalResponse ¶ added in v0.0.11
func (response DecideApproval404JSONResponse) VisitDecideApprovalResponse(w http.ResponseWriter) error
type DecideApprovalJSONRequestBody ¶ added in v0.0.11
type DecideApprovalJSONRequestBody = ApprovalDecisionRequest
DecideApprovalJSONRequestBody defines body for DecideApproval for application/json ContentType.
type DecideApprovalRequestObject ¶ added in v0.0.11
type DecideApprovalRequestObject struct {
ApprovalId string `json:"approvalId"`
Body *DecideApprovalJSONRequestBody
}
type DecideApprovalResponse ¶ added in v0.0.11
type DecideApprovalResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApprovalRequest
JSON400 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseDecideApprovalResponse ¶ added in v0.0.11
func ParseDecideApprovalResponse(rsp *http.Response) (*DecideApprovalResponse, error)
ParseDecideApprovalResponse parses an HTTP response from a DecideApprovalWithResponse call
func (DecideApprovalResponse) Status ¶ added in v0.0.11
func (r DecideApprovalResponse) Status() string
Status returns HTTPResponse.Status
func (DecideApprovalResponse) StatusCode ¶ added in v0.0.11
func (r DecideApprovalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DecideApprovalResponseObject ¶ added in v0.0.11
type DecideApprovalResponseObject interface {
VisitDecideApprovalResponse(w http.ResponseWriter) error
}
type DeleteAPIKey200JSONResponse ¶
type DeleteAPIKey200JSONResponse DeleteAPIKeyResult
func (DeleteAPIKey200JSONResponse) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKey200JSONResponse) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAPIKey401JSONResponse ¶
type DeleteAPIKey401JSONResponse ErrorResponse
func (DeleteAPIKey401JSONResponse) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKey401JSONResponse) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAPIKey403JSONResponse ¶
type DeleteAPIKey403JSONResponse ErrorResponse
func (DeleteAPIKey403JSONResponse) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKey403JSONResponse) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAPIKey404JSONResponse ¶
type DeleteAPIKey404JSONResponse ErrorResponse
func (DeleteAPIKey404JSONResponse) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKey404JSONResponse) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAPIKey503JSONResponse ¶
type DeleteAPIKey503JSONResponse ErrorResponse
func (DeleteAPIKey503JSONResponse) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKey503JSONResponse) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAPIKeyRequestObject ¶
type DeleteAPIKeyRequestObject struct {
Name PathAPIKeyName `json:"name"`
}
type DeleteAPIKeyResponse ¶
type DeleteAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteAPIKeyResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseDeleteAPIKeyResponse ¶
func ParseDeleteAPIKeyResponse(rsp *http.Response) (*DeleteAPIKeyResponse, error)
ParseDeleteAPIKeyResponse parses an HTTP response from a DeleteAPIKeyWithResponse call
func (DeleteAPIKeyResponse) Status ¶
func (r DeleteAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAPIKeyResponse) StatusCode ¶
func (r DeleteAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAPIKeyResponseObject ¶
type DeleteAPIKeyResponseObject interface {
VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
}
type DeleteAPIKeyResult ¶
type DeleteAPIKeyResult struct {
// KeyId Unique identifier of the deleted API key.
KeyId string `json:"keyId"`
// Status Result of the delete operation (e.g. Deleted).
Status string `json:"status"`
}
DeleteAPIKeyResult defines model for DeleteAPIKeyResult.
type DeleteEnvAutoscalingGroup200JSONResponse ¶ added in v0.0.5
type DeleteEnvAutoscalingGroup200JSONResponse DeleteEnvAutoscalingGroupResult
func (DeleteEnvAutoscalingGroup200JSONResponse) VisitDeleteEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response DeleteEnvAutoscalingGroup200JSONResponse) VisitDeleteEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type DeleteEnvAutoscalingGroup401JSONResponse ¶ added in v0.0.5
type DeleteEnvAutoscalingGroup401JSONResponse ErrorResponse
func (DeleteEnvAutoscalingGroup401JSONResponse) VisitDeleteEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response DeleteEnvAutoscalingGroup401JSONResponse) VisitDeleteEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type DeleteEnvAutoscalingGroup404JSONResponse ¶ added in v0.0.5
type DeleteEnvAutoscalingGroup404JSONResponse ErrorResponse
func (DeleteEnvAutoscalingGroup404JSONResponse) VisitDeleteEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response DeleteEnvAutoscalingGroup404JSONResponse) VisitDeleteEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type DeleteEnvAutoscalingGroup500JSONResponse ¶ added in v0.0.5
type DeleteEnvAutoscalingGroup500JSONResponse ErrorResponse
func (DeleteEnvAutoscalingGroup500JSONResponse) VisitDeleteEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response DeleteEnvAutoscalingGroup500JSONResponse) VisitDeleteEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type DeleteEnvAutoscalingGroupRequestObject ¶ added in v0.0.5
type DeleteEnvAutoscalingGroupResponse ¶ added in v0.0.5
type DeleteEnvAutoscalingGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteEnvAutoscalingGroupResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteEnvAutoscalingGroupResponse ¶ added in v0.0.5
func ParseDeleteEnvAutoscalingGroupResponse(rsp *http.Response) (*DeleteEnvAutoscalingGroupResponse, error)
ParseDeleteEnvAutoscalingGroupResponse parses an HTTP response from a DeleteEnvAutoscalingGroupWithResponse call
func (DeleteEnvAutoscalingGroupResponse) Status ¶ added in v0.0.5
func (r DeleteEnvAutoscalingGroupResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEnvAutoscalingGroupResponse) StatusCode ¶ added in v0.0.5
func (r DeleteEnvAutoscalingGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEnvAutoscalingGroupResponseObject ¶ added in v0.0.5
type DeleteEnvAutoscalingGroupResponseObject interface {
VisitDeleteEnvAutoscalingGroupResponse(w http.ResponseWriter) error
}
type DeleteEnvAutoscalingGroupResult ¶ added in v0.0.5
type DeleteEnvAutoscalingGroupResult struct {
Name string `json:"name"`
// Status 'Deleted' on success.
Status string `json:"status"`
}
DeleteEnvAutoscalingGroupResult defines model for DeleteEnvAutoscalingGroupResult.
type DeleteEnvSandboxPool202JSONResponse ¶ added in v0.0.5
type DeleteEnvSandboxPool202JSONResponse DeleteSandboxPoolResult
func (DeleteEnvSandboxPool202JSONResponse) VisitDeleteEnvSandboxPoolResponse ¶ added in v0.0.5
func (response DeleteEnvSandboxPool202JSONResponse) VisitDeleteEnvSandboxPoolResponse(w http.ResponseWriter) error
type DeleteEnvSandboxPool401JSONResponse ¶ added in v0.0.5
type DeleteEnvSandboxPool401JSONResponse ErrorResponse
func (DeleteEnvSandboxPool401JSONResponse) VisitDeleteEnvSandboxPoolResponse ¶ added in v0.0.5
func (response DeleteEnvSandboxPool401JSONResponse) VisitDeleteEnvSandboxPoolResponse(w http.ResponseWriter) error
type DeleteEnvSandboxPool404JSONResponse ¶ added in v0.0.5
type DeleteEnvSandboxPool404JSONResponse ErrorResponse
func (DeleteEnvSandboxPool404JSONResponse) VisitDeleteEnvSandboxPoolResponse ¶ added in v0.0.5
func (response DeleteEnvSandboxPool404JSONResponse) VisitDeleteEnvSandboxPoolResponse(w http.ResponseWriter) error
type DeleteEnvSandboxPool500JSONResponse ¶ added in v0.0.5
type DeleteEnvSandboxPool500JSONResponse ErrorResponse
func (DeleteEnvSandboxPool500JSONResponse) VisitDeleteEnvSandboxPoolResponse ¶ added in v0.0.5
func (response DeleteEnvSandboxPool500JSONResponse) VisitDeleteEnvSandboxPoolResponse(w http.ResponseWriter) error
type DeleteEnvSandboxPool503JSONResponse ¶ added in v0.0.5
type DeleteEnvSandboxPool503JSONResponse ErrorResponse
func (DeleteEnvSandboxPool503JSONResponse) VisitDeleteEnvSandboxPoolResponse ¶ added in v0.0.5
func (response DeleteEnvSandboxPool503JSONResponse) VisitDeleteEnvSandboxPoolResponse(w http.ResponseWriter) error
type DeleteEnvSandboxPoolRequestObject ¶ added in v0.0.5
type DeleteEnvSandboxPoolResponse ¶ added in v0.0.5
type DeleteEnvSandboxPoolResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *DeleteSandboxPoolResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseDeleteEnvSandboxPoolResponse ¶ added in v0.0.5
func ParseDeleteEnvSandboxPoolResponse(rsp *http.Response) (*DeleteEnvSandboxPoolResponse, error)
ParseDeleteEnvSandboxPoolResponse parses an HTTP response from a DeleteEnvSandboxPoolWithResponse call
func (DeleteEnvSandboxPoolResponse) Status ¶ added in v0.0.5
func (r DeleteEnvSandboxPoolResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEnvSandboxPoolResponse) StatusCode ¶ added in v0.0.5
func (r DeleteEnvSandboxPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEnvSandboxPoolResponseObject ¶ added in v0.0.5
type DeleteEnvSandboxPoolResponseObject interface {
VisitDeleteEnvSandboxPoolResponse(w http.ResponseWriter) error
}
type DeleteSandbox202JSONResponse ¶
type DeleteSandbox202JSONResponse DeleteSandboxResult
func (DeleteSandbox202JSONResponse) VisitDeleteSandboxResponse ¶
func (response DeleteSandbox202JSONResponse) VisitDeleteSandboxResponse(w http.ResponseWriter) error
type DeleteSandbox401JSONResponse ¶
type DeleteSandbox401JSONResponse ErrorResponse
func (DeleteSandbox401JSONResponse) VisitDeleteSandboxResponse ¶
func (response DeleteSandbox401JSONResponse) VisitDeleteSandboxResponse(w http.ResponseWriter) error
type DeleteSandbox404JSONResponse ¶
type DeleteSandbox404JSONResponse ErrorResponse
func (DeleteSandbox404JSONResponse) VisitDeleteSandboxResponse ¶
func (response DeleteSandbox404JSONResponse) VisitDeleteSandboxResponse(w http.ResponseWriter) error
type DeleteSandbox500JSONResponse ¶
type DeleteSandbox500JSONResponse ErrorResponse
func (DeleteSandbox500JSONResponse) VisitDeleteSandboxResponse ¶
func (response DeleteSandbox500JSONResponse) VisitDeleteSandboxResponse(w http.ResponseWriter) error
type DeleteSandboxEnv202JSONResponse ¶ added in v0.0.5
type DeleteSandboxEnv202JSONResponse DeleteSandboxEnvResult
func (DeleteSandboxEnv202JSONResponse) VisitDeleteSandboxEnvResponse ¶ added in v0.0.5
func (response DeleteSandboxEnv202JSONResponse) VisitDeleteSandboxEnvResponse(w http.ResponseWriter) error
type DeleteSandboxEnv401JSONResponse ¶ added in v0.0.5
type DeleteSandboxEnv401JSONResponse ErrorResponse
func (DeleteSandboxEnv401JSONResponse) VisitDeleteSandboxEnvResponse ¶ added in v0.0.5
func (response DeleteSandboxEnv401JSONResponse) VisitDeleteSandboxEnvResponse(w http.ResponseWriter) error
type DeleteSandboxEnv404JSONResponse ¶ added in v0.0.5
type DeleteSandboxEnv404JSONResponse ErrorResponse
func (DeleteSandboxEnv404JSONResponse) VisitDeleteSandboxEnvResponse ¶ added in v0.0.5
func (response DeleteSandboxEnv404JSONResponse) VisitDeleteSandboxEnvResponse(w http.ResponseWriter) error
type DeleteSandboxEnv500JSONResponse ¶ added in v0.0.5
type DeleteSandboxEnv500JSONResponse ErrorResponse
func (DeleteSandboxEnv500JSONResponse) VisitDeleteSandboxEnvResponse ¶ added in v0.0.5
func (response DeleteSandboxEnv500JSONResponse) VisitDeleteSandboxEnvResponse(w http.ResponseWriter) error
type DeleteSandboxEnvRequestObject ¶ added in v0.0.5
type DeleteSandboxEnvRequestObject struct {
Name string `json:"name"`
}
type DeleteSandboxEnvResponse ¶ added in v0.0.5
type DeleteSandboxEnvResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *DeleteSandboxEnvResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteSandboxEnvResponse ¶ added in v0.0.5
func ParseDeleteSandboxEnvResponse(rsp *http.Response) (*DeleteSandboxEnvResponse, error)
ParseDeleteSandboxEnvResponse parses an HTTP response from a DeleteSandboxEnvWithResponse call
func (DeleteSandboxEnvResponse) Status ¶ added in v0.0.5
func (r DeleteSandboxEnvResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSandboxEnvResponse) StatusCode ¶ added in v0.0.5
func (r DeleteSandboxEnvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSandboxEnvResponseObject ¶ added in v0.0.5
type DeleteSandboxEnvResponseObject interface {
VisitDeleteSandboxEnvResponse(w http.ResponseWriter) error
}
type DeleteSandboxEnvResult ¶ added in v0.0.5
type DeleteSandboxEnvResult struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
// Status 'Terminating' on a successful delete request.
Status string `json:"status"`
}
DeleteSandboxEnvResult defines model for DeleteSandboxEnvResult.
type DeleteSandboxPoolResult ¶
type DeleteSandboxPoolResult struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Status string `json:"status"`
}
DeleteSandboxPoolResult defines model for DeleteSandboxPoolResult.
type DeleteSandboxRequestObject ¶
type DeleteSandboxRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
}
type DeleteSandboxResponse ¶
type DeleteSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *DeleteSandboxResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteSandboxResponse ¶
func ParseDeleteSandboxResponse(rsp *http.Response) (*DeleteSandboxResponse, error)
ParseDeleteSandboxResponse parses an HTTP response from a DeleteSandboxWithResponse call
func (DeleteSandboxResponse) Status ¶
func (r DeleteSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSandboxResponse) StatusCode ¶
func (r DeleteSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSandboxResponseObject ¶
type DeleteSandboxResponseObject interface {
VisitDeleteSandboxResponse(w http.ResponseWriter) error
}
type DeleteSandboxResult ¶
type DeleteSandboxResult struct {
// Namespace Kubernetes namespace the sandbox belonged to.
Namespace string `json:"namespace"`
// PodName Name of the Kubernetes Pod that backed the sandbox.
PodName string `json:"podName"`
// PoolName Name of the SandboxPool the sandbox was allocated from.
PoolName string `json:"poolName"`
// SandboxId Sandbox identifier. Single-cluster: bare UUID v7; cross-cluster: `{clusterID}.{uuid}` composite (dot-separated).
// NOT a strict RFC 4122 UUID — treat as opaque.
SandboxId string `json:"sandboxId"`
// Status Final status of the delete operation (e.g. Stopping).
Status string `json:"status"`
}
DeleteSandboxResult defines model for DeleteSandboxResult.
type DeleteSandboxTemplateResult ¶
DeleteSandboxTemplateResult defines model for DeleteSandboxTemplateResult.
type EnvAutoscalingGroup ¶ added in v0.0.5
type EnvAutoscalingGroup struct {
// Enabled Per-group master switch. When false, this group's members keep manual Pool replicas; the autoscaler skips it. Each group is independent — other groups continue to run if Enabled=true.
Enabled *bool `json:"enabled,omitempty"`
// MaxReplicas Upper bound on the group's aggregate desired replicas.
MaxReplicas *int32 `json:"maxReplicas,omitempty"`
// MinReplicas Lower bound on the group's aggregate desired replicas.
MinReplicas *int32 `json:"minReplicas,omitempty"`
// Name ScalingGroup identifier this policy applies to. Matches the EnvClusterMember.scalingGroup of at least one member declared on the env — the group is created automatically when a member with this ScalingGroup is added, and garbage-collected by the Env reconciler once no member references it.
Name string `json:"name"`
// ScaleDownPolicy Scale-down timing for a scaling group. How many replicas each event removes comes from scaleUpPolicy.mode — scale-down mirrors the scale-up mode so a pool sheds capacity on the same scale it acquired it.
ScaleDownPolicy *PoolScaleDownPolicy `json:"scaleDownPolicy,omitempty"`
// ScaleUpPolicy Scale-up behaviour for a scaling group (mode + cooldown + idle threshold + saturation cooldown).
ScaleUpPolicy *PoolScaleUpPolicy `json:"scaleUpPolicy,omitempty"`
}
EnvAutoscalingGroup defines model for EnvAutoscalingGroup.
type EnvAutoscalingGroupEnvelope ¶ added in v0.0.5
type EnvAutoscalingGroupEnvelope struct {
// Editable Desired state of one autoscaling group. This is a PUT and it means it:
// a field left out is one the caller wants REMOVED. That is the only way
// "take the ceiling off" can be expressed — while an omitted field meant
// "leave unchanged" there was no request that could clear minReplicas,
// maxReplicas or a policy, and the form's empty box reported success
// without doing anything.
Editable *UpdateEnvAutoscalingGroupRequest `json:"editable,omitempty"`
Group EnvAutoscalingGroup `json:"group"`
}
EnvAutoscalingGroupEnvelope defines model for EnvAutoscalingGroupEnvelope.
type EnvAutoscalingSpec ¶ added in v0.0.5
type EnvAutoscalingSpec struct {
// Groups Per-scaling-group policies. The autoscaler iterates Groups in order and operates on the first Enabled=true entry; future multi-group routing will use member.ScalingGroup to dispatch.
Groups *[]EnvAutoscalingGroup `json:"groups,omitempty"`
}
EnvAutoscalingSpec Env-level autoscaler config. The master switch lives per-group on EnvAutoscalingGroup.enabled so groups can be toggled independently.
type EnvAutoscalingSpecEnvelope ¶ added in v0.0.5
type EnvAutoscalingSpecEnvelope struct {
// Spec Env-level autoscaler config. The master switch lives per-group on EnvAutoscalingGroup.enabled so groups can be toggled independently.
Spec EnvAutoscalingSpec `json:"spec"`
}
EnvAutoscalingSpecEnvelope defines model for EnvAutoscalingSpecEnvelope.
type EnvClusterMember ¶ added in v0.0.5
type EnvClusterMember struct {
// Config User-declared intent for one Env member. Plugins do not mutate this —
// it stays equal to whatever the caller supplied at AddMember /
// UpdateMember time, so it remains a faithful description of the
// request shape across the member's lifetime.
Config *EnvClusterMemberConfig `json:"config,omitempty"`
// Name SandboxPool's metadata.name within the Env's namespace. Acts as the member identity within the Env.
Name string `json:"name"`
}
EnvClusterMember One SandboxPool participating in an Env. Identity is `name`; everything the caller can declare (sizing, scaling-group, routing priorities, user-supplied labels/annotations) lives under `config`. The materialised Pool's metadata + spec are server-internal state (captured after plugin admission ran) and are NOT exposed here — query the SandboxPool CR directly via `GET /v1/sandboxenvs/{name}/sandboxpools/{poolName}` to inspect the rendered Pool.
type EnvClusterMemberConfig ¶ added in v0.0.5
type EnvClusterMemberConfig struct {
// Annotations User-supplied SandboxPool metadata.annotations. Same propagation as labels.
Annotations *map[string]string `json:"annotations,omitempty"`
// InlineResources Subset of Kubernetes corev1.ResourceRequirements used for per-Pool resource sizing on EnvClusterMember.inlineResources.
InlineResources *ResourceRequirements `json:"inlineResources,omitempty"`
// InstanceType Optional InstanceType catalog entry referenced by this member.
InstanceType *string `json:"instanceType,omitempty"`
// Labels User-supplied SandboxPool metadata.labels (e.g. quota.scitix.ai/url). Plugins may consume these for routing decisions; their output lands on the server-internal member.metadata, not here.
Labels *map[string]string `json:"labels,omitempty"`
// MaxReplicas Upper bound on this member's spec.replicas. Enforced by the Env autoscaler when distributing scale-up delta.
MaxReplicas *int32 `json:"maxReplicas,omitempty"`
// MinReplicas Lower bound on this member's spec.replicas. Enforced by the Env autoscaler as a per-member scale-down floor.
MinReplicas *int32 `json:"minReplicas,omitempty"`
// Multiplier Multiplier applied to the InstanceType base resources for this member.
Multiplier *int32 `json:"multiplier,omitempty"`
// Priority Canonical preference: lower wins. Used for routing tiebreaks and as the default for scaleUpPriority / scaleDownPriority when those are unset.
Priority *int32 `json:"priority,omitempty"`
// ScaleDownPriority Scale-down order within the scaling group — lower shrunk first. When omitted, falls back to priority.
ScaleDownPriority *int32 `json:"scaleDownPriority,omitempty"`
// ScaleUpPriority Scale-up order within the scaling group — lower scaled first. When omitted, falls back to priority. Same-value tiebreak by name.
ScaleUpPriority *int32 `json:"scaleUpPriority,omitempty"`
// ScalingGroup ScalingGroup name (typically derived from the effective resources, e.g. '1c4Gi'). Members in the same group share autoscaling policy.
ScalingGroup *string `json:"scalingGroup,omitempty"`
// UpdateStrategy Automatic rollout policy for member Pools when their rendered idle-Pod identity (Template edit, image / gateway override) changes. Rollout mode is always Recreate: stale idle Pods are rebuilt; claimed (Running/Starting) Pods are never disrupted and roll after returning to Idle.
UpdateStrategy *EnvUpdateStrategy `json:"updateStrategy,omitempty"`
}
EnvClusterMemberConfig User-declared intent for one Env member. Plugins do not mutate this — it stays equal to whatever the caller supplied at AddMember / UpdateMember time, so it remains a faithful description of the request shape across the member's lifetime.
type EnvClusterSpec ¶ added in v0.0.5
type EnvClusterSpec struct {
// ClusterID Cluster identifier that owns this segment. Each Worker only mutates the segment matching its own clusterID.
ClusterID string `json:"clusterID"`
// Members Member Pools in this cluster. MVP allows multiple members per cluster but a single ScalingGroup.
Members *[]EnvClusterMember `json:"members,omitempty"`
}
EnvClusterSpec defines model for EnvClusterSpec.
type EnvClusterStatus ¶ added in v0.0.5
type EnvClusterStatus struct {
ClusterID string `json:"clusterID"`
// IsLocal True on the Worker that owns this segment. Other segments arrive via Hub Sync (future).
IsLocal *bool `json:"isLocal,omitempty"`
LastSnapshotTime *time.Time `json:"lastSnapshotTime,omitempty"`
ObservedMembers *[]EnvObservedMember `json:"observedMembers,omitempty"`
}
EnvClusterStatus defines model for EnvClusterStatus.
type EnvCondition ¶ added in v0.0.5
type EnvCondition struct {
LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"`
Message *string `json:"message,omitempty"`
Reason *string `json:"reason,omitempty"`
Status string `json:"status"`
Type string `json:"type"`
}
EnvCondition defines model for EnvCondition.
type EnvEvent ¶ added in v0.0.5
type EnvEvent struct {
// Action Event action (machine-readable). Sometimes absent on older events.
Action *string `json:"action,omitempty"`
// Count Number of times this event has fired. K8s coalesces repeated identical events and bumps this counter.
Count int `json:"count"`
// FirstTimestamp First time this event was observed (RFC3339).
FirstTimestamp *time.Time `json:"firstTimestamp,omitempty"`
// InvolvedKind Kind of the K8s object this event was emitted against. One of SandboxEnv | SandboxPool.
InvolvedKind string `json:"involvedKind"`
// InvolvedName metadata.name of the involved object.
InvolvedName string `json:"involvedName"`
// LastTimestamp Most recent time this event was observed (RFC3339).
LastTimestamp *time.Time `json:"lastTimestamp,omitempty"`
// Message Human-readable message body.
Message string `json:"message"`
// Reason Event reason (machine-readable verb): ScaleUp / ScaleDown / PoolReady / PoolRecovered / Degraded / AutoscalerScaleUp / AutoscalerScaleDownStarted / AutoscalerScaleDownCompleted / AutoscalerScaleDownStuck / SandboxPoolPhase*.
Reason string `json:"reason"`
// Type Normal | Warning
Type string `json:"type"`
}
EnvEvent defines model for EnvEvent.
type EnvObservedMember ¶ added in v0.0.5
type EnvObservedMember struct {
// AutoscalingEnabled Whether this member's scalingGroup has the autoscaler on in its owning cluster. Each cluster scales independently, so a same-named group may be enabled in one cluster and off in another; this is the per-pool, per-cluster truth. Disambiguates scaleUpHeadroom == 0 (at ceiling) from autoscaling being off.
AutoscalingEnabled *bool `json:"autoscalingEnabled,omitempty"`
CurrentReplicas *int32 `json:"currentReplicas,omitempty"`
DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
IdleCount *int32 `json:"idleCount,omitempty"`
InstanceType *string `json:"instanceType,omitempty"`
Multiplier *int32 `json:"multiplier,omitempty"`
Name string `json:"name"`
// PendingRequests Mirror of SandboxPool.status.pendingRequests for this member — throttled at the source so visible value lags actual queue depth by up to ~3s.
PendingRequests *int32 `json:"pendingRequests,omitempty"`
RunningCount *int32 `json:"runningCount,omitempty"`
// SaturatedUntil Read-only mirror of SandboxPool.status.autoscaling.saturatedUntil. Until this time, the router deprioritises the member because the per-Pool autoscaler reported the cluster cannot fit additional replicas.
SaturatedUntil *time.Time `json:"saturatedUntil,omitempty"`
// ScaleUpHeadroom Estimated replicas this member can still add on its owning cluster before hitting the smaller of its own MaxReplicas and its group's aggregate MaxReplicas. Meaningful only when autoscalingEnabled: omitted = off, or on with no finite ceiling (unbounded); 0 = at ceiling; >0 = room left. Advisory estimate — the group ceiling is shared across members and quota is not folded in; for foreign members it also lags by the federation TTL.
ScaleUpHeadroom *int32 `json:"scaleUpHeadroom,omitempty"`
// ScalingGroup Autoscaling group this member belongs to on its owning cluster, echoed from spec. Empty when the member is in no group. Present on foreign (cross-cluster) members too, so a viewer without the foreign cluster's spec can still attribute the member to a group and link to that cluster's group detail.
ScalingGroup *string `json:"scalingGroup,omitempty"`
State *EnvObservedMemberState `json:"state,omitempty"`
// TemplateVersion SandboxTemplate spec.version the member Pool was last rendered from, read off its provenance annotation. An observation of what the member actually carries, not a constraint — members follow the Template's current body, and spec.templateRef.version pins nothing. Empty for foreign (cross-cluster) members.
TemplateVersion *string `json:"templateVersion,omitempty"`
// UpdateRevision Mirror of the member Pool's status.updateRevision — the target revision the Pool is rolling towards.
UpdateRevision *string `json:"updateRevision,omitempty"`
// UpdatedReplicas Mirror of the member Pool's status.updatedReplicas. A rollout is in progress while this is below the member's replica count.
UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"`
}
EnvObservedMember defines model for EnvObservedMember.
type EnvObservedMemberState ¶ added in v0.0.5
type EnvObservedMemberState string
EnvObservedMemberState defines model for EnvObservedMember.State.
const ( Active EnvObservedMemberState = "Active" Inconsistent EnvObservedMemberState = "Inconsistent" Missing EnvObservedMemberState = "Missing" Saturated EnvObservedMemberState = "Saturated" )
Defines values for EnvObservedMemberState.
func (EnvObservedMemberState) Valid ¶ added in v0.0.5
func (e EnvObservedMemberState) Valid() bool
Valid indicates whether the value is a known member of the EnvObservedMemberState enum.
type EnvOverrides ¶ added in v0.0.5
type EnvOverrides struct {
// DefaultIdleTimeout Mirrored onto every member Pool's spec.defaultIdleTimeout. Duration string, e.g. '30m'.
DefaultIdleTimeout *string `json:"defaultIdleTimeout,omitempty"`
// DefaultStartupTimeout Mirrored onto every member Pool's spec.defaultStartupTimeout. Duration string, e.g. '5m'.
DefaultStartupTimeout *string `json:"defaultStartupTimeout,omitempty"`
// Envd Settings for the sandbox agent (envd) that serves the E2B API inside every
// sandbox Pod.
Envd *EnvdSpec `json:"envd,omitempty"`
// Gateway Egress gateway switch. Enabling it adds a transparent proxy sidecar and an
// iptables redirect to every sandbox Pod of the environment; the rules it
// enforces are supplied per sandbox on the create call.
Gateway *GatewaySpec `json:"gateway,omitempty"`
// Image Override the main container (containers[0]) image of the rendered Template. Applied before any per-Member overrides.
Image *string `json:"image,omitempty"`
ImagePullSecret *ImagePullSecretInput `json:"imagePullSecret,omitempty"`
// ImagePullSecretConfigured Server-set on GET: true when the `ips-{envName}` Secret exists in the
// Env's namespace.
//
// On PUT it is the KEEP signal, and the only way to say it. The
// request is desired state, and the credentials cannot be read back to
// be echoed — so a PUT carrying neither `imagePullSecret` nor this flag
// is asking for the Secret to be DELETED. Sending back what GET
// returned therefore preserves the stored material, exactly as it does
// for every other field; a client that strips this flag while editing
// an unrelated setting revokes the registry credentials as a side
// effect.
//
// `imagePullSecret` present wins: new credentials replace the old
// ones whatever this says.
ImagePullSecretConfigured *bool `json:"imagePullSecretConfigured,omitempty"`
// PodCreationImagePolicy Mirrored onto every member Pool's spec.podCreationImagePolicy.
PodCreationImagePolicy *EnvOverridesPodCreationImagePolicy `json:"podCreationImagePolicy,omitempty"`
// UpdateStrategy Automatic rollout policy for member Pools when their rendered idle-Pod identity (Template edit, image / gateway override) changes. Rollout mode is always Recreate: stale idle Pods are rebuilt; claimed (Running/Starting) Pods are never disrupted and roll after returning to Idle.
UpdateStrategy *EnvUpdateStrategy `json:"updateStrategy,omitempty"`
// Volumes Mount existing PersistentVolumeClaims from this Env's namespace into the
// sandbox container. The claim must already exist and be Bound; the server
// never creates or deletes a PVC. Discover mountable claims with GET /volumes.
//
// Mounts are fixed at Pod creation — Kubernetes forbids mutating spec.volumes
// on a live Pod — so editing this list rolls the member Pools' idle Pods.
// Sandboxes already running keep their previous mounts until they are
// returned. In-place image upgrades never touch volumes.
Volumes *[]EnvVolumeMount `json:"volumes,omitempty"`
}
EnvOverrides SandboxTemplate fields this Env replaces uniformly for every member Pool. The Env represents a single class of sandbox runtime, so image, image policy, default timeouts and image-pull credentials are expected to be shared; per-Pool variation lives on each EnvClusterMember.
type EnvOverridesPodCreationImagePolicy ¶ added in v0.0.5
type EnvOverridesPodCreationImagePolicy string
EnvOverridesPodCreationImagePolicy Mirrored onto every member Pool's spec.podCreationImagePolicy.
const ( EnvOverridesPodCreationImagePolicyIdleImage EnvOverridesPodCreationImagePolicy = "IdleImage" EnvOverridesPodCreationImagePolicyPoolDefaultImage EnvOverridesPodCreationImagePolicy = "PoolDefaultImage" )
Defines values for EnvOverridesPodCreationImagePolicy.
func (EnvOverridesPodCreationImagePolicy) Valid ¶ added in v0.0.5
func (e EnvOverridesPodCreationImagePolicy) Valid() bool
Valid indicates whether the value is a known member of the EnvOverridesPodCreationImagePolicy enum.
type EnvScalingGroupStatus ¶ added in v0.0.5
type EnvScalingGroupStatus struct {
Name string `json:"name"`
TotalDesired *int32 `json:"totalDesired,omitempty"`
TotalIdle *int32 `json:"totalIdle,omitempty"`
TotalRunning *int32 `json:"totalRunning,omitempty"`
}
EnvScalingGroupStatus defines model for EnvScalingGroupStatus.
type EnvUpdateStrategy ¶ added in v0.0.7
type EnvUpdateStrategy struct {
// AutoUpdate Whether the member auto-rolls when its revision changes. Resolution order: member → env → default true. Set false to freeze a member on its current revision.
AutoUpdate *bool `json:"autoUpdate,omitempty"`
MaxUnavailable *string `json:"maxUnavailable,omitempty"`
}
EnvUpdateStrategy Automatic rollout policy for member Pools when their rendered idle-Pod identity (Template edit, image / gateway override) changes. Rollout mode is always Recreate: stale idle Pods are rebuilt; claimed (Running/Starting) Pods are never disrupted and roll after returning to Idle.
type EnvVolumeMount ¶ added in v0.0.10
type EnvVolumeMount struct {
// ClaimName Name of an existing, Bound PersistentVolumeClaim in this Env's namespace. Cross-namespace mounts are not possible in Kubernetes, which is the authorisation boundary: a caller only ever reaches claims in the namespace their identity resolved to.
ClaimName string `json:"claimName"`
// MountPath Absolute path inside the sandbox container. Must not be '/' or '/mnt', must not sit inside a reserved path (/proc, /sys, /dev, /etc, /var/run, /var/lib/kubelet), and must not collide with or nest against a path the Template already mounts.
MountPath string `json:"mountPath"`
// ReadOnly Defaults to true. Enforced on the Kubernetes volume source rather than the mount, so no container can request read-write for the same claim. Set false only when the agent must write: sandbox code runs as root with passwordless sudo and can delete anything writable. Read-only is a container-runtime bind flag — a Template whose pod spec can reach the host mount namespace (privileged, SYS_ADMIN, Bidirectional propagation, hostPath) cannot enforce it, and such a combination is rejected unless an administrator has opted the Template out.
ReadOnly *bool `json:"readOnly,omitempty"`
// SubPath Mount a subtree of the volume instead of its root. Relative, no '..' segments. Recommended when the backing PersistentVolume is exposed at its filesystem root. Note kubelet creates a missing subPath directory, so a mistyped value mounts an empty directory rather than failing.
SubPath *string `json:"subPath,omitempty"`
}
EnvVolumeMount One PersistentVolumeClaim, or one subtree of it, mounted into the sandbox container.
type EnvdSpec ¶ added in v0.0.11
type EnvdSpec struct {
// Verbose Write one structured line per API call envd serves to the container's stdout —
// for a command, the command itself, its arguments, working directory and
// environment. It is how a deployment gets a record of what agents actually ran
// inside a sandbox, since a command's output otherwise only travels back to its
// caller. Defaults to on; a GET always reports the value in force.
//
// Two costs. A PTY session sends one API call per keystroke and each is logged
// with its whole request, so an interactive terminal produces a lot of lines and
// pays a serialization cost on a hot path. And environment variable VALUES appear
// in the log — anything secret belongs in a Secret the sandbox reads, or in the
// egress credential injection path, not in a plain environment variable.
Verbose *bool `json:"verbose,omitempty"`
}
EnvdSpec Settings for the sandbox agent (envd) that serves the E2B API inside every sandbox Pod.
type ErrorResponse ¶
type ErrorResponse struct {
// Detail Structured context for the error. Shape depends on the failure mode. Common
// variants:
// * Plain string — simple context ("pool not found: my-pool")
// * `PoolStatusDetail` — returned on 409/429 from CreateSandbox to describe
// pool replica breakdown and retry hints
// * `{availablePools: [...]}` — returned on 404 from CreateSandbox / 400 from
// CreateSandboxPool when the referenced resource does not exist
// * `{availableTemplates: [...]}` — returned on 400 from CreateSandboxPool
// * `{availableQuotaURLs: [...]}` — returned on 400 when spec.reservation is
// set but quotaURL is missing
Detail interface{} `json:"detail,omitempty"`
// Error Human-readable error message.
Error string `json:"error"`
// ErrorCode Machine-readable business error code. Only present for specific business errors
// that require special handling (e.g. `APPROVAL_REQUIRED` tells an agent its write
// is held for a person to release, and `FORBIDDEN_FOR_AGENT` tells it no approval
// will ever exist). Generic HTTP errors (400, 500, etc.) do NOT carry this field.
ErrorCode *string `json:"errorCode,omitempty"`
}
ErrorResponse Standard error envelope. Individual endpoints override the `example` per response code so the shape of `detail` is accurate for that specific failure mode.
type ExecCommandRequest ¶
type ExecCommandRequest struct {
// Command Shell command to execute inside the sandbox (e.g. 'ls -la /tmp')
Command string `json:"command"`
// TimeoutSeconds Execution timeout in seconds. Default: 30, Max: 300.
TimeoutSeconds *int `json:"timeoutSeconds,omitempty"`
}
ExecCommandRequest defines model for ExecCommandRequest.
type ExecCommandResult ¶
type ExecCommandResult struct {
// ExitCode Exit code of the command (0 = success)
ExitCode int `json:"exitCode"`
// Stderr Standard error of the command
Stderr string `json:"stderr"`
// Stdout Standard output of the command
Stdout string `json:"stdout"`
}
ExecCommandResult defines model for ExecCommandResult.
type ExecSandboxCommand200JSONResponse ¶
type ExecSandboxCommand200JSONResponse ExecCommandResult
func (ExecSandboxCommand200JSONResponse) VisitExecSandboxCommandResponse ¶
func (response ExecSandboxCommand200JSONResponse) VisitExecSandboxCommandResponse(w http.ResponseWriter) error
type ExecSandboxCommand400JSONResponse ¶
type ExecSandboxCommand400JSONResponse ErrorResponse
func (ExecSandboxCommand400JSONResponse) VisitExecSandboxCommandResponse ¶
func (response ExecSandboxCommand400JSONResponse) VisitExecSandboxCommandResponse(w http.ResponseWriter) error
type ExecSandboxCommand401JSONResponse ¶
type ExecSandboxCommand401JSONResponse ErrorResponse
func (ExecSandboxCommand401JSONResponse) VisitExecSandboxCommandResponse ¶
func (response ExecSandboxCommand401JSONResponse) VisitExecSandboxCommandResponse(w http.ResponseWriter) error
type ExecSandboxCommand404JSONResponse ¶
type ExecSandboxCommand404JSONResponse ErrorResponse
func (ExecSandboxCommand404JSONResponse) VisitExecSandboxCommandResponse ¶
func (response ExecSandboxCommand404JSONResponse) VisitExecSandboxCommandResponse(w http.ResponseWriter) error
type ExecSandboxCommand500JSONResponse ¶
type ExecSandboxCommand500JSONResponse ErrorResponse
func (ExecSandboxCommand500JSONResponse) VisitExecSandboxCommandResponse ¶
func (response ExecSandboxCommand500JSONResponse) VisitExecSandboxCommandResponse(w http.ResponseWriter) error
type ExecSandboxCommandJSONRequestBody ¶
type ExecSandboxCommandJSONRequestBody = ExecCommandRequest
ExecSandboxCommandJSONRequestBody defines body for ExecSandboxCommand for application/json ContentType.
type ExecSandboxCommandRequestObject ¶
type ExecSandboxCommandRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
Body *ExecSandboxCommandJSONRequestBody
}
type ExecSandboxCommandResponse ¶
type ExecSandboxCommandResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExecCommandResult
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseExecSandboxCommandResponse ¶
func ParseExecSandboxCommandResponse(rsp *http.Response) (*ExecSandboxCommandResponse, error)
ParseExecSandboxCommandResponse parses an HTTP response from a ExecSandboxCommandWithResponse call
func (ExecSandboxCommandResponse) Status ¶
func (r ExecSandboxCommandResponse) Status() string
Status returns HTTPResponse.Status
func (ExecSandboxCommandResponse) StatusCode ¶
func (r ExecSandboxCommandResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExecSandboxCommandResponseObject ¶
type ExecSandboxCommandResponseObject interface {
VisitExecSandboxCommandResponse(w http.ResponseWriter) error
}
type ExecTokenResponse ¶
type ExecTokenResponse struct {
// Token Single-use exec token, valid for 30 seconds
Token string `json:"token"`
}
ExecTokenResponse defines model for ExecTokenResponse.
type FeatureGates ¶
type FeatureGates struct {
// InstanceType True when a non-noop InstanceType catalog provider is active (catalog-driven member sizing in the Env upsert sheet, `/instancetypes` listing endpoint). False on deployments with no InstanceType backend wired in.
InstanceType bool `json:"instanceType"`
// Quota True when a non-noop quota provider is active (quota selection on pool creation, quota listing endpoint). False on deployments with no quota backend wired in.
Quota bool `json:"quota"`
// Volumes True when mounting existing PersistentVolumeClaims into sandboxes is enabled (the volumes panel in the Env upsert sheet, `/volumes` listing endpoint). When false the server also rejects a non-empty `overrides.volumes`, so this is a kill switch and not only a UI hint.
Volumes *bool `json:"volumes,omitempty"`
}
FeatureGates Boolean switches that tell clients which optional features are wired into the current deployment. Dashboards gate feature UI on these values; SDKs can short-circuit feature-specific calls when a gate is false.
type GatewaySpec ¶ added in v0.0.10
type GatewaySpec struct {
// Enabled Inject the egress proxy sidecar. A create request carrying network rules against an environment without it is refused rather than silently unenforced.
Enabled *bool `json:"enabled,omitempty"`
}
GatewaySpec Egress gateway switch. Enabling it adds a transparent proxy sidecar and an iptables redirect to every sandbox Pod of the environment; the rules it enforces are supplied per sandbox on the create call.
type GetApproval200JSONResponse ¶ added in v0.0.11
type GetApproval200JSONResponse ApprovalRequest
func (GetApproval200JSONResponse) VisitGetApprovalResponse ¶ added in v0.0.11
func (response GetApproval200JSONResponse) VisitGetApprovalResponse(w http.ResponseWriter) error
type GetApproval404JSONResponse ¶ added in v0.0.11
type GetApproval404JSONResponse ErrorResponse
func (GetApproval404JSONResponse) VisitGetApprovalResponse ¶ added in v0.0.11
func (response GetApproval404JSONResponse) VisitGetApprovalResponse(w http.ResponseWriter) error
type GetApprovalRequestObject ¶ added in v0.0.11
type GetApprovalRequestObject struct {
ApprovalId string `json:"approvalId"`
}
type GetApprovalResponse ¶ added in v0.0.11
type GetApprovalResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApprovalRequest
JSON404 *ErrorResponse
}
func ParseGetApprovalResponse ¶ added in v0.0.11
func ParseGetApprovalResponse(rsp *http.Response) (*GetApprovalResponse, error)
ParseGetApprovalResponse parses an HTTP response from a GetApprovalWithResponse call
func (GetApprovalResponse) Status ¶ added in v0.0.11
func (r GetApprovalResponse) Status() string
Status returns HTTPResponse.Status
func (GetApprovalResponse) StatusCode ¶ added in v0.0.11
func (r GetApprovalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApprovalResponseObject ¶ added in v0.0.11
type GetApprovalResponseObject interface {
VisitGetApprovalResponse(w http.ResponseWriter) error
}
type GetEnvAutoscaling200JSONResponse ¶ added in v0.0.5
type GetEnvAutoscaling200JSONResponse EnvAutoscalingSpecEnvelope
func (GetEnvAutoscaling200JSONResponse) VisitGetEnvAutoscalingResponse ¶ added in v0.0.5
func (response GetEnvAutoscaling200JSONResponse) VisitGetEnvAutoscalingResponse(w http.ResponseWriter) error
type GetEnvAutoscaling401JSONResponse ¶ added in v0.0.5
type GetEnvAutoscaling401JSONResponse ErrorResponse
func (GetEnvAutoscaling401JSONResponse) VisitGetEnvAutoscalingResponse ¶ added in v0.0.5
func (response GetEnvAutoscaling401JSONResponse) VisitGetEnvAutoscalingResponse(w http.ResponseWriter) error
type GetEnvAutoscaling404JSONResponse ¶ added in v0.0.5
type GetEnvAutoscaling404JSONResponse ErrorResponse
func (GetEnvAutoscaling404JSONResponse) VisitGetEnvAutoscalingResponse ¶ added in v0.0.5
func (response GetEnvAutoscaling404JSONResponse) VisitGetEnvAutoscalingResponse(w http.ResponseWriter) error
type GetEnvAutoscaling500JSONResponse ¶ added in v0.0.5
type GetEnvAutoscaling500JSONResponse ErrorResponse
func (GetEnvAutoscaling500JSONResponse) VisitGetEnvAutoscalingResponse ¶ added in v0.0.5
func (response GetEnvAutoscaling500JSONResponse) VisitGetEnvAutoscalingResponse(w http.ResponseWriter) error
type GetEnvAutoscalingGroup200JSONResponse ¶ added in v0.0.5
type GetEnvAutoscalingGroup200JSONResponse EnvAutoscalingGroupEnvelope
func (GetEnvAutoscalingGroup200JSONResponse) VisitGetEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response GetEnvAutoscalingGroup200JSONResponse) VisitGetEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type GetEnvAutoscalingGroup401JSONResponse ¶ added in v0.0.5
type GetEnvAutoscalingGroup401JSONResponse ErrorResponse
func (GetEnvAutoscalingGroup401JSONResponse) VisitGetEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response GetEnvAutoscalingGroup401JSONResponse) VisitGetEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type GetEnvAutoscalingGroup404JSONResponse ¶ added in v0.0.5
type GetEnvAutoscalingGroup404JSONResponse ErrorResponse
func (GetEnvAutoscalingGroup404JSONResponse) VisitGetEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response GetEnvAutoscalingGroup404JSONResponse) VisitGetEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type GetEnvAutoscalingGroup500JSONResponse ¶ added in v0.0.5
type GetEnvAutoscalingGroup500JSONResponse ErrorResponse
func (GetEnvAutoscalingGroup500JSONResponse) VisitGetEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response GetEnvAutoscalingGroup500JSONResponse) VisitGetEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type GetEnvAutoscalingGroupRequestObject ¶ added in v0.0.5
type GetEnvAutoscalingGroupResponse ¶ added in v0.0.5
type GetEnvAutoscalingGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EnvAutoscalingGroupEnvelope
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetEnvAutoscalingGroupResponse ¶ added in v0.0.5
func ParseGetEnvAutoscalingGroupResponse(rsp *http.Response) (*GetEnvAutoscalingGroupResponse, error)
ParseGetEnvAutoscalingGroupResponse parses an HTTP response from a GetEnvAutoscalingGroupWithResponse call
func (GetEnvAutoscalingGroupResponse) Status ¶ added in v0.0.5
func (r GetEnvAutoscalingGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvAutoscalingGroupResponse) StatusCode ¶ added in v0.0.5
func (r GetEnvAutoscalingGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvAutoscalingGroupResponseObject ¶ added in v0.0.5
type GetEnvAutoscalingGroupResponseObject interface {
VisitGetEnvAutoscalingGroupResponse(w http.ResponseWriter) error
}
type GetEnvAutoscalingRequestObject ¶ added in v0.0.5
type GetEnvAutoscalingRequestObject struct {
Name string `json:"name"`
}
type GetEnvAutoscalingResponse ¶ added in v0.0.5
type GetEnvAutoscalingResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EnvAutoscalingSpecEnvelope
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetEnvAutoscalingResponse ¶ added in v0.0.5
func ParseGetEnvAutoscalingResponse(rsp *http.Response) (*GetEnvAutoscalingResponse, error)
ParseGetEnvAutoscalingResponse parses an HTTP response from a GetEnvAutoscalingWithResponse call
func (GetEnvAutoscalingResponse) Status ¶ added in v0.0.5
func (r GetEnvAutoscalingResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvAutoscalingResponse) StatusCode ¶ added in v0.0.5
func (r GetEnvAutoscalingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvAutoscalingResponseObject ¶ added in v0.0.5
type GetEnvAutoscalingResponseObject interface {
VisitGetEnvAutoscalingResponse(w http.ResponseWriter) error
}
type GetEnvSandboxPool200JSONResponse ¶ added in v0.0.5
type GetEnvSandboxPool200JSONResponse SandboxPoolEnvelope
func (GetEnvSandboxPool200JSONResponse) VisitGetEnvSandboxPoolResponse ¶ added in v0.0.5
func (response GetEnvSandboxPool200JSONResponse) VisitGetEnvSandboxPoolResponse(w http.ResponseWriter) error
type GetEnvSandboxPool401JSONResponse ¶ added in v0.0.5
type GetEnvSandboxPool401JSONResponse ErrorResponse
func (GetEnvSandboxPool401JSONResponse) VisitGetEnvSandboxPoolResponse ¶ added in v0.0.5
func (response GetEnvSandboxPool401JSONResponse) VisitGetEnvSandboxPoolResponse(w http.ResponseWriter) error
type GetEnvSandboxPool404JSONResponse ¶ added in v0.0.5
type GetEnvSandboxPool404JSONResponse ErrorResponse
func (GetEnvSandboxPool404JSONResponse) VisitGetEnvSandboxPoolResponse ¶ added in v0.0.5
func (response GetEnvSandboxPool404JSONResponse) VisitGetEnvSandboxPoolResponse(w http.ResponseWriter) error
type GetEnvSandboxPool500JSONResponse ¶ added in v0.0.5
type GetEnvSandboxPool500JSONResponse ErrorResponse
func (GetEnvSandboxPool500JSONResponse) VisitGetEnvSandboxPoolResponse ¶ added in v0.0.5
func (response GetEnvSandboxPool500JSONResponse) VisitGetEnvSandboxPoolResponse(w http.ResponseWriter) error
type GetEnvSandboxPoolRequestObject ¶ added in v0.0.5
type GetEnvSandboxPoolResponse ¶ added in v0.0.5
type GetEnvSandboxPoolResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxPoolEnvelope
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetEnvSandboxPoolResponse ¶ added in v0.0.5
func ParseGetEnvSandboxPoolResponse(rsp *http.Response) (*GetEnvSandboxPoolResponse, error)
ParseGetEnvSandboxPoolResponse parses an HTTP response from a GetEnvSandboxPoolWithResponse call
func (GetEnvSandboxPoolResponse) Status ¶ added in v0.0.5
func (r GetEnvSandboxPoolResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvSandboxPoolResponse) StatusCode ¶ added in v0.0.5
func (r GetEnvSandboxPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvSandboxPoolResponseObject ¶ added in v0.0.5
type GetEnvSandboxPoolResponseObject interface {
VisitGetEnvSandboxPoolResponse(w http.ResponseWriter) error
}
type GetFeatureGates200JSONResponse ¶
type GetFeatureGates200JSONResponse FeatureGates
func (GetFeatureGates200JSONResponse) VisitGetFeatureGatesResponse ¶
func (response GetFeatureGates200JSONResponse) VisitGetFeatureGatesResponse(w http.ResponseWriter) error
type GetFeatureGates401JSONResponse ¶
type GetFeatureGates401JSONResponse ErrorResponse
func (GetFeatureGates401JSONResponse) VisitGetFeatureGatesResponse ¶
func (response GetFeatureGates401JSONResponse) VisitGetFeatureGatesResponse(w http.ResponseWriter) error
type GetFeatureGates500JSONResponse ¶
type GetFeatureGates500JSONResponse ErrorResponse
func (GetFeatureGates500JSONResponse) VisitGetFeatureGatesResponse ¶
func (response GetFeatureGates500JSONResponse) VisitGetFeatureGatesResponse(w http.ResponseWriter) error
type GetFeatureGatesRequestObject ¶
type GetFeatureGatesRequestObject struct {
}
type GetFeatureGatesResponse ¶
type GetFeatureGatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FeatureGates
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetFeatureGatesResponse ¶
func ParseGetFeatureGatesResponse(rsp *http.Response) (*GetFeatureGatesResponse, error)
ParseGetFeatureGatesResponse parses an HTTP response from a GetFeatureGatesWithResponse call
func (GetFeatureGatesResponse) Status ¶
func (r GetFeatureGatesResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeatureGatesResponse) StatusCode ¶
func (r GetFeatureGatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFeatureGatesResponseObject ¶
type GetFeatureGatesResponseObject interface {
VisitGetFeatureGatesResponse(w http.ResponseWriter) error
}
type GetSandbox200JSONResponse ¶
type GetSandbox200JSONResponse SandboxEnvelope
func (GetSandbox200JSONResponse) VisitGetSandboxResponse ¶
func (response GetSandbox200JSONResponse) VisitGetSandboxResponse(w http.ResponseWriter) error
type GetSandbox401JSONResponse ¶
type GetSandbox401JSONResponse ErrorResponse
func (GetSandbox401JSONResponse) VisitGetSandboxResponse ¶
func (response GetSandbox401JSONResponse) VisitGetSandboxResponse(w http.ResponseWriter) error
type GetSandbox404JSONResponse ¶
type GetSandbox404JSONResponse ErrorResponse
func (GetSandbox404JSONResponse) VisitGetSandboxResponse ¶
func (response GetSandbox404JSONResponse) VisitGetSandboxResponse(w http.ResponseWriter) error
type GetSandbox500JSONResponse ¶
type GetSandbox500JSONResponse ErrorResponse
func (GetSandbox500JSONResponse) VisitGetSandboxResponse ¶
func (response GetSandbox500JSONResponse) VisitGetSandboxResponse(w http.ResponseWriter) error
type GetSandboxEnv200JSONResponse ¶ added in v0.0.5
type GetSandboxEnv200JSONResponse SandboxEnvEnvelope
func (GetSandboxEnv200JSONResponse) VisitGetSandboxEnvResponse ¶ added in v0.0.5
func (response GetSandboxEnv200JSONResponse) VisitGetSandboxEnvResponse(w http.ResponseWriter) error
type GetSandboxEnv401JSONResponse ¶ added in v0.0.5
type GetSandboxEnv401JSONResponse ErrorResponse
func (GetSandboxEnv401JSONResponse) VisitGetSandboxEnvResponse ¶ added in v0.0.5
func (response GetSandboxEnv401JSONResponse) VisitGetSandboxEnvResponse(w http.ResponseWriter) error
type GetSandboxEnv404JSONResponse ¶ added in v0.0.5
type GetSandboxEnv404JSONResponse ErrorResponse
func (GetSandboxEnv404JSONResponse) VisitGetSandboxEnvResponse ¶ added in v0.0.5
func (response GetSandboxEnv404JSONResponse) VisitGetSandboxEnvResponse(w http.ResponseWriter) error
type GetSandboxEnv500JSONResponse ¶ added in v0.0.5
type GetSandboxEnv500JSONResponse ErrorResponse
func (GetSandboxEnv500JSONResponse) VisitGetSandboxEnvResponse ¶ added in v0.0.5
func (response GetSandboxEnv500JSONResponse) VisitGetSandboxEnvResponse(w http.ResponseWriter) error
type GetSandboxEnvRequestObject ¶ added in v0.0.5
type GetSandboxEnvRequestObject struct {
Name string `json:"name"`
}
type GetSandboxEnvResponse ¶ added in v0.0.5
type GetSandboxEnvResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxEnvEnvelope
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetSandboxEnvResponse ¶ added in v0.0.5
func ParseGetSandboxEnvResponse(rsp *http.Response) (*GetSandboxEnvResponse, error)
ParseGetSandboxEnvResponse parses an HTTP response from a GetSandboxEnvWithResponse call
func (GetSandboxEnvResponse) Status ¶ added in v0.0.5
func (r GetSandboxEnvResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxEnvResponse) StatusCode ¶ added in v0.0.5
func (r GetSandboxEnvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxEnvResponseObject ¶ added in v0.0.5
type GetSandboxEnvResponseObject interface {
VisitGetSandboxEnvResponse(w http.ResponseWriter) error
}
type GetSandboxLogs200JSONResponse ¶
type GetSandboxLogs200JSONResponse SandboxLogsResult
func (GetSandboxLogs200JSONResponse) VisitGetSandboxLogsResponse ¶
func (response GetSandboxLogs200JSONResponse) VisitGetSandboxLogsResponse(w http.ResponseWriter) error
type GetSandboxLogs400JSONResponse ¶
type GetSandboxLogs400JSONResponse ErrorResponse
func (GetSandboxLogs400JSONResponse) VisitGetSandboxLogsResponse ¶
func (response GetSandboxLogs400JSONResponse) VisitGetSandboxLogsResponse(w http.ResponseWriter) error
type GetSandboxLogs401JSONResponse ¶
type GetSandboxLogs401JSONResponse ErrorResponse
func (GetSandboxLogs401JSONResponse) VisitGetSandboxLogsResponse ¶
func (response GetSandboxLogs401JSONResponse) VisitGetSandboxLogsResponse(w http.ResponseWriter) error
type GetSandboxLogs404JSONResponse ¶
type GetSandboxLogs404JSONResponse ErrorResponse
func (GetSandboxLogs404JSONResponse) VisitGetSandboxLogsResponse ¶
func (response GetSandboxLogs404JSONResponse) VisitGetSandboxLogsResponse(w http.ResponseWriter) error
type GetSandboxLogs500JSONResponse ¶
type GetSandboxLogs500JSONResponse ErrorResponse
func (GetSandboxLogs500JSONResponse) VisitGetSandboxLogsResponse ¶
func (response GetSandboxLogs500JSONResponse) VisitGetSandboxLogsResponse(w http.ResponseWriter) error
type GetSandboxLogsParams ¶
type GetSandboxLogsParams struct {
// Container Which container's log to read. Defaults to the sandbox's own container — a Pod also runs
// the egress proxy and the injector init containers, whose output is the platform's rather
// than the user's, and the proxy logs a line per connection it evaluates. Name any container
// from `containers` in the response to read that one instead; an unknown name is a 400.
Container *string `form:"container,omitempty" json:"container,omitempty"`
// Lines Return only the last N lines. 0 or absent means return all lines.
Lines *int `form:"lines,omitempty" json:"lines,omitempty"`
// Source Log source selector.
// - Omit or "stdout": return container stdout/stderr (default behavior)
// - "<runtime_name>": read the runtime's log file (logDir) via exec inside the container.
// Only available for Running sandboxes with a matching runtime that has logDir set.
Source *string `form:"source,omitempty" json:"source,omitempty"`
}
GetSandboxLogsParams defines parameters for GetSandboxLogs.
type GetSandboxLogsRequestObject ¶
type GetSandboxLogsRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
Params GetSandboxLogsParams
}
type GetSandboxLogsResponse ¶
type GetSandboxLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxLogsResult
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetSandboxLogsResponse ¶
func ParseGetSandboxLogsResponse(rsp *http.Response) (*GetSandboxLogsResponse, error)
ParseGetSandboxLogsResponse parses an HTTP response from a GetSandboxLogsWithResponse call
func (GetSandboxLogsResponse) Status ¶
func (r GetSandboxLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxLogsResponse) StatusCode ¶
func (r GetSandboxLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxLogsResponseObject ¶
type GetSandboxLogsResponseObject interface {
VisitGetSandboxLogsResponse(w http.ResponseWriter) error
}
type GetSandboxRequestObject ¶
type GetSandboxRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
}
type GetSandboxResponse ¶
type GetSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxEnvelope
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetSandboxResponse ¶
func ParseGetSandboxResponse(rsp *http.Response) (*GetSandboxResponse, error)
ParseGetSandboxResponse parses an HTTP response from a GetSandboxWithResponse call
func (GetSandboxResponse) Status ¶
func (r GetSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxResponse) StatusCode ¶
func (r GetSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxResponseObject ¶
type GetSandboxResponseObject interface {
VisitGetSandboxResponse(w http.ResponseWriter) error
}
type GetSandboxTemplate200JSONResponse ¶
type GetSandboxTemplate200JSONResponse SandboxTemplateEnvelope
func (GetSandboxTemplate200JSONResponse) VisitGetSandboxTemplateResponse ¶
func (response GetSandboxTemplate200JSONResponse) VisitGetSandboxTemplateResponse(w http.ResponseWriter) error
type GetSandboxTemplate401JSONResponse ¶
type GetSandboxTemplate401JSONResponse ErrorResponse
func (GetSandboxTemplate401JSONResponse) VisitGetSandboxTemplateResponse ¶
func (response GetSandboxTemplate401JSONResponse) VisitGetSandboxTemplateResponse(w http.ResponseWriter) error
type GetSandboxTemplate404JSONResponse ¶
type GetSandboxTemplate404JSONResponse ErrorResponse
func (GetSandboxTemplate404JSONResponse) VisitGetSandboxTemplateResponse ¶
func (response GetSandboxTemplate404JSONResponse) VisitGetSandboxTemplateResponse(w http.ResponseWriter) error
type GetSandboxTemplate500JSONResponse ¶
type GetSandboxTemplate500JSONResponse ErrorResponse
func (GetSandboxTemplate500JSONResponse) VisitGetSandboxTemplateResponse ¶
func (response GetSandboxTemplate500JSONResponse) VisitGetSandboxTemplateResponse(w http.ResponseWriter) error
type GetSandboxTemplateRequestObject ¶
type GetSandboxTemplateRequestObject struct {
Name PathTemplateName `json:"name"`
}
type GetSandboxTemplateResponse ¶
type GetSandboxTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxTemplateEnvelope
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetSandboxTemplateResponse ¶
func ParseGetSandboxTemplateResponse(rsp *http.Response) (*GetSandboxTemplateResponse, error)
ParseGetSandboxTemplateResponse parses an HTTP response from a GetSandboxTemplateWithResponse call
func (GetSandboxTemplateResponse) Status ¶
func (r GetSandboxTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxTemplateResponse) StatusCode ¶
func (r GetSandboxTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxTemplateResponseObject ¶
type GetSandboxTemplateResponseObject interface {
VisitGetSandboxTemplateResponse(w http.ResponseWriter) error
}
type GetUserSandboxStatistics200JSONResponse ¶
type GetUserSandboxStatistics200JSONResponse UserSandboxStatisticsEnvelope
func (GetUserSandboxStatistics200JSONResponse) VisitGetUserSandboxStatisticsResponse ¶
func (response GetUserSandboxStatistics200JSONResponse) VisitGetUserSandboxStatisticsResponse(w http.ResponseWriter) error
type GetUserSandboxStatistics401JSONResponse ¶
type GetUserSandboxStatistics401JSONResponse ErrorResponse
func (GetUserSandboxStatistics401JSONResponse) VisitGetUserSandboxStatisticsResponse ¶
func (response GetUserSandboxStatistics401JSONResponse) VisitGetUserSandboxStatisticsResponse(w http.ResponseWriter) error
type GetUserSandboxStatistics500JSONResponse ¶
type GetUserSandboxStatistics500JSONResponse ErrorResponse
func (GetUserSandboxStatistics500JSONResponse) VisitGetUserSandboxStatisticsResponse ¶
func (response GetUserSandboxStatistics500JSONResponse) VisitGetUserSandboxStatisticsResponse(w http.ResponseWriter) error
type GetUserSandboxStatisticsRequestObject ¶
type GetUserSandboxStatisticsRequestObject struct {
}
type GetUserSandboxStatisticsResponse ¶
type GetUserSandboxStatisticsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserSandboxStatisticsEnvelope
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetUserSandboxStatisticsResponse ¶
func ParseGetUserSandboxStatisticsResponse(rsp *http.Response) (*GetUserSandboxStatisticsResponse, error)
ParseGetUserSandboxStatisticsResponse parses an HTTP response from a GetUserSandboxStatisticsWithResponse call
func (GetUserSandboxStatisticsResponse) Status ¶
func (r GetUserSandboxStatisticsResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserSandboxStatisticsResponse) StatusCode ¶
func (r GetUserSandboxStatisticsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserSandboxStatisticsResponseObject ¶
type GetUserSandboxStatisticsResponseObject interface {
VisitGetUserSandboxStatisticsResponse(w http.ResponseWriter) error
}
type GetWhoAmI200JSONResponse ¶
type GetWhoAmI200JSONResponse WhoAmIResult
func (GetWhoAmI200JSONResponse) VisitGetWhoAmIResponse ¶
func (response GetWhoAmI200JSONResponse) VisitGetWhoAmIResponse(w http.ResponseWriter) error
type GetWhoAmI401JSONResponse ¶
type GetWhoAmI401JSONResponse ErrorResponse
func (GetWhoAmI401JSONResponse) VisitGetWhoAmIResponse ¶
func (response GetWhoAmI401JSONResponse) VisitGetWhoAmIResponse(w http.ResponseWriter) error
type GetWhoAmIRequestObject ¶
type GetWhoAmIRequestObject struct {
}
type GetWhoAmIResponse ¶
type GetWhoAmIResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WhoAmIResult
JSON401 *ErrorResponse
}
func ParseGetWhoAmIResponse ¶
func ParseGetWhoAmIResponse(rsp *http.Response) (*GetWhoAmIResponse, error)
ParseGetWhoAmIResponse parses an HTTP response from a GetWhoAmIWithResponse call
func (GetWhoAmIResponse) Status ¶
func (r GetWhoAmIResponse) Status() string
Status returns HTTPResponse.Status
func (GetWhoAmIResponse) StatusCode ¶
func (r GetWhoAmIResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWhoAmIResponseObject ¶
type GetWhoAmIResponseObject interface {
VisitGetWhoAmIResponse(w http.ResponseWriter) error
}
type GinServerOptions ¶
type GinServerOptions struct {
BaseURL string
Middlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
GinServerOptions provides options for the Gin server.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImagePullSecretInput ¶
type ImagePullSecretInput struct {
Registries []RegistryCredential `json:"registries"`
}
ImagePullSecretInput defines model for ImagePullSecretInput.
type InstanceTypeItem ¶ added in v0.0.5
type InstanceTypeItem struct {
// BaseResources Subset of Kubernetes corev1.ResourceRequirements used for per-Pool resource sizing on EnvClusterMember.inlineResources.
BaseResources ResourceRequirements `json:"baseResources"`
// Cost Free-form cost weight for client-side sorting / display.
Cost *string `json:"cost,omitempty"`
// Description Free-form description for tooltips.
Description *string `json:"description,omitempty"`
// Extensions Backend-specific key/value pairs (e.g. `gpu-type`). Open clients pass these through unchanged for display only.
Extensions *map[string]string `json:"extensions,omitempty"`
// MaxMultiplier Maximum allowed multiplier. 0 means no cap.
MaxMultiplier *int32 `json:"maxMultiplier,omitempty"`
// Name Catalog key. Unique within a deployment.
Name string `json:"name"`
// ShowName User-facing label. Falls back to `name` when empty.
ShowName *string `json:"showName,omitempty"`
}
InstanceTypeItem Catalog entry exposing a named base resource shape. Sandboxes pick an entry by `name` and a positive integer multiplier; resolution to Pod resources happens server-side.
type IsSandboxReady200JSONResponse ¶
type IsSandboxReady200JSONResponse SandboxReadinessResult
func (IsSandboxReady200JSONResponse) VisitIsSandboxReadyResponse ¶
func (response IsSandboxReady200JSONResponse) VisitIsSandboxReadyResponse(w http.ResponseWriter) error
type IsSandboxReady404JSONResponse ¶
type IsSandboxReady404JSONResponse ErrorResponse
func (IsSandboxReady404JSONResponse) VisitIsSandboxReadyResponse ¶
func (response IsSandboxReady404JSONResponse) VisitIsSandboxReadyResponse(w http.ResponseWriter) error
type IsSandboxReady500JSONResponse ¶
type IsSandboxReady500JSONResponse ErrorResponse
func (IsSandboxReady500JSONResponse) VisitIsSandboxReadyResponse ¶
func (response IsSandboxReady500JSONResponse) VisitIsSandboxReadyResponse(w http.ResponseWriter) error
type IsSandboxReady503JSONResponse ¶
type IsSandboxReady503JSONResponse SandboxReadinessResult
func (IsSandboxReady503JSONResponse) VisitIsSandboxReadyResponse ¶
func (response IsSandboxReady503JSONResponse) VisitIsSandboxReadyResponse(w http.ResponseWriter) error
type IsSandboxReadyRequestObject ¶
type IsSandboxReadyRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
}
type IsSandboxReadyResponse ¶
type IsSandboxReadyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxReadinessResult
JSON404 *ErrorResponse
JSON500 *ErrorResponse
JSON503 *SandboxReadinessResult
}
func ParseIsSandboxReadyResponse ¶
func ParseIsSandboxReadyResponse(rsp *http.Response) (*IsSandboxReadyResponse, error)
ParseIsSandboxReadyResponse parses an HTTP response from a IsSandboxReadyWithResponse call
func (IsSandboxReadyResponse) Status ¶
func (r IsSandboxReadyResponse) Status() string
Status returns HTTPResponse.Status
func (IsSandboxReadyResponse) StatusCode ¶
func (r IsSandboxReadyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IsSandboxReadyResponseObject ¶
type IsSandboxReadyResponseObject interface {
VisitIsSandboxReadyResponse(w http.ResponseWriter) error
}
type ListAPIKeys200JSONResponse ¶
type ListAPIKeys200JSONResponse ListAPIKeysResult
func (ListAPIKeys200JSONResponse) VisitListAPIKeysResponse ¶
func (response ListAPIKeys200JSONResponse) VisitListAPIKeysResponse(w http.ResponseWriter) error
type ListAPIKeys401JSONResponse ¶
type ListAPIKeys401JSONResponse ErrorResponse
func (ListAPIKeys401JSONResponse) VisitListAPIKeysResponse ¶
func (response ListAPIKeys401JSONResponse) VisitListAPIKeysResponse(w http.ResponseWriter) error
type ListAPIKeys403JSONResponse ¶
type ListAPIKeys403JSONResponse ErrorResponse
func (ListAPIKeys403JSONResponse) VisitListAPIKeysResponse ¶
func (response ListAPIKeys403JSONResponse) VisitListAPIKeysResponse(w http.ResponseWriter) error
type ListAPIKeys503JSONResponse ¶
type ListAPIKeys503JSONResponse ErrorResponse
func (ListAPIKeys503JSONResponse) VisitListAPIKeysResponse ¶
func (response ListAPIKeys503JSONResponse) VisitListAPIKeysResponse(w http.ResponseWriter) error
type ListAPIKeysParams ¶
type ListAPIKeysParams struct {
// Namespace Filter by Kubernetes namespace (admin only).
Namespace *QueryNamespace `form:"namespace,omitempty" json:"namespace,omitempty"`
}
ListAPIKeysParams defines parameters for ListAPIKeys.
type ListAPIKeysRequestObject ¶
type ListAPIKeysRequestObject struct {
Params ListAPIKeysParams
}
type ListAPIKeysResponse ¶
type ListAPIKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListAPIKeysResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseListAPIKeysResponse ¶
func ParseListAPIKeysResponse(rsp *http.Response) (*ListAPIKeysResponse, error)
ParseListAPIKeysResponse parses an HTTP response from a ListAPIKeysWithResponse call
func (ListAPIKeysResponse) Status ¶
func (r ListAPIKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListAPIKeysResponse) StatusCode ¶
func (r ListAPIKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAPIKeysResponseObject ¶
type ListAPIKeysResponseObject interface {
VisitListAPIKeysResponse(w http.ResponseWriter) error
}
type ListAPIKeysResult ¶
type ListAPIKeysResult = []APIKeyItem
ListAPIKeysResult List of API key objects. Returned in full — the endpoint does not paginate.
type ListApprovals200JSONResponse ¶ added in v0.0.11
type ListApprovals200JSONResponse ListApprovalsResult
func (ListApprovals200JSONResponse) VisitListApprovalsResponse ¶ added in v0.0.11
func (response ListApprovals200JSONResponse) VisitListApprovalsResponse(w http.ResponseWriter) error
type ListApprovalsRequestObject ¶ added in v0.0.11
type ListApprovalsRequestObject struct {
}
type ListApprovalsResponse ¶ added in v0.0.11
type ListApprovalsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListApprovalsResult
}
func ParseListApprovalsResponse ¶ added in v0.0.11
func ParseListApprovalsResponse(rsp *http.Response) (*ListApprovalsResponse, error)
ParseListApprovalsResponse parses an HTTP response from a ListApprovalsWithResponse call
func (ListApprovalsResponse) Status ¶ added in v0.0.11
func (r ListApprovalsResponse) Status() string
Status returns HTTPResponse.Status
func (ListApprovalsResponse) StatusCode ¶ added in v0.0.11
func (r ListApprovalsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApprovalsResponseObject ¶ added in v0.0.11
type ListApprovalsResponseObject interface {
VisitListApprovalsResponse(w http.ResponseWriter) error
}
type ListApprovalsResult ¶ added in v0.0.11
type ListApprovalsResult struct {
Grants []ApprovalGrant `json:"grants"`
Pending []ApprovalRequest `json:"pending"`
}
ListApprovalsResult defines model for ListApprovalsResult.
type ListClusters200JSONResponse ¶
type ListClusters200JSONResponse ListClustersResult
func (ListClusters200JSONResponse) VisitListClustersResponse ¶
func (response ListClusters200JSONResponse) VisitListClustersResponse(w http.ResponseWriter) error
type ListClusters401JSONResponse ¶
type ListClusters401JSONResponse ErrorResponse
func (ListClusters401JSONResponse) VisitListClustersResponse ¶
func (response ListClusters401JSONResponse) VisitListClustersResponse(w http.ResponseWriter) error
type ListClusters500JSONResponse ¶
type ListClusters500JSONResponse ErrorResponse
func (ListClusters500JSONResponse) VisitListClustersResponse ¶
func (response ListClusters500JSONResponse) VisitListClustersResponse(w http.ResponseWriter) error
type ListClustersRequestObject ¶
type ListClustersRequestObject struct {
}
type ListClustersResponse ¶
type ListClustersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListClustersResult
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListClustersResponse ¶
func ParseListClustersResponse(rsp *http.Response) (*ListClustersResponse, error)
ParseListClustersResponse parses an HTTP response from a ListClustersWithResponse call
func (ListClustersResponse) Status ¶
func (r ListClustersResponse) Status() string
Status returns HTTPResponse.Status
func (ListClustersResponse) StatusCode ¶
func (r ListClustersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListClustersResponseObject ¶
type ListClustersResponseObject interface {
VisitListClustersResponse(w http.ResponseWriter) error
}
type ListClustersResult ¶
type ListClustersResult struct {
Clusters []ClusterSummary `json:"clusters"`
}
ListClustersResult Response envelope for `GET /clusters`.
type ListEnvAutoscalingGroups200JSONResponse ¶ added in v0.0.5
type ListEnvAutoscalingGroups200JSONResponse ListEnvAutoscalingGroupsResult
func (ListEnvAutoscalingGroups200JSONResponse) VisitListEnvAutoscalingGroupsResponse ¶ added in v0.0.5
func (response ListEnvAutoscalingGroups200JSONResponse) VisitListEnvAutoscalingGroupsResponse(w http.ResponseWriter) error
type ListEnvAutoscalingGroups401JSONResponse ¶ added in v0.0.5
type ListEnvAutoscalingGroups401JSONResponse ErrorResponse
func (ListEnvAutoscalingGroups401JSONResponse) VisitListEnvAutoscalingGroupsResponse ¶ added in v0.0.5
func (response ListEnvAutoscalingGroups401JSONResponse) VisitListEnvAutoscalingGroupsResponse(w http.ResponseWriter) error
type ListEnvAutoscalingGroups404JSONResponse ¶ added in v0.0.5
type ListEnvAutoscalingGroups404JSONResponse ErrorResponse
func (ListEnvAutoscalingGroups404JSONResponse) VisitListEnvAutoscalingGroupsResponse ¶ added in v0.0.5
func (response ListEnvAutoscalingGroups404JSONResponse) VisitListEnvAutoscalingGroupsResponse(w http.ResponseWriter) error
type ListEnvAutoscalingGroups500JSONResponse ¶ added in v0.0.5
type ListEnvAutoscalingGroups500JSONResponse ErrorResponse
func (ListEnvAutoscalingGroups500JSONResponse) VisitListEnvAutoscalingGroupsResponse ¶ added in v0.0.5
func (response ListEnvAutoscalingGroups500JSONResponse) VisitListEnvAutoscalingGroupsResponse(w http.ResponseWriter) error
type ListEnvAutoscalingGroupsRequestObject ¶ added in v0.0.5
type ListEnvAutoscalingGroupsRequestObject struct {
Name string `json:"name"`
}
type ListEnvAutoscalingGroupsResponse ¶ added in v0.0.5
type ListEnvAutoscalingGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListEnvAutoscalingGroupsResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListEnvAutoscalingGroupsResponse ¶ added in v0.0.5
func ParseListEnvAutoscalingGroupsResponse(rsp *http.Response) (*ListEnvAutoscalingGroupsResponse, error)
ParseListEnvAutoscalingGroupsResponse parses an HTTP response from a ListEnvAutoscalingGroupsWithResponse call
func (ListEnvAutoscalingGroupsResponse) Status ¶ added in v0.0.5
func (r ListEnvAutoscalingGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEnvAutoscalingGroupsResponse) StatusCode ¶ added in v0.0.5
func (r ListEnvAutoscalingGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEnvAutoscalingGroupsResponseObject ¶ added in v0.0.5
type ListEnvAutoscalingGroupsResponseObject interface {
VisitListEnvAutoscalingGroupsResponse(w http.ResponseWriter) error
}
type ListEnvAutoscalingGroupsResult ¶ added in v0.0.5
type ListEnvAutoscalingGroupsResult struct {
Items []EnvAutoscalingGroup `json:"items"`
Total int `json:"total"`
}
ListEnvAutoscalingGroupsResult defines model for ListEnvAutoscalingGroupsResult.
type ListEnvEvents200JSONResponse ¶ added in v0.0.5
type ListEnvEvents200JSONResponse ListEnvEventsResult
func (ListEnvEvents200JSONResponse) VisitListEnvEventsResponse ¶ added in v0.0.5
func (response ListEnvEvents200JSONResponse) VisitListEnvEventsResponse(w http.ResponseWriter) error
type ListEnvEvents401JSONResponse ¶ added in v0.0.5
type ListEnvEvents401JSONResponse ErrorResponse
func (ListEnvEvents401JSONResponse) VisitListEnvEventsResponse ¶ added in v0.0.5
func (response ListEnvEvents401JSONResponse) VisitListEnvEventsResponse(w http.ResponseWriter) error
type ListEnvEvents404JSONResponse ¶ added in v0.0.5
type ListEnvEvents404JSONResponse ErrorResponse
func (ListEnvEvents404JSONResponse) VisitListEnvEventsResponse ¶ added in v0.0.5
func (response ListEnvEvents404JSONResponse) VisitListEnvEventsResponse(w http.ResponseWriter) error
type ListEnvEvents500JSONResponse ¶ added in v0.0.5
type ListEnvEvents500JSONResponse ErrorResponse
func (ListEnvEvents500JSONResponse) VisitListEnvEventsResponse ¶ added in v0.0.5
func (response ListEnvEvents500JSONResponse) VisitListEnvEventsResponse(w http.ResponseWriter) error
type ListEnvEventsParams ¶ added in v0.0.5
type ListEnvEventsParams struct {
// Limit Maximum number of events to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEnvEventsParams defines parameters for ListEnvEvents.
type ListEnvEventsRequestObject ¶ added in v0.0.5
type ListEnvEventsRequestObject struct {
Name string `json:"name"`
Params ListEnvEventsParams
}
type ListEnvEventsResponse ¶ added in v0.0.5
type ListEnvEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListEnvEventsResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListEnvEventsResponse ¶ added in v0.0.5
func ParseListEnvEventsResponse(rsp *http.Response) (*ListEnvEventsResponse, error)
ParseListEnvEventsResponse parses an HTTP response from a ListEnvEventsWithResponse call
func (ListEnvEventsResponse) Status ¶ added in v0.0.5
func (r ListEnvEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEnvEventsResponse) StatusCode ¶ added in v0.0.5
func (r ListEnvEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEnvEventsResponseObject ¶ added in v0.0.5
type ListEnvEventsResponseObject interface {
VisitListEnvEventsResponse(w http.ResponseWriter) error
}
type ListEnvEventsResult ¶ added in v0.0.5
type ListEnvEventsResult struct {
// Items Events scoped to this Env and its member Pools, sorted descending by lastTimestamp.
Items []EnvEvent `json:"items"`
// Total Total number of events returned.
Total int `json:"total"`
}
ListEnvEventsResult defines model for ListEnvEventsResult.
type ListEnvSandboxPools200JSONResponse ¶ added in v0.0.5
type ListEnvSandboxPools200JSONResponse ListSandboxPoolsResult
func (ListEnvSandboxPools200JSONResponse) VisitListEnvSandboxPoolsResponse ¶ added in v0.0.5
func (response ListEnvSandboxPools200JSONResponse) VisitListEnvSandboxPoolsResponse(w http.ResponseWriter) error
type ListEnvSandboxPools401JSONResponse ¶ added in v0.0.5
type ListEnvSandboxPools401JSONResponse ErrorResponse
func (ListEnvSandboxPools401JSONResponse) VisitListEnvSandboxPoolsResponse ¶ added in v0.0.5
func (response ListEnvSandboxPools401JSONResponse) VisitListEnvSandboxPoolsResponse(w http.ResponseWriter) error
type ListEnvSandboxPools404JSONResponse ¶ added in v0.0.5
type ListEnvSandboxPools404JSONResponse ErrorResponse
func (ListEnvSandboxPools404JSONResponse) VisitListEnvSandboxPoolsResponse ¶ added in v0.0.5
func (response ListEnvSandboxPools404JSONResponse) VisitListEnvSandboxPoolsResponse(w http.ResponseWriter) error
type ListEnvSandboxPools500JSONResponse ¶ added in v0.0.5
type ListEnvSandboxPools500JSONResponse ErrorResponse
func (ListEnvSandboxPools500JSONResponse) VisitListEnvSandboxPoolsResponse ¶ added in v0.0.5
func (response ListEnvSandboxPools500JSONResponse) VisitListEnvSandboxPoolsResponse(w http.ResponseWriter) error
type ListEnvSandboxPoolsRequestObject ¶ added in v0.0.5
type ListEnvSandboxPoolsRequestObject struct {
Name string `json:"name"`
}
type ListEnvSandboxPoolsResponse ¶ added in v0.0.5
type ListEnvSandboxPoolsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSandboxPoolsResult
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListEnvSandboxPoolsResponse ¶ added in v0.0.5
func ParseListEnvSandboxPoolsResponse(rsp *http.Response) (*ListEnvSandboxPoolsResponse, error)
ParseListEnvSandboxPoolsResponse parses an HTTP response from a ListEnvSandboxPoolsWithResponse call
func (ListEnvSandboxPoolsResponse) Status ¶ added in v0.0.5
func (r ListEnvSandboxPoolsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEnvSandboxPoolsResponse) StatusCode ¶ added in v0.0.5
func (r ListEnvSandboxPoolsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEnvSandboxPoolsResponseObject ¶ added in v0.0.5
type ListEnvSandboxPoolsResponseObject interface {
VisitListEnvSandboxPoolsResponse(w http.ResponseWriter) error
}
type ListInstanceTypes200JSONResponse ¶ added in v0.0.5
type ListInstanceTypes200JSONResponse ListInstanceTypesResult
func (ListInstanceTypes200JSONResponse) VisitListInstanceTypesResponse ¶ added in v0.0.5
func (response ListInstanceTypes200JSONResponse) VisitListInstanceTypesResponse(w http.ResponseWriter) error
type ListInstanceTypes401JSONResponse ¶ added in v0.0.5
type ListInstanceTypes401JSONResponse ErrorResponse
func (ListInstanceTypes401JSONResponse) VisitListInstanceTypesResponse ¶ added in v0.0.5
func (response ListInstanceTypes401JSONResponse) VisitListInstanceTypesResponse(w http.ResponseWriter) error
type ListInstanceTypes500JSONResponse ¶ added in v0.0.5
type ListInstanceTypes500JSONResponse ErrorResponse
func (ListInstanceTypes500JSONResponse) VisitListInstanceTypesResponse ¶ added in v0.0.5
func (response ListInstanceTypes500JSONResponse) VisitListInstanceTypesResponse(w http.ResponseWriter) error
type ListInstanceTypesRequestObject ¶ added in v0.0.5
type ListInstanceTypesRequestObject struct {
}
type ListInstanceTypesResponse ¶ added in v0.0.5
type ListInstanceTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListInstanceTypesResult
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListInstanceTypesResponse ¶ added in v0.0.5
func ParseListInstanceTypesResponse(rsp *http.Response) (*ListInstanceTypesResponse, error)
ParseListInstanceTypesResponse parses an HTTP response from a ListInstanceTypesWithResponse call
func (ListInstanceTypesResponse) Status ¶ added in v0.0.5
func (r ListInstanceTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInstanceTypesResponse) StatusCode ¶ added in v0.0.5
func (r ListInstanceTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstanceTypesResponseObject ¶ added in v0.0.5
type ListInstanceTypesResponseObject interface {
VisitListInstanceTypesResponse(w http.ResponseWriter) error
}
type ListInstanceTypesResult ¶ added in v0.0.5
type ListInstanceTypesResult struct {
// Items Available InstanceType entries, sorted by name.
Items []InstanceTypeItem `json:"items"`
// Total Number of returned entries.
Total int `json:"total"`
}
ListInstanceTypesResult defines model for ListInstanceTypesResult.
type ListNamespaces200JSONResponse ¶
type ListNamespaces200JSONResponse NamespacesResult
func (ListNamespaces200JSONResponse) VisitListNamespacesResponse ¶
func (response ListNamespaces200JSONResponse) VisitListNamespacesResponse(w http.ResponseWriter) error
type ListNamespaces401JSONResponse ¶
type ListNamespaces401JSONResponse ErrorResponse
func (ListNamespaces401JSONResponse) VisitListNamespacesResponse ¶
func (response ListNamespaces401JSONResponse) VisitListNamespacesResponse(w http.ResponseWriter) error
type ListNamespaces403JSONResponse ¶
type ListNamespaces403JSONResponse ErrorResponse
func (ListNamespaces403JSONResponse) VisitListNamespacesResponse ¶
func (response ListNamespaces403JSONResponse) VisitListNamespacesResponse(w http.ResponseWriter) error
type ListNamespaces500JSONResponse ¶
type ListNamespaces500JSONResponse ErrorResponse
func (ListNamespaces500JSONResponse) VisitListNamespacesResponse ¶
func (response ListNamespaces500JSONResponse) VisitListNamespacesResponse(w http.ResponseWriter) error
type ListNamespacesRequestObject ¶
type ListNamespacesRequestObject struct {
}
type ListNamespacesResponse ¶
type ListNamespacesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NamespacesResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListNamespacesResponse ¶
func ParseListNamespacesResponse(rsp *http.Response) (*ListNamespacesResponse, error)
ParseListNamespacesResponse parses an HTTP response from a ListNamespacesWithResponse call
func (ListNamespacesResponse) Status ¶
func (r ListNamespacesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNamespacesResponse) StatusCode ¶
func (r ListNamespacesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNamespacesResponseObject ¶
type ListNamespacesResponseObject interface {
VisitListNamespacesResponse(w http.ResponseWriter) error
}
type ListQuotas200JSONResponse ¶
type ListQuotas200JSONResponse ListQuotasResult
func (ListQuotas200JSONResponse) VisitListQuotasResponse ¶
func (response ListQuotas200JSONResponse) VisitListQuotasResponse(w http.ResponseWriter) error
type ListQuotas401JSONResponse ¶
type ListQuotas401JSONResponse ErrorResponse
func (ListQuotas401JSONResponse) VisitListQuotasResponse ¶
func (response ListQuotas401JSONResponse) VisitListQuotasResponse(w http.ResponseWriter) error
type ListQuotas403JSONResponse ¶
type ListQuotas403JSONResponse ErrorResponse
func (ListQuotas403JSONResponse) VisitListQuotasResponse ¶
func (response ListQuotas403JSONResponse) VisitListQuotasResponse(w http.ResponseWriter) error
type ListQuotas500JSONResponse ¶
type ListQuotas500JSONResponse ErrorResponse
func (ListQuotas500JSONResponse) VisitListQuotasResponse ¶
func (response ListQuotas500JSONResponse) VisitListQuotasResponse(w http.ResponseWriter) error
type ListQuotasRequestObject ¶
type ListQuotasRequestObject struct {
}
type ListQuotasResponse ¶
type ListQuotasResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListQuotasResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListQuotasResponse ¶
func ParseListQuotasResponse(rsp *http.Response) (*ListQuotasResponse, error)
ParseListQuotasResponse parses an HTTP response from a ListQuotasWithResponse call
func (ListQuotasResponse) Status ¶
func (r ListQuotasResponse) Status() string
Status returns HTTPResponse.Status
func (ListQuotasResponse) StatusCode ¶
func (r ListQuotasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListQuotasResponseObject ¶
type ListQuotasResponseObject interface {
VisitListQuotasResponse(w http.ResponseWriter) error
}
type ListQuotasResult ¶
type ListQuotasResult struct {
// Items Page of quota objects.
Items []Quota `json:"items"`
// Limit Maximum number of items requested per page.
Limit int `json:"limit"`
// Offset Number of items skipped before this page.
Offset int `json:"offset"`
// Total Total number of quota entries (before pagination).
Total int `json:"total"`
}
ListQuotasResult defines model for ListQuotasResult.
type ListSandboxEnvs200JSONResponse ¶ added in v0.0.5
type ListSandboxEnvs200JSONResponse ListSandboxEnvsResult
func (ListSandboxEnvs200JSONResponse) VisitListSandboxEnvsResponse ¶ added in v0.0.5
func (response ListSandboxEnvs200JSONResponse) VisitListSandboxEnvsResponse(w http.ResponseWriter) error
type ListSandboxEnvs401JSONResponse ¶ added in v0.0.5
type ListSandboxEnvs401JSONResponse ErrorResponse
func (ListSandboxEnvs401JSONResponse) VisitListSandboxEnvsResponse ¶ added in v0.0.5
func (response ListSandboxEnvs401JSONResponse) VisitListSandboxEnvsResponse(w http.ResponseWriter) error
type ListSandboxEnvs500JSONResponse ¶ added in v0.0.5
type ListSandboxEnvs500JSONResponse ErrorResponse
func (ListSandboxEnvs500JSONResponse) VisitListSandboxEnvsResponse ¶ added in v0.0.5
func (response ListSandboxEnvs500JSONResponse) VisitListSandboxEnvsResponse(w http.ResponseWriter) error
type ListSandboxEnvsRequestObject ¶ added in v0.0.5
type ListSandboxEnvsRequestObject struct {
}
type ListSandboxEnvsResponse ¶ added in v0.0.5
type ListSandboxEnvsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSandboxEnvsResult
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListSandboxEnvsResponse ¶ added in v0.0.5
func ParseListSandboxEnvsResponse(rsp *http.Response) (*ListSandboxEnvsResponse, error)
ParseListSandboxEnvsResponse parses an HTTP response from a ListSandboxEnvsWithResponse call
func (ListSandboxEnvsResponse) Status ¶ added in v0.0.5
func (r ListSandboxEnvsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSandboxEnvsResponse) StatusCode ¶ added in v0.0.5
func (r ListSandboxEnvsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSandboxEnvsResponseObject ¶ added in v0.0.5
type ListSandboxEnvsResponseObject interface {
VisitListSandboxEnvsResponse(w http.ResponseWriter) error
}
type ListSandboxEnvsResult ¶ added in v0.0.5
type ListSandboxEnvsResult struct {
Items []SandboxEnvSummary `json:"items"`
}
ListSandboxEnvsResult defines model for ListSandboxEnvsResult.
type ListSandboxPoolsResult ¶
type ListSandboxPoolsResult struct {
// Items Page of SandboxPool summaries.
Items []SandboxPoolSummary `json:"items"`
// Limit Maximum number of items requested per page.
Limit int `json:"limit"`
// Offset Number of items skipped before this page.
Offset int `json:"offset"`
// Total Total number of pools matching the query (before pagination).
Total int `json:"total"`
}
ListSandboxPoolsResult defines model for ListSandboxPoolsResult.
type ListSandboxTemplates200JSONResponse ¶
type ListSandboxTemplates200JSONResponse ListSandboxTemplatesResult
func (ListSandboxTemplates200JSONResponse) VisitListSandboxTemplatesResponse ¶
func (response ListSandboxTemplates200JSONResponse) VisitListSandboxTemplatesResponse(w http.ResponseWriter) error
type ListSandboxTemplates401JSONResponse ¶
type ListSandboxTemplates401JSONResponse ErrorResponse
func (ListSandboxTemplates401JSONResponse) VisitListSandboxTemplatesResponse ¶
func (response ListSandboxTemplates401JSONResponse) VisitListSandboxTemplatesResponse(w http.ResponseWriter) error
type ListSandboxTemplates500JSONResponse ¶
type ListSandboxTemplates500JSONResponse ErrorResponse
func (ListSandboxTemplates500JSONResponse) VisitListSandboxTemplatesResponse ¶
func (response ListSandboxTemplates500JSONResponse) VisitListSandboxTemplatesResponse(w http.ResponseWriter) error
type ListSandboxTemplatesRequestObject ¶
type ListSandboxTemplatesRequestObject struct {
}
type ListSandboxTemplatesResponse ¶
type ListSandboxTemplatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSandboxTemplatesResult
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListSandboxTemplatesResponse ¶
func ParseListSandboxTemplatesResponse(rsp *http.Response) (*ListSandboxTemplatesResponse, error)
ParseListSandboxTemplatesResponse parses an HTTP response from a ListSandboxTemplatesWithResponse call
func (ListSandboxTemplatesResponse) Status ¶
func (r ListSandboxTemplatesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSandboxTemplatesResponse) StatusCode ¶
func (r ListSandboxTemplatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSandboxTemplatesResponseObject ¶
type ListSandboxTemplatesResponseObject interface {
VisitListSandboxTemplatesResponse(w http.ResponseWriter) error
}
type ListSandboxTemplatesResult ¶
type ListSandboxTemplatesResult struct {
// Items Page of SandboxTemplateSummary objects (lightweight — use GET /sandbox-templates/{name} for full details).
Items []SandboxTemplateSummary `json:"items"`
// Limit Maximum number of items requested per page.
Limit int `json:"limit"`
// Offset Number of items skipped before this page.
Offset int `json:"offset"`
// Total Total number of templates (before pagination).
Total int `json:"total"`
}
ListSandboxTemplatesResult defines model for ListSandboxTemplatesResult.
type ListSandboxes200JSONResponse ¶
type ListSandboxes200JSONResponse ListSandboxesResult
func (ListSandboxes200JSONResponse) VisitListSandboxesResponse ¶
func (response ListSandboxes200JSONResponse) VisitListSandboxesResponse(w http.ResponseWriter) error
type ListSandboxes401JSONResponse ¶
type ListSandboxes401JSONResponse ErrorResponse
func (ListSandboxes401JSONResponse) VisitListSandboxesResponse ¶
func (response ListSandboxes401JSONResponse) VisitListSandboxesResponse(w http.ResponseWriter) error
type ListSandboxes500JSONResponse ¶
type ListSandboxes500JSONResponse ErrorResponse
func (ListSandboxes500JSONResponse) VisitListSandboxesResponse ¶
func (response ListSandboxes500JSONResponse) VisitListSandboxesResponse(w http.ResponseWriter) error
type ListSandboxesParams ¶
type ListSandboxesParams struct {
// PoolName Filter by sandbox pool name.
PoolName *QueryPoolName `form:"poolName,omitempty" json:"poolName,omitempty"`
// Status Filter by sandbox phase. One of: Idle, Starting, Running, Stopping, Failed.
Status *QuerySandboxStatus `form:"status,omitempty" json:"status,omitempty"`
// Limit Maximum number of items to return per page.
Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Number of items to skip before returning results (zero-based).
Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListSandboxesParams defines parameters for ListSandboxes.
type ListSandboxesRequestObject ¶
type ListSandboxesRequestObject struct {
Params ListSandboxesParams
}
type ListSandboxesResponse ¶
type ListSandboxesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSandboxesResult
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListSandboxesResponse ¶
func ParseListSandboxesResponse(rsp *http.Response) (*ListSandboxesResponse, error)
ParseListSandboxesResponse parses an HTTP response from a ListSandboxesWithResponse call
func (ListSandboxesResponse) Status ¶
func (r ListSandboxesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSandboxesResponse) StatusCode ¶
func (r ListSandboxesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSandboxesResponseObject ¶
type ListSandboxesResponseObject interface {
VisitListSandboxesResponse(w http.ResponseWriter) error
}
type ListSandboxesResult ¶
type ListSandboxesResult struct {
// Items Page of sandbox objects matching the query.
Items []Sandbox `json:"items"`
// Limit Maximum number of items requested per page.
Limit int `json:"limit"`
// Offset Number of items skipped before this page.
Offset int `json:"offset"`
// Total Total number of sandboxes matching the query (before pagination).
Total int `json:"total"`
}
ListSandboxesResult defines model for ListSandboxesResult.
type ListTeams200JSONResponse ¶
type ListTeams200JSONResponse TeamsResult
func (ListTeams200JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams200JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeams401JSONResponse ¶
type ListTeams401JSONResponse ErrorResponse
func (ListTeams401JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams401JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeams403JSONResponse ¶
type ListTeams403JSONResponse ErrorResponse
func (ListTeams403JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams403JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeams500JSONResponse ¶
type ListTeams500JSONResponse ErrorResponse
func (ListTeams500JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams500JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeamsRequestObject ¶
type ListTeamsRequestObject struct {
}
type ListTeamsResponse ¶
type ListTeamsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TeamsResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListTeamsResponse ¶
func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error)
ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call
func (ListTeamsResponse) Status ¶
func (r ListTeamsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTeamsResponse) StatusCode ¶
func (r ListTeamsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTeamsResponseObject ¶
type ListTeamsResponseObject interface {
VisitListTeamsResponse(w http.ResponseWriter) error
}
type ListUsersByTeam200JSONResponse ¶
type ListUsersByTeam200JSONResponse UsersResult
func (ListUsersByTeam200JSONResponse) VisitListUsersByTeamResponse ¶
func (response ListUsersByTeam200JSONResponse) VisitListUsersByTeamResponse(w http.ResponseWriter) error
type ListUsersByTeam400JSONResponse ¶
type ListUsersByTeam400JSONResponse ErrorResponse
func (ListUsersByTeam400JSONResponse) VisitListUsersByTeamResponse ¶
func (response ListUsersByTeam400JSONResponse) VisitListUsersByTeamResponse(w http.ResponseWriter) error
type ListUsersByTeam401JSONResponse ¶
type ListUsersByTeam401JSONResponse ErrorResponse
func (ListUsersByTeam401JSONResponse) VisitListUsersByTeamResponse ¶
func (response ListUsersByTeam401JSONResponse) VisitListUsersByTeamResponse(w http.ResponseWriter) error
type ListUsersByTeam403JSONResponse ¶
type ListUsersByTeam403JSONResponse ErrorResponse
func (ListUsersByTeam403JSONResponse) VisitListUsersByTeamResponse ¶
func (response ListUsersByTeam403JSONResponse) VisitListUsersByTeamResponse(w http.ResponseWriter) error
type ListUsersByTeam500JSONResponse ¶
type ListUsersByTeam500JSONResponse ErrorResponse
func (ListUsersByTeam500JSONResponse) VisitListUsersByTeamResponse ¶
func (response ListUsersByTeam500JSONResponse) VisitListUsersByTeamResponse(w http.ResponseWriter) error
type ListUsersByTeamRequestObject ¶
type ListUsersByTeamRequestObject struct {
Team PathTeam `json:"team"`
}
type ListUsersByTeamResponse ¶
type ListUsersByTeamResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UsersResult
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListUsersByTeamResponse ¶
func ParseListUsersByTeamResponse(rsp *http.Response) (*ListUsersByTeamResponse, error)
ParseListUsersByTeamResponse parses an HTTP response from a ListUsersByTeamWithResponse call
func (ListUsersByTeamResponse) Status ¶
func (r ListUsersByTeamResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersByTeamResponse) StatusCode ¶
func (r ListUsersByTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersByTeamResponseObject ¶
type ListUsersByTeamResponseObject interface {
VisitListUsersByTeamResponse(w http.ResponseWriter) error
}
type ListVolumes200JSONResponse ¶ added in v0.0.10
type ListVolumes200JSONResponse ListVolumesResult
func (ListVolumes200JSONResponse) VisitListVolumesResponse ¶ added in v0.0.10
func (response ListVolumes200JSONResponse) VisitListVolumesResponse(w http.ResponseWriter) error
type ListVolumes401JSONResponse ¶ added in v0.0.10
type ListVolumes401JSONResponse ErrorResponse
func (ListVolumes401JSONResponse) VisitListVolumesResponse ¶ added in v0.0.10
func (response ListVolumes401JSONResponse) VisitListVolumesResponse(w http.ResponseWriter) error
type ListVolumes500JSONResponse ¶ added in v0.0.10
type ListVolumes500JSONResponse ErrorResponse
func (ListVolumes500JSONResponse) VisitListVolumesResponse ¶ added in v0.0.10
func (response ListVolumes500JSONResponse) VisitListVolumesResponse(w http.ResponseWriter) error
type ListVolumesRequestObject ¶ added in v0.0.10
type ListVolumesRequestObject struct {
}
type ListVolumesResponse ¶ added in v0.0.10
type ListVolumesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListVolumesResult
JSON401 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseListVolumesResponse ¶ added in v0.0.10
func ParseListVolumesResponse(rsp *http.Response) (*ListVolumesResponse, error)
ParseListVolumesResponse parses an HTTP response from a ListVolumesWithResponse call
func (ListVolumesResponse) Status ¶ added in v0.0.10
func (r ListVolumesResponse) Status() string
Status returns HTTPResponse.Status
func (ListVolumesResponse) StatusCode ¶ added in v0.0.10
func (r ListVolumesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVolumesResponseObject ¶ added in v0.0.10
type ListVolumesResponseObject interface {
VisitListVolumesResponse(w http.ResponseWriter) error
}
type ListVolumesResult ¶ added in v0.0.10
type ListVolumesResult struct {
Items []VolumeItem `json:"items"`
// Total Number of mountable claims returned.
Total int `json:"total"`
}
ListVolumesResult defines model for ListVolumesResult.
type MiddlewareFunc ¶
type NamespacesResult ¶
type NamespacesResult struct {
// Items List of Kubernetes namespace names.
Items []string `json:"items"`
// Total Total number of namespaces.
Total int `json:"total"`
}
NamespacesResult defines model for NamespacesResult.
type PathTemplateName ¶
type PathTemplateName = string
PathTemplateName defines model for PathTemplateName.
type PoolAutoScalingStatus ¶ added in v0.0.5
type PoolAutoScalingStatus struct {
// IdleZeroSince When the Pool's idle replica count first hit zero in the current continuous-zero window; cleared when idle > 0. Drives the proactive scaleUpPolicy.idleThresholdSeconds trigger.
IdleZeroSince *time.Time `json:"idleZeroSince,omitempty"`
// LastScaleDownTime Most recent wall-clock time spec.replicas shrank. Drives scaleDownPolicy.stabilizationSeconds; the step size comes from scaleUpPolicy.mode.
LastScaleDownTime *time.Time `json:"lastScaleDownTime,omitempty"`
// LastScaleUpAttemptResult Outcome of the most recent admission probe. Enough = probe accepted the full target; JustRight = partial admission (reserved for finer-grained reporting); Insufficient = cluster has no headroom; Failed = invalid spec or internal probe error.
LastScaleUpAttemptResult *PoolAutoScalingStatusLastScaleUpAttemptResult `json:"lastScaleUpAttemptResult,omitempty"`
// LastScaleUpAttemptTime Most recent wall-clock time the admission probe ran for a scale-up attempt, regardless of outcome. Combined with lastScaleUpAttemptResult and scaleUpPolicy.saturationCooldownSeconds drives the saturation cooldown.
LastScaleUpAttemptTime *time.Time `json:"lastScaleUpAttemptTime,omitempty"`
// LastScaleUpTime Most recent wall-clock time spec.replicas grew (probe accepted at least one additional replica). Drives the success cooldown gate (scaleUpPolicy.cooldownSeconds).
LastScaleUpTime *time.Time `json:"lastScaleUpTime,omitempty"`
// ObservedGeneration metadata.generation observed when the autoscaler last wrote this block. Clients use it to confirm status freshness relative to spec.
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
// ScaleUpErrorMessage Short single-line description of the most recent non-Enough probe result. Empty when lastScaleUpAttemptResult is Enough.
ScaleUpErrorMessage *string `json:"scaleUpErrorMessage,omitempty"`
}
PoolAutoScalingStatus Per-Pool autoscaler decision state. Sole writer is the SandboxPool reconciler running the autoscaling decision pipeline.
type PoolAutoScalingStatusLastScaleUpAttemptResult ¶ added in v0.0.5
type PoolAutoScalingStatusLastScaleUpAttemptResult string
PoolAutoScalingStatusLastScaleUpAttemptResult Outcome of the most recent admission probe. Enough = probe accepted the full target; JustRight = partial admission (reserved for finer-grained reporting); Insufficient = cluster has no headroom; Failed = invalid spec or internal probe error.
const ( Enough PoolAutoScalingStatusLastScaleUpAttemptResult = "Enough" Failed PoolAutoScalingStatusLastScaleUpAttemptResult = "Failed" Insufficient PoolAutoScalingStatusLastScaleUpAttemptResult = "Insufficient" JustRight PoolAutoScalingStatusLastScaleUpAttemptResult = "JustRight" )
Defines values for PoolAutoScalingStatusLastScaleUpAttemptResult.
func (PoolAutoScalingStatusLastScaleUpAttemptResult) Valid ¶ added in v0.0.5
func (e PoolAutoScalingStatusLastScaleUpAttemptResult) Valid() bool
Valid indicates whether the value is a known member of the PoolAutoScalingStatusLastScaleUpAttemptResult enum.
type PoolScaleDownPolicy ¶
type PoolScaleDownPolicy struct {
// IdleTimeoutSeconds Minimum seconds a pod must remain Idle before it becomes a scale-down candidate. Also bounds the step: a scale-down never removes more pods than have aged past this.
IdleTimeoutSeconds *int32 `json:"idleTimeoutSeconds,omitempty"`
// ProtectionWindowSeconds Seconds during which a scale-down-marked pod can still be claimed (cancels deletion).
ProtectionWindowSeconds *int32 `json:"protectionWindowSeconds,omitempty"`
// StabilizationSeconds Minimum seconds between two consecutive scale-down events.
StabilizationSeconds *int32 `json:"stabilizationSeconds,omitempty"`
}
PoolScaleDownPolicy Scale-down timing for a scaling group. How many replicas each event removes comes from scaleUpPolicy.mode — scale-down mirrors the scale-up mode so a pool sheds capacity on the same scale it acquired it.
type PoolScaleUpPolicy ¶
type PoolScaleUpPolicy struct {
// CooldownSeconds Minimum seconds between two consecutive scale-up events (group-level).
CooldownSeconds *int32 `json:"cooldownSeconds,omitempty"`
// IdleThresholdSeconds Aggregate idleReplicas=0 must persist for this long before the proactive trigger fires. Zero disables proactive scale-up.
IdleThresholdSeconds *int32 `json:"idleThresholdSeconds,omitempty"`
// IdleZeroQuietWindowSeconds Suppresses the proactive idleZero trigger when no Sandbox.Create has been observed for the Pool within this many seconds. Reactive scale-ups (queue length > 0 with no idle Pod) ignore this window. Set to 0 to disable the gate. Default 300.
IdleZeroQuietWindowSeconds *int32 `json:"idleZeroQuietWindowSeconds,omitempty"`
// Mode How much warm headroom to keep, and how large a bite each scale-down takes. Sizing is relative to demand (claimed Pods + waiting claims), never to the pool's own replica count; waiting claims are always covered in full regardless of mode. Conservative=1 spare Pod, ceiling demand+1, scale-down -1; Default=ceil(demand/4) spare, ceiling 1.5x demand, scale-down -ceil(replicas/4); Aggressive=ceil(demand/2) spare, ceiling 2x demand, scale-down -ceil(replicas/2).
Mode *PoolScaleUpPolicyMode `json:"mode,omitempty"`
// SaturationCooldownSeconds How long a member stays marked saturated after a probe returned InsufficientResources / InvalidSpec. Default 60s.
SaturationCooldownSeconds *int32 `json:"saturationCooldownSeconds,omitempty"`
}
PoolScaleUpPolicy Scale-up behaviour for a scaling group (mode + cooldown + idle threshold + saturation cooldown).
type PoolScaleUpPolicyMode ¶
type PoolScaleUpPolicyMode string
PoolScaleUpPolicyMode How much warm headroom to keep, and how large a bite each scale-down takes. Sizing is relative to demand (claimed Pods + waiting claims), never to the pool's own replica count; waiting claims are always covered in full regardless of mode. Conservative=1 spare Pod, ceiling demand+1, scale-down -1; Default=ceil(demand/4) spare, ceiling 1.5x demand, scale-down -ceil(replicas/4); Aggressive=ceil(demand/2) spare, ceiling 2x demand, scale-down -ceil(replicas/2).
const ( Aggressive PoolScaleUpPolicyMode = "Aggressive" Conservative PoolScaleUpPolicyMode = "Conservative" Default PoolScaleUpPolicyMode = "Default" )
Defines values for PoolScaleUpPolicyMode.
func (PoolScaleUpPolicyMode) Valid ¶
func (e PoolScaleUpPolicyMode) Valid() bool
Valid indicates whether the value is a known member of the PoolScaleUpPolicyMode enum.
type PoolSizing ¶ added in v0.0.11
type PoolSizing string
PoolSizing How the member Pools of a template — and therefore of an Env bound to it — must be sized. Reported by the quota provider that governs the deployment, on the template itself and (stamped onto it) on the Env, so that a console, a CLI or any other client reads the answer instead of re-deriving the rule.
Three values, not two: "billed" and "free-form" are a deployment with a billing rule deciding per template, while "either" is a deployment with no rule at all — which must keep letting the caller choose, because an InstanceType catalog with no quota backend is a supported way to size Pools.
- `billed` — the template's Pools spend quota. A Pool MUST carry the `quota.scitix.ai/url` label AND an `instanceType` (with an optional `multiplier`). It is refused without either: the quota is what the Pool is charged against, and the instance type is the unit it is charged in. This is the shape ordinary users' templates take.
- `free-form` — the template is not billed, so a Pool MUST be sized by `inlineResources` alone. `instanceType`, `multiplier` and the quota label are refused with 400, because each one asserts something the server would not honour. Templates reserved for specific callers take this shape.
- `either` — this deployment has no billing rule (no quota backend, or one that states no policy), so both shapes are accepted and the caller picks. This is the behaviour of every deployment before the rule existed, and of the open-source build.
Read-only. The value mirrors the template's and is maintained by the API server at Env create and by the Env reconciler on every pass; it is never part of a write body.
const ( Billed PoolSizing = "billed" Either PoolSizing = "either" FreeForm PoolSizing = "free-form" )
Defines values for PoolSizing.
func (PoolSizing) Valid ¶ added in v0.0.11
func (e PoolSizing) Valid() bool
Valid indicates whether the value is a known member of the PoolSizing enum.
type PoolTemplateOverrides ¶
type PoolTemplateOverrides struct {
// Image Override the main container (containers[0]) image
Image *string `json:"image,omitempty"`
}
PoolTemplateOverrides Legacy pool-create overrides. Image-only — per-Pool resource sizing flows through EnvClusterMember.{instanceType,multiplier,inlineResources} now.
type PromoteAPIKey200JSONResponse ¶
type PromoteAPIKey200JSONResponse PromoteAPIKeyResult
func (PromoteAPIKey200JSONResponse) VisitPromoteAPIKeyResponse ¶
func (response PromoteAPIKey200JSONResponse) VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
type PromoteAPIKey401JSONResponse ¶
type PromoteAPIKey401JSONResponse ErrorResponse
func (PromoteAPIKey401JSONResponse) VisitPromoteAPIKeyResponse ¶
func (response PromoteAPIKey401JSONResponse) VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
type PromoteAPIKey403JSONResponse ¶
type PromoteAPIKey403JSONResponse ErrorResponse
func (PromoteAPIKey403JSONResponse) VisitPromoteAPIKeyResponse ¶
func (response PromoteAPIKey403JSONResponse) VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
type PromoteAPIKey404JSONResponse ¶
type PromoteAPIKey404JSONResponse ErrorResponse
func (PromoteAPIKey404JSONResponse) VisitPromoteAPIKeyResponse ¶
func (response PromoteAPIKey404JSONResponse) VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
type PromoteAPIKey409JSONResponse ¶
type PromoteAPIKey409JSONResponse ErrorResponse
func (PromoteAPIKey409JSONResponse) VisitPromoteAPIKeyResponse ¶
func (response PromoteAPIKey409JSONResponse) VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
type PromoteAPIKey503JSONResponse ¶
type PromoteAPIKey503JSONResponse ErrorResponse
func (PromoteAPIKey503JSONResponse) VisitPromoteAPIKeyResponse ¶
func (response PromoteAPIKey503JSONResponse) VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
type PromoteAPIKeyRequestObject ¶
type PromoteAPIKeyRequestObject struct {
Name PathAPIKeyName `json:"name"`
}
type PromoteAPIKeyResponse ¶
type PromoteAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PromoteAPIKeyResult
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
JSON503 *ErrorResponse
}
func ParsePromoteAPIKeyResponse ¶
func ParsePromoteAPIKeyResponse(rsp *http.Response) (*PromoteAPIKeyResponse, error)
ParsePromoteAPIKeyResponse parses an HTTP response from a PromoteAPIKeyWithResponse call
func (PromoteAPIKeyResponse) Status ¶
func (r PromoteAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (PromoteAPIKeyResponse) StatusCode ¶
func (r PromoteAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PromoteAPIKeyResponseObject ¶
type PromoteAPIKeyResponseObject interface {
VisitPromoteAPIKeyResponse(w http.ResponseWriter) error
}
type PromoteAPIKeyResult ¶
type PromoteAPIKeyResult struct {
// KeyId Unique identifier of the promoted API key.
KeyId string `json:"keyId"`
// Status Result of the promote operation (e.g. Promoted).
Status string `json:"status"`
}
PromoteAPIKeyResult defines model for PromoteAPIKeyResult.
type QuerySandboxStatus ¶
type QuerySandboxStatus = string
QuerySandboxStatus defines model for QuerySandboxStatus.
type Quota ¶
type Quota struct {
// Id Stable identifier for this quota. Used by clients to reference the quota in subsequent API calls (e.g. as the reservation target). Opaque from the caller's perspective.
Id string `json:"id"`
// Metadata Provider-attached display hints, opaque to the core schema. Keys are provider-defined (e.g. a vendor-prefixed pool name/type); generic clients ignore unknown keys.
Metadata *map[string]string `json:"metadata,omitempty"`
// Name Human-readable display name for this quota. Suitable for showing in UI; not guaranteed to be unique across providers.
Name string `json:"name"`
// Resources Resource accounting for a single quota, keyed by resource name (e.g. cpu, memory, nvidia.com/gpu, sci.c22-2).
Resources *QuotaResources `json:"resources,omitempty"`
// Team Team that owns this quota, if applicable.
Team *string `json:"team,omitempty"`
// User User that owns this quota, if applicable.
User *string `json:"user,omitempty"`
}
Quota defines model for Quota.
type QuotaResources ¶ added in v0.0.5
type QuotaResources struct {
// Free Available amount (total - used - reserved).
Free *map[string]string `json:"free,omitempty"`
// Reserved Reserved but not yet actively consumed amount.
Reserved *map[string]string `json:"reserved,omitempty"`
// Total Total capacity allocated to this quota.
Total *map[string]string `json:"total,omitempty"`
// Used Currently consumed amount.
Used *map[string]string `json:"used,omitempty"`
}
QuotaResources Resource accounting for a single quota, keyed by resource name (e.g. cpu, memory, nvidia.com/gpu, sci.c22-2).
type RegistryCredential ¶
type RegistryCredential struct {
Password string `json:"password"`
// Registry Registry host or URL (e.g. 'https://index.docker.io/v1/', 'ghcr.io', 'quay.io').
Registry string `json:"registry"`
Username string `json:"username"`
}
RegistryCredential defines model for RegistryCredential.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResourceRequirements ¶ added in v0.0.5
type ResourceRequirements struct {
// Limits Resource limits keyed by resource name.
Limits *map[string]string `json:"limits,omitempty"`
// Requests Resource requests keyed by resource name (e.g. cpu, memory). Values use Kubernetes Quantity strings, e.g. '500m', '1Gi'.
Requests *map[string]string `json:"requests,omitempty"`
}
ResourceRequirements Subset of Kubernetes corev1.ResourceRequirements used for per-Pool resource sizing on EnvClusterMember.inlineResources.
type RevokeApprovalGrant204Response ¶ added in v0.0.11
type RevokeApprovalGrant204Response struct {
}
func (RevokeApprovalGrant204Response) VisitRevokeApprovalGrantResponse ¶ added in v0.0.11
func (response RevokeApprovalGrant204Response) VisitRevokeApprovalGrantResponse(w http.ResponseWriter) error
type RevokeApprovalGrant404JSONResponse ¶ added in v0.0.11
type RevokeApprovalGrant404JSONResponse ErrorResponse
func (RevokeApprovalGrant404JSONResponse) VisitRevokeApprovalGrantResponse ¶ added in v0.0.11
func (response RevokeApprovalGrant404JSONResponse) VisitRevokeApprovalGrantResponse(w http.ResponseWriter) error
type RevokeApprovalGrantRequestObject ¶ added in v0.0.11
type RevokeApprovalGrantRequestObject struct {
GrantId string `json:"grantId"`
}
type RevokeApprovalGrantResponse ¶ added in v0.0.11
type RevokeApprovalGrantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *ErrorResponse
}
func ParseRevokeApprovalGrantResponse ¶ added in v0.0.11
func ParseRevokeApprovalGrantResponse(rsp *http.Response) (*RevokeApprovalGrantResponse, error)
ParseRevokeApprovalGrantResponse parses an HTTP response from a RevokeApprovalGrantWithResponse call
func (RevokeApprovalGrantResponse) Status ¶ added in v0.0.11
func (r RevokeApprovalGrantResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeApprovalGrantResponse) StatusCode ¶ added in v0.0.11
func (r RevokeApprovalGrantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeApprovalGrantResponseObject ¶ added in v0.0.11
type RevokeApprovalGrantResponseObject interface {
VisitRevokeApprovalGrantResponse(w http.ResponseWriter) error
}
type Sandbox ¶
type Sandbox struct {
// ClaimedAt RFC 3339 timestamp when the sandbox was claimed by a user.
ClaimedAt time.Time `json:"claimedAt"`
// ContainerId Runtime container ID (e.g. "docker://abc123") of the primary container, captured when the sandbox entered Running state.
ContainerId *string `json:"containerId,omitempty"`
// ContainerImages Map of container name to image URI for each container in the sandbox pod.
ContainerImages *map[string]string `json:"containerImages,omitempty"`
// Cpu CPU resource allocated to the sandbox (Kubernetes resource quantity, e.g. "1", "100m").
Cpu *string `json:"cpu,omitempty"`
// DurationSeconds Wall-clock duration of the sandbox in seconds. Set for Running (startedAt to query time), Completed, Failed, and Released states (startedAt to terminatedAt). Omitted for Starting and Canceled states.
DurationSeconds *int64 `json:"durationSeconds,omitempty"`
// Endpoints Map of runtime name to its endpoint URL, populated once the sandbox is Running.
Endpoints *map[string]SandboxEndpoint `json:"endpoints,omitempty"`
// EnvName Name of the SandboxEnv that owns the pool this sandbox was allocated from (from pod label agentbox.navix.sh/env).
EnvName *string `json:"envName,omitempty"`
// ExitCode Exit code of the main container when the sandbox terminated.
ExitCode *int32 `json:"exitCode,omitempty"`
// FailureMessage Human-readable message describing the failure cause.
FailureMessage *string `json:"failureMessage,omitempty"`
// FailureReason Machine-readable reason code when status is Failed.
FailureReason *string `json:"failureReason,omitempty"`
// IdleTimeoutSeconds Idle timeout in effect for THIS sandbox, in seconds, as resolved at claim time (request value overriding the pool default) and updated by SetTimeout. Omitted when the sandbox has no idle timeout. This is the per-sandbox value, not the pool default in SandboxPool.spec.defaultIdleTimeout — a caller that passed its own timeout sees the value it passed.
IdleTimeoutSeconds *int64 `json:"idleTimeoutSeconds,omitempty"`
// Memory Memory resource allocated to the sandbox (Kubernetes resource quantity, e.g. "16Gi", "512Mi").
Memory *string `json:"memory,omitempty"`
// Metadata User-defined key-value pairs attached to the sandbox for filtering and annotation.
Metadata *map[string]string `json:"metadata,omitempty"`
// Namespace Kubernetes namespace where the sandbox pod is running.
Namespace string `json:"namespace"`
// NodeName Kubernetes node the sandbox Pod was scheduled onto.
NodeName *string `json:"nodeName,omitempty"`
// PodName Name of the Kubernetes Pod backing this sandbox.
PodName string `json:"podName"`
// PoolName Name of the SandboxPool this sandbox was allocated from.
PoolName string `json:"poolName"`
// RecycledAt Timestamp when the sandbox completed recycling (Stopping → Idle in-place upgrade) and the record was written to the store. Also set for evicted/externally-deleted sandboxes to record when the Failed record was persisted.
RecycledAt *time.Time `json:"recycledAt,omitempty"`
// SandboxId Sandbox identifier. Single-cluster: bare UUID v7 (e.g. `5de15c92-8fb5-440f-a9ea-7f62f734f1b9`).
// Cross-cluster: `{clusterID}.{uuid}` composite (e.g. `cluster1.5de15c92-...`, dot-separated). NOT a strict RFC 4122 UUID — treat as opaque.
SandboxId string `json:"sandboxId"`
// StartedAt RFC 3339 timestamp when the sandbox transitioned to Running.
StartedAt *time.Time `json:"startedAt,omitempty"`
// Status Current lifecycle phase of the sandbox.
Status SandboxStatus `json:"status"`
StatusDetail *SandboxStatusDetail `json:"statusDetail,omitempty"`
// Team Team label of the sandbox owner (from pod label)
Team *string `json:"team,omitempty"`
// TerminatedAt RFC 3339 timestamp when the sandbox workload terminated (exit or stop signal).
TerminatedAt *time.Time `json:"terminatedAt,omitempty"`
// User User label of the sandbox owner (from pod label)
User *string `json:"user,omitempty"`
}
Sandbox defines model for Sandbox.
type SandboxEndpoint ¶
type SandboxEndpoint struct {
// LogDir Path to the runtime log file inside the container, if configured
LogDir *string `json:"logDir,omitempty"`
// Url Fully-qualified URL to reach this runtime endpoint (e.g. https://sandbox.example.com/api).
Url string `json:"url"`
}
SandboxEndpoint defines model for SandboxEndpoint.
type SandboxEnv ¶ added in v0.0.5
type SandboxEnv struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
// EnvDocs Rendered Markdown documentation for this Env, sourced from the linked SandboxTemplate's
// agentbox.navix.sh/docs annotation. These placeholders are substituted server-side:
//
// * `${AGBX_ENV_NAME}` — this env's name.
// * `${AGBX_POOL_NAME}` — the first member Pool that exists in the local cluster, or
// `<envName>-pool-name` when the env has none yet.
// * `${AGBX_CLUSTER_ID}` — the local cluster ID.
// * `${AGBX_NATIVE_URL}`, `${AGBX_E2B_URL}`, `${AGBX_DATA_URL}` — the local cluster's
// gateway URLs from the cluster config.
// * `${AGBX_DATA_DOMAIN}` — the data URL without its scheme (what the E2B SDK's
// `E2B_DOMAIN` expects).
// * `${AGBX_HOST}` — the gateway hostname; `${AGBX_INNER_IP}` — the in-cluster IP that
// host is pinned to by hostAliases, for clients already inside the cluster.
// * `${AGBX_HTTPS}` — "true"/"false" for the data URL's scheme.
// * `${AGBX_REGISTRY_HOST}` — the local cluster's first configured image registry.
//
// `${AGBX_API_KEY}` is the exception: it is never substituted, so the response carries no
// credential and can be cached, logged, echoed or relayed. A client that holds one of the
// caller's keys — the console — replaces it before showing the snippet.
//
// A placeholder whose value this deployment does not know (no gateway configured, no host
// alias, no registry) is left in the output verbatim rather than rendered empty.
EnvDocs *string `json:"envDocs,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
Name string `json:"name"`
Namespace string `json:"namespace"`
// PoolSizing How this Env's member Pools must be sized, derived from the bound template's own poolSizing and carried on the Env (the agentbox.navix.sh/pool-sizing label) by the API server on create and by the Env reconciler on every pass. A template that gains or loses its billing annotations therefore re-stamps the Envs that reference it within a reconcile.
// Omitted when the Env has not been stamped yet, which clients must read as "either" — the behaviour that predates this field. See PoolSizing for what each value asks of a Pool write.
PoolSizing *PoolSizing `json:"poolSizing,omitempty"`
Spec SandboxEnvSpec `json:"spec"`
Status *SandboxEnvStatus `json:"status,omitempty"`
Team *string `json:"team,omitempty"`
User *string `json:"user,omitempty"`
}
SandboxEnv defines model for SandboxEnv.
type SandboxEnvDefaults ¶ added in v0.0.5
type SandboxEnvDefaults struct {
// InstanceType Default InstanceType used when Sandbox.create does not specify one. References an entry in the InstanceType catalog.
InstanceType *string `json:"instanceType,omitempty"`
// Multiplier Default multiplier applied to the InstanceType base resources.
Multiplier *int32 `json:"multiplier,omitempty"`
}
SandboxEnvDefaults defines model for SandboxEnvDefaults.
type SandboxEnvEnvelope ¶ added in v0.0.5
type SandboxEnvEnvelope struct {
// Editable What a client may set on an Env — the SAME body for create and update,
// and the body `GET /envs/{name}` returns as `editable`.
//
// One shape rather than two subsets, because two subsets drift: while
// create accepted `mode` and update did not, a person editing an Env had
// no way to send back what the API had just handed them, and the file a
// client exported from a read was not a file a write accepted.
//
// Fields marked `x-immutable` are fixed at create. An update must carry
// them UNCHANGED: leaving one out, or sending a different value, is a 400
// that names the value in force rather than a silent ignore — a body that
// drops the template is far more likely to be a bug in the caller than a
// request to have no template.
Editable *UpsertSandboxEnvRequest `json:"editable,omitempty"`
Env SandboxEnv `json:"env"`
}
SandboxEnvEnvelope defines model for SandboxEnvEnvelope.
type SandboxEnvName ¶ added in v0.0.11
type SandboxEnvName = string
SandboxEnvName The Env this file is about. `create` requires it; `update` takes the name from the address and refuses a file whose `name` says something else. It is part of the write body so that the file a create wrote is the file an update takes — one shape, sent to one address. RFC 1123 DNS label, capped at 24 chars so derived names (PoolName = EnvName + ResourceKey + QuotaShort, PodName = PoolName + UUID) stay under the 63-char label/DNS limit.
type SandboxEnvSpec ¶ added in v0.0.5
type SandboxEnvSpec struct {
// Autoscaling Env-level autoscaler config. The master switch lives per-group on EnvAutoscalingGroup.enabled so groups can be toggled independently.
Autoscaling *EnvAutoscalingSpec `json:"autoscaling,omitempty"`
Clusters *[]EnvClusterSpec `json:"clusters,omitempty"`
Defaults *SandboxEnvDefaults `json:"defaults,omitempty"`
// Mode Routing mode — WarmPool dispatches to pre-warmed member Pools; OnDemandJob (Phase 3) creates a SandboxJob per request.
Mode SandboxEnvSpecMode `json:"mode"`
// Overrides SandboxTemplate fields this Env replaces uniformly for every member Pool. The Env represents a single class of sandbox runtime, so image, image policy, default timeouts and image-pull credentials are expected to be shared; per-Pool variation lives on each EnvClusterMember.
Overrides *EnvOverrides `json:"overrides,omitempty"`
TemplateRef SandboxEnvTemplateRef `json:"templateRef"`
}
SandboxEnvSpec defines model for SandboxEnvSpec.
type SandboxEnvSpecMode ¶ added in v0.0.5
type SandboxEnvSpecMode string
SandboxEnvSpecMode Routing mode — WarmPool dispatches to pre-warmed member Pools; OnDemandJob (Phase 3) creates a SandboxJob per request.
const ( SandboxEnvSpecModeOnDemandJob SandboxEnvSpecMode = "OnDemandJob" SandboxEnvSpecModeWarmPool SandboxEnvSpecMode = "WarmPool" )
Defines values for SandboxEnvSpecMode.
func (SandboxEnvSpecMode) Valid ¶ added in v0.0.5
func (e SandboxEnvSpecMode) Valid() bool
Valid indicates whether the value is a known member of the SandboxEnvSpecMode enum.
type SandboxEnvStatus ¶ added in v0.0.5
type SandboxEnvStatus struct {
Clusters *[]EnvClusterStatus `json:"clusters,omitempty"`
Conditions *[]EnvCondition `json:"conditions,omitempty"`
// DesiredReplicas Env-wide sum of every member Pool's desired replicas.
DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
// IdleReplicas Env-wide sum of every member Pool's idle replicas.
IdleReplicas *int32 `json:"idleReplicas,omitempty"`
// MemberCount Total member Pools across all cluster segments (today: the local segment only). Exists because printer columns cannot evaluate the nested clusters[].members[] array.
MemberCount *int32 `json:"memberCount,omitempty"`
// RunningReplicas Env-wide sum of every member Pool's running replicas.
RunningReplicas *int32 `json:"runningReplicas,omitempty"`
ScalingGroups *[]EnvScalingGroupStatus `json:"scalingGroups,omitempty"`
}
SandboxEnvStatus defines model for SandboxEnvStatus.
type SandboxEnvSummary ¶ added in v0.0.5
type SandboxEnvSummary struct {
// AutoscalingEnabledGroupCount Number of autoscaling groups with enabled=true. There is no Env-level autoscaling switch; autoscaling is toggled per group.
AutoscalingEnabledGroupCount *int32 `json:"autoscalingEnabledGroupCount,omitempty"`
// CreatedAt RFC 3339 timestamp when the Env was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// DesiredReplicas Env-wide sum of every member Pool's desired replicas.
DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
// IdleReplicas Env-wide sum of every member Pool's idle replicas.
IdleReplicas *int32 `json:"idleReplicas,omitempty"`
// MemberCount Total member Pools across all cluster segments.
MemberCount *int32 `json:"memberCount,omitempty"`
// Mode How the Env satisfies sandbox-create requests.
Mode *SandboxEnvSummaryMode `json:"mode,omitempty"`
// Name Name of the SandboxEnv (RFC 1123 DNS label, unique within its namespace).
Name string `json:"name"`
Namespace *string `json:"namespace,omitempty"`
// PoolSizing How the member Pools of a template — and therefore of an Env bound to
// it — must be sized. Reported by the quota provider that governs the
// deployment, on the template itself and (stamped onto it) on the Env, so
// that a console, a CLI or any other client reads the answer instead of
// re-deriving the rule.
//
// Three values, not two: "billed" and "free-form" are a deployment with a
// billing rule deciding per template, while "either" is a deployment with
// no rule at all — which must keep letting the caller choose, because an
// InstanceType catalog with no quota backend is a supported way to size
// Pools.
//
// - `billed` — the template's Pools spend quota. A Pool MUST carry the
// `quota.scitix.ai/url` label AND an `instanceType` (with an optional
// `multiplier`). It is refused without either: the quota is what the
// Pool is charged against, and the instance type is the unit it is
// charged in. This is the shape ordinary users' templates take.
// - `free-form` — the template is not billed, so a Pool MUST be sized
// by `inlineResources` alone. `instanceType`, `multiplier` and the
// quota label are refused with 400, because each one asserts
// something the server would not honour. Templates reserved for
// specific callers take this shape.
// - `either` — this deployment has no billing rule (no quota backend,
// or one that states no policy), so both shapes are accepted and the
// caller picks. This is the behaviour of every deployment before the
// rule existed, and of the open-source build.
//
// Read-only. The value mirrors the template's and is maintained by the
// API server at Env create and by the Env reconciler on every pass; it is
// never part of a write body.
PoolSizing *PoolSizing `json:"poolSizing,omitempty"`
// Ready True when the Env's Ready condition is True (all members Active).
Ready *bool `json:"ready,omitempty"`
// RunningReplicas Env-wide sum of every member Pool's running replicas.
RunningReplicas *int32 `json:"runningReplicas,omitempty"`
// ScalingGroupCount Total number of autoscaling groups declared on the Env.
ScalingGroupCount *int32 `json:"scalingGroupCount,omitempty"`
Team *string `json:"team,omitempty"`
// TemplateName The bound SandboxTemplate name (from spec.templateRef.name).
TemplateName *string `json:"templateName,omitempty"`
User *string `json:"user,omitempty"`
}
SandboxEnvSummary Lightweight summary returned by the List endpoint — omits the full spec (autoscaling policies, per-member config) and detailed per-member status. Fetch GET /envs/{name} for the complete SandboxEnv.
type SandboxEnvSummaryMode ¶ added in v0.0.5
type SandboxEnvSummaryMode string
SandboxEnvSummaryMode How the Env satisfies sandbox-create requests.
const ( SandboxEnvSummaryModeOnDemandJob SandboxEnvSummaryMode = "OnDemandJob" SandboxEnvSummaryModeWarmPool SandboxEnvSummaryMode = "WarmPool" )
Defines values for SandboxEnvSummaryMode.
func (SandboxEnvSummaryMode) Valid ¶ added in v0.0.5
func (e SandboxEnvSummaryMode) Valid() bool
Valid indicates whether the value is a known member of the SandboxEnvSummaryMode enum.
type SandboxEnvTemplateRef ¶ added in v0.0.5
type SandboxEnvTemplateRef struct {
// Name Name of the cluster-scoped SandboxTemplate the Env binds to.
Name string `json:"name"`
// Version Optional Template version pin. When empty, the Env tracks the Template's current spec.version.
Version *string `json:"version,omitempty"`
}
SandboxEnvTemplateRef defines model for SandboxEnvTemplateRef.
type SandboxEnvelope ¶
type SandboxEnvelope struct {
Sandbox Sandbox `json:"sandbox"`
}
SandboxEnvelope defines model for SandboxEnvelope.
type SandboxLogEntry ¶
type SandboxLogEntry struct {
// Container Name of the container that produced this log line.
Container string `json:"container"`
// Log Raw log line content.
Log string `json:"log"`
// Timestamp RFC 3339 timestamp of the log line.
Timestamp *time.Time `json:"timestamp,omitempty"`
}
SandboxLogEntry defines model for SandboxLogEntry.
type SandboxLogsResult ¶
type SandboxLogsResult struct {
// CapturedAt RFC 3339 timestamp when the log snapshot was captured.
CapturedAt *time.Time `json:"capturedAt,omitempty"`
// Containers Every container of the sandbox Pod whose log can be read, the sandbox's own first.
// Includes init containers: on a Kubernetes with native sidecars the egress proxy is one,
// and the kubelet serves its log like any other. A client uses this to offer the choice;
// omitting `container` reads the sandbox container alone.
Containers *[]string `json:"containers,omitempty"`
// Entries Ordered list of log lines (oldest first).
Entries []SandboxLogEntry `json:"entries"`
// Namespace Kubernetes namespace of the sandbox.
Namespace string `json:"namespace"`
// PodName Name of the Kubernetes Pod backing the sandbox.
PodName *string `json:"podName,omitempty"`
// RuntimeName When source=runtime, the runtime name whose log file was read
RuntimeName *string `json:"runtimeName,omitempty"`
// SandboxId Sandbox identifier. Single-cluster: bare UUID v7; cross-cluster: `{clusterID}.{uuid}` composite (dot-separated).
// NOT a strict RFC 4122 UUID — treat as opaque.
SandboxId string `json:"sandboxId"`
// Scope For source=central: what was actually asked of the central log service — log store, filters
// and time window. An empty result and a mis-scoped query are the same 200 with no rows over
// the wire, so this is the only way to tell "the sandbox printed nothing" from "nobody was
// asked about it".
Scope *string `json:"scope,omitempty"`
// Source Where the lines came from. `live` reads the sandbox's Pod through the Kubernetes log API.
// `central` is the central log service, used once the sandbox has ended and its Pod was
// recycled; only what the log pipeline collected is available there. `runtime` is a runtime's
// own log file, read via exec.
Source SandboxLogsResultSource `json:"source"`
// TotalBytes Total byte size of all log entries before any truncation.
TotalBytes *int64 `json:"totalBytes,omitempty"`
// Truncated True when the response was truncated due to the `lines` limit or internal size cap.
Truncated bool `json:"truncated"`
}
SandboxLogsResult defines model for SandboxLogsResult.
type SandboxLogsResultSource ¶
type SandboxLogsResultSource string
SandboxLogsResultSource Where the lines came from. `live` reads the sandbox's Pod through the Kubernetes log API. `central` is the central log service, used once the sandbox has ended and its Pod was recycled; only what the log pipeline collected is available there. `runtime` is a runtime's own log file, read via exec.
const ( Cached SandboxLogsResultSource = "cached" Central SandboxLogsResultSource = "central" Live SandboxLogsResultSource = "live" Runtime SandboxLogsResultSource = "runtime" )
Defines values for SandboxLogsResultSource.
func (SandboxLogsResultSource) Valid ¶
func (e SandboxLogsResultSource) Valid() bool
Valid indicates whether the value is a known member of the SandboxLogsResultSource enum.
type SandboxPool ¶
type SandboxPool struct {
// Cpu CPU resource per pod in the pool (Kubernetes resource quantity, e.g. "1", "100m").
Cpu *string `json:"cpu,omitempty"`
// CreatedAt Creation time of the pool (from metadata.creationTimestamp)
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Memory Memory resource per pod in the pool (Kubernetes resource quantity, e.g. "16Gi", "512Mi").
Memory *string `json:"memory,omitempty"`
// Name Name of the SandboxPool (RFC 1123 DNS label).
Name string `json:"name"`
// Namespace Kubernetes namespace the pool is deployed in.
Namespace string `json:"namespace"`
// Overrides Legacy pool-create overrides. Image-only — per-Pool resource sizing flows through EnvClusterMember.{instanceType,multiplier,inlineResources} now.
Overrides *PoolTemplateOverrides `json:"overrides,omitempty"`
// OwningEnv Name of the SandboxEnv that owns this pool (resolved from OwnerReferences). Every pool is derived from an Env; empty only for a pool with no owning Env.
OwningEnv *string `json:"owningEnv,omitempty"`
// ScalingGroup Scaling group this pool belongs to (from the agentbox.navix.sh/scaling-group label). Members in the same group share an autoscaling policy. Empty when the pool is excluded from autoscaling.
ScalingGroup *string `json:"scalingGroup,omitempty"`
Spec SandboxPoolSpec `json:"spec"`
// SpecYaml Full EmbeddedSandboxTemplate (idleImage, runtimes, reservation, template) serialized as YAML for diff comparison.
SpecYaml *string `json:"specYaml,omitempty"`
Status SandboxPoolStatus `json:"status"`
// Team Team label of the pool owner (from CRD label)
Team *string `json:"team,omitempty"`
// TemplateVersion Version of the source SandboxTemplate at last sync (from annotation)
TemplateVersion *string `json:"templateVersion,omitempty"`
// User User label of the pool owner (from CRD label)
User *string `json:"user,omitempty"`
}
SandboxPool defines model for SandboxPool.
type SandboxPoolEnvelope ¶
type SandboxPoolEnvelope struct {
// Editable Add a member SandboxPool to an Env. The server derives:
// - `name` = "{envName}-{resourceKey}[-{quotaShort}]"
// - `scalingGroup` = `resourceKey` (e.g. "2c8Gi")
//
// where `resourceKey` is `instancetype.DeriveResourceKey(effective resources)` and
// `quotaShort` (when a quota label is supplied) is `quotaProvider.DeriveShortName(quotaID)`.
// Members in the same `scalingGroup` share an autoscaling policy.
//
// WHICH OF THE SHAPES BELOW IS ACCEPTED IS THE ENV'S TO SAY, not the
// caller's — read `poolSizing` off the Env this Pool joins (Template
// detail and Env detail both carry it; `abx envs <name>` prints it).
//
// Billed Env (`poolSizing: billed`) — the Template is billed, so the
// Pool must name what it spends:
// - `instanceType` (+ optional `multiplier`) alone → the Pod is sized to the full
// `instanceType × multiplier` envelope (default `multiplier` = 1).
// - `instanceType` (+ `multiplier`) AND `inlineResources` together → `instanceType ×
// multiplier` is the reservation/billing envelope, while `inlineResources` is the
// actual (possibly rounded-down) Pod request. Every dimension of `inlineResources`
// must be ≤ the envelope (round down allowed, round up rejected with 400); the
// reservation still charges quota for the whole instance.
// - `labels` must carry `quota.scitix.ai/url`.
//
// Free-form Env (`poolSizing: free-form`) — the Template is one the
// deployment does not bill, so the Pool is sized directly:
// - `inlineResources` alone → explicit per-Pool resource requests/limits.
// - `instanceType`, `multiplier` and the quota label are REJECTED (400):
// an instance type buys an instance nobody reserved, and a quota label
// on a Pool that is never submitted for reservation is a claim the
// server cannot honour.
//
// Unmanaged Env (`poolSizing: either`) — this deployment states no rule,
// so both shapes are accepted and the caller picks. Every deployment
// behaved this way before the rule existed.
//
// Under the two managed values there is no per-Pool choice: the shape
// follows from the Env, so two Pools of one Env are always sized the same
// way.
// `scalingGroup` / pool name are derived from the effective Pod request (the rounded-down
// `inlineResources` when supplied, else the full envelope), so the name reflects the Pod's
// real size and Pools downsized differently land in distinct scaling groups.
//
// This is also what an update takes, and what `GET` returns as `editable`:
// one body for create, update and export, so a client edits what the API
// handed it rather than translating between two subsets that drift.
//
// The fields marked `x-immutable` describe the Pool's SHAPE and are fixed
// at create. An update must carry them back unchanged — omitting one or
// changing one is a 400 that names the value in force, because a body that
// loses the instance type is a caller bug, not a request for a smaller
// machine.
Editable *UpsertSandboxPoolRequest `json:"editable,omitempty"`
Template SandboxPool `json:"template"`
}
SandboxPoolEnvelope defines model for SandboxPoolEnvelope.
type SandboxPoolSpec ¶
type SandboxPoolSpec struct {
// DefaultIdleTimeout Default idle timeout for sandboxes created in this pool. Applied when a CreateSandbox request does not specify idleTimeout. If not set, sandboxes have no idle timeout by default. Duration string, e.g. '30m'.
DefaultIdleTimeout *string `json:"defaultIdleTimeout,omitempty"`
// DefaultStartupTimeout Default startup timeout for sandbox create requests in this pool when the request does not specify startupTimeout. Also serves as the upper bound for the Starting phase: the controller deletes pods stuck in Starting for longer than this value. If not set, the internal default (2m) is used for create requests; no cleanup is enforced by default. Duration string, e.g. '5m'.
DefaultStartupTimeout *string `json:"defaultStartupTimeout,omitempty"`
// PodCreationImagePolicy Controls which image newly created Pods start with. IdleImage (default) uses spec.idleImage; PoolDefaultImage uses the template container image.
PodCreationImagePolicy *SandboxPoolSpecPodCreationImagePolicy `json:"podCreationImagePolicy,omitempty"`
// Replicas Desired number of pre-warmed idle pods in the pool.
Replicas int32 `json:"replicas"`
// TemplateName Name of the SandboxTemplate cluster resource to use as the pod spec source.
TemplateName *string `json:"templateName,omitempty"`
}
SandboxPoolSpec defines model for SandboxPoolSpec.
type SandboxPoolSpecPodCreationImagePolicy ¶
type SandboxPoolSpecPodCreationImagePolicy string
SandboxPoolSpecPodCreationImagePolicy Controls which image newly created Pods start with. IdleImage (default) uses spec.idleImage; PoolDefaultImage uses the template container image.
const ( SandboxPoolSpecPodCreationImagePolicyIdleImage SandboxPoolSpecPodCreationImagePolicy = "IdleImage" SandboxPoolSpecPodCreationImagePolicyPoolDefaultImage SandboxPoolSpecPodCreationImagePolicy = "PoolDefaultImage" )
Defines values for SandboxPoolSpecPodCreationImagePolicy.
func (SandboxPoolSpecPodCreationImagePolicy) Valid ¶
func (e SandboxPoolSpecPodCreationImagePolicy) Valid() bool
Valid indicates whether the value is a known member of the SandboxPoolSpecPodCreationImagePolicy enum.
type SandboxPoolStatus ¶
type SandboxPoolStatus struct {
// Autoscaling Per-Pool autoscaler decision state. Sole writer is the SandboxPool reconciler running the autoscaling decision pipeline.
Autoscaling *PoolAutoScalingStatus `json:"autoscaling,omitempty"`
// CurrentRevision The single revision hash all pods currently share; equals updateRevision once a rollout converges, empty while pods straddle revisions.
CurrentRevision *string `json:"currentRevision,omitempty"`
// FailedReplicas Number of pods in a Failed state.
FailedReplicas *int32 `json:"failedReplicas,omitempty"`
// IdleReplicas Number of pods in Idle phase (ready to be claimed).
IdleReplicas *int32 `json:"idleReplicas,omitempty"`
// PendingRequests Throttled mirror of the in-process PoolScheduler queue depth. Patched every ~3s when the queue length changes by at least 20% or crosses the 0/>0 boundary. Useful for Dashboard observability — the Env autoscaler reads the live in-process Snapshot instead.
PendingRequests *int32 `json:"pendingRequests,omitempty"`
// Phase High-level pool health summary. Pending=no pods; Ready=all healthy idle pods present; ScalingUp/ScalingDown=replica count changing; Degraded=has unavailable idle or failed pods; Terminating=pool is being deleted.
Phase *SandboxPoolStatusPhase `json:"phase,omitempty"`
// RunningReplicas Number of pods actively serving a sandbox workload.
RunningReplicas *int32 `json:"runningReplicas,omitempty"`
// StartingReplicas Number of pods currently starting up.
StartingReplicas *int32 `json:"startingReplicas,omitempty"`
// StoppingReplicas Number of pods transitioning from Running to Idle (in-place upgrade in progress).
StoppingReplicas *int32 `json:"stoppingReplicas,omitempty"`
UnavailableIdleReplicas *int32 `json:"unavailableIdleReplicas,omitempty"`
// UpdateRevision Target revision hash of the current Pool template. Idle pods whose own hash differs are stale and get rolled onto this revision.
UpdateRevision *string `json:"updateRevision,omitempty"`
// UpdatedReplicas Number of pods already at updateRevision.
UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"`
}
SandboxPoolStatus defines model for SandboxPoolStatus.
type SandboxPoolStatusPhase ¶
type SandboxPoolStatusPhase string
SandboxPoolStatusPhase High-level pool health summary. Pending=no pods; Ready=all healthy idle pods present; ScalingUp/ScalingDown=replica count changing; Degraded=has unavailable idle or failed pods; Terminating=pool is being deleted.
const ( Degraded SandboxPoolStatusPhase = "Degraded" Pending SandboxPoolStatusPhase = "Pending" Ready SandboxPoolStatusPhase = "Ready" ScalingDown SandboxPoolStatusPhase = "ScalingDown" ScalingUp SandboxPoolStatusPhase = "ScalingUp" Terminating SandboxPoolStatusPhase = "Terminating" )
Defines values for SandboxPoolStatusPhase.
func (SandboxPoolStatusPhase) Valid ¶
func (e SandboxPoolStatusPhase) Valid() bool
Valid indicates whether the value is a known member of the SandboxPoolStatusPhase enum.
type SandboxPoolSummary ¶ added in v0.0.5
type SandboxPoolSummary struct {
// Cpu CPU resource per pod in the pool (Kubernetes resource quantity, e.g. "1", "100m").
Cpu *string `json:"cpu,omitempty"`
// CreatedAt Creation time of the pool (from metadata.creationTimestamp).
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Memory Memory resource per pod in the pool (Kubernetes resource quantity, e.g. "16Gi", "512Mi").
Memory *string `json:"memory,omitempty"`
// Name Name of the SandboxPool (RFC 1123 DNS label).
Name string `json:"name"`
// Namespace Kubernetes namespace the pool is deployed in.
Namespace string `json:"namespace"`
// OwningEnv Name of the SandboxEnv that owns this pool (resolved from OwnerReferences).
OwningEnv *string `json:"owningEnv,omitempty"`
// ScalingGroup Scaling group this pool belongs to. Members in the same group share an autoscaling policy. Empty when excluded from autoscaling.
ScalingGroup *string `json:"scalingGroup,omitempty"`
Spec SandboxPoolSpec `json:"spec"`
Status SandboxPoolStatus `json:"status"`
// Team Team label of the pool owner (from CRD label).
Team *string `json:"team,omitempty"`
// TemplateVersion Version of the source SandboxTemplate at last sync (from annotation).
TemplateVersion *string `json:"templateVersion,omitempty"`
// User User label of the pool owner (from CRD label).
User *string `json:"user,omitempty"`
}
SandboxPoolSummary Lightweight shape returned by the pool List endpoint: the full SandboxPool minus the heavy specYaml (full pod-template YAML) and overrides, neither of which list consumers read. Fetch GET /envs/{name}/sandboxpools/{poolName} for the full body (incl. specYaml for the diff view).
type SandboxReadinessResult ¶
type SandboxReadinessResult struct {
// Endpoints Per-runtime readiness status, keyed by runtime name.
Endpoints *map[string]struct {
// Message Diagnostic message when the probe failed.
Message *string `json:"message,omitempty"`
// Ready Whether this runtime endpoint's readiness probe passed.
Ready *bool `json:"ready,omitempty"`
} `json:"endpoints,omitempty"`
// Ready True when all configured readiness probes have passed.
Ready bool `json:"ready"`
// SandboxId Sandbox identifier. Single-cluster: bare UUID v7 (e.g. `5de15c92-8fb5-440f-a9ea-7f62f734f1b9`).
// Cross-cluster: `{clusterID}.{uuid}` composite (e.g. `cluster1.5de15c92-...`, dot-separated). NOT a strict RFC 4122 UUID — treat as opaque.
SandboxId string `json:"sandboxId"`
}
SandboxReadinessResult defines model for SandboxReadinessResult.
type SandboxStatistics ¶
type SandboxStatistics struct {
// ByNamespace Sandbox count broken down by Kubernetes namespace.
ByNamespace map[string]int `json:"byNamespace"`
// ByStatus Sandbox count broken down by status (e.g. Running, Failed).
ByStatus map[string]int `json:"byStatus"`
// Total Total number of sandboxes across all namespaces.
Total int `json:"total"`
}
SandboxStatistics defines model for SandboxStatistics.
type SandboxStatisticsEnvelope ¶
type SandboxStatisticsEnvelope struct {
Statistics SandboxStatistics `json:"statistics"`
}
SandboxStatisticsEnvelope defines model for SandboxStatisticsEnvelope.
type SandboxStatus ¶
type SandboxStatus string
SandboxStatus Current lifecycle phase of the sandbox.
const ( SandboxStatusCanceled SandboxStatus = "Canceled" SandboxStatusCompleted SandboxStatus = "Completed" SandboxStatusFailed SandboxStatus = "Failed" SandboxStatusPending SandboxStatus = "Pending" SandboxStatusReleased SandboxStatus = "Released" SandboxStatusRunning SandboxStatus = "Running" SandboxStatusStarting SandboxStatus = "Starting" SandboxStatusStopping SandboxStatus = "Stopping" )
Defines values for SandboxStatus.
func (SandboxStatus) Valid ¶
func (e SandboxStatus) Valid() bool
Valid indicates whether the value is a known member of the SandboxStatus enum.
type SandboxStatusDetail ¶
type SandboxStatusDetail struct {
// LastUpdatedTime RFC 3339 timestamp of when this status detail was last updated.
LastUpdatedTime *time.Time `json:"lastUpdatedTime,omitempty"`
// Message Human-readable message explaining the current status.
Message *string `json:"message,omitempty"`
// Reason Machine-readable reason code for the current status (mirrors Kubernetes condition reason).
Reason *string `json:"reason,omitempty"`
}
SandboxStatusDetail defines model for SandboxStatusDetail.
type SandboxTemplate ¶
type SandboxTemplate struct {
// Cpu CPU resource quantity derived from the template's pod spec (e.g. "1", "100m").
Cpu *string `json:"cpu,omitempty"`
// CrdYaml Complete raw SandboxTemplate CRD YAML (without managedFields). Includes resourceVersion and uid for optimistic locking on PUT.
CrdYaml *string `json:"crdYaml,omitempty"`
// CreatedAt RFC 3339 timestamp when the template was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Human-readable description of the template (from spec.description).
Description *string `json:"description,omitempty"`
// Docs Markdown documentation for the template, stored in the agentbox.navix.sh/docs annotation.
// Supports the placeholders listed under SandboxEnv.envDocs. On Template Get the env-scoped
// ones become readable hints (YOUR_ENV_NAME, YOUR_POOL_NAME) because there is no env
// context, while everything derived from the serving cluster's config
// (${AGBX_CLUSTER_ID}, the gateway URLs, ${AGBX_HOST}, ${AGBX_INNER_IP}, ${AGBX_HTTPS},
// ${AGBX_REGISTRY_HOST}) is substituted for real; GetSandboxEnv substitutes everything
// except ${AGBX_API_KEY}, which neither renderer touches.
//
// Editing only the docs does not require bumping spec.version — docs never reach the
// rendered Pod, so they name no new template revision.
Docs *string `json:"docs,omitempty"`
// Memory Memory resource quantity derived from the template's pod spec (e.g. "16Gi", "512Mi").
Memory *string `json:"memory,omitempty"`
// Name Name of the SandboxTemplate cluster resource (RFC 1123 DNS label).
Name string `json:"name"`
// PoolSizing How the member Pools of a template — and therefore of an Env bound to
// it — must be sized. Reported by the quota provider that governs the
// deployment, on the template itself and (stamped onto it) on the Env, so
// that a console, a CLI or any other client reads the answer instead of
// re-deriving the rule.
//
// Three values, not two: "billed" and "free-form" are a deployment with a
// billing rule deciding per template, while "either" is a deployment with
// no rule at all — which must keep letting the caller choose, because an
// InstanceType catalog with no quota backend is a supported way to size
// Pools.
//
// - `billed` — the template's Pools spend quota. A Pool MUST carry the
// `quota.scitix.ai/url` label AND an `instanceType` (with an optional
// `multiplier`). It is refused without either: the quota is what the
// Pool is charged against, and the instance type is the unit it is
// charged in. This is the shape ordinary users' templates take.
// - `free-form` — the template is not billed, so a Pool MUST be sized
// by `inlineResources` alone. `instanceType`, `multiplier` and the
// quota label are refused with 400, because each one asserts
// something the server would not honour. Templates reserved for
// specific callers take this shape.
// - `either` — this deployment has no billing rule (no quota backend,
// or one that states no policy), so both shapes are accepted and the
// caller picks. This is the behaviour of every deployment before the
// rule existed, and of the open-source build.
//
// Read-only. The value mirrors the template's and is maintained by the
// API server at Env create and by the Env reconciler on every pass; it is
// never part of a write body.
PoolSizing *PoolSizing `json:"poolSizing,omitempty"`
// SyncSource Resource origin: 'global' (synced via ws-proxy) or 'local' (created directly on worker). Empty for legacy resources.
SyncSource *string `json:"syncSource,omitempty"`
// Version User-defined version of this template (from spec.version).
Version *string `json:"version,omitempty"`
}
SandboxTemplate defines model for SandboxTemplate.
type SandboxTemplateEnvelope ¶
type SandboxTemplateEnvelope struct {
Template SandboxTemplate `json:"template"`
}
SandboxTemplateEnvelope defines model for SandboxTemplateEnvelope.
type SandboxTemplateSummary ¶
type SandboxTemplateSummary struct {
// Cpu CPU resource quantity derived from the template's pod spec (e.g. "1", "100m").
Cpu *string `json:"cpu,omitempty"`
// CreatedAt RFC 3339 timestamp when the template was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Description Human-readable description of the template (from spec.description).
Description *string `json:"description,omitempty"`
// HasDocs True when the template has documentation in the agentbox.navix.sh/docs annotation.
HasDocs *bool `json:"hasDocs,omitempty"`
// Memory Memory resource quantity derived from the template's pod spec (e.g. "16Gi", "512Mi").
Memory *string `json:"memory,omitempty"`
// Name Name of the SandboxTemplate cluster resource (RFC 1123 DNS label).
Name string `json:"name"`
// PoolSizing How the member Pools of a template — and therefore of an Env bound to
// it — must be sized. Reported by the quota provider that governs the
// deployment, on the template itself and (stamped onto it) on the Env, so
// that a console, a CLI or any other client reads the answer instead of
// re-deriving the rule.
//
// Three values, not two: "billed" and "free-form" are a deployment with a
// billing rule deciding per template, while "either" is a deployment with
// no rule at all — which must keep letting the caller choose, because an
// InstanceType catalog with no quota backend is a supported way to size
// Pools.
//
// - `billed` — the template's Pools spend quota. A Pool MUST carry the
// `quota.scitix.ai/url` label AND an `instanceType` (with an optional
// `multiplier`). It is refused without either: the quota is what the
// Pool is charged against, and the instance type is the unit it is
// charged in. This is the shape ordinary users' templates take.
// - `free-form` — the template is not billed, so a Pool MUST be sized
// by `inlineResources` alone. `instanceType`, `multiplier` and the
// quota label are refused with 400, because each one asserts
// something the server would not honour. Templates reserved for
// specific callers take this shape.
// - `either` — this deployment has no billing rule (no quota backend,
// or one that states no policy), so both shapes are accepted and the
// caller picks. This is the behaviour of every deployment before the
// rule existed, and of the open-source build.
//
// Read-only. The value mirrors the template's and is maintained by the
// API server at Env create and by the Env reconciler on every pass; it is
// never part of a write body.
PoolSizing *PoolSizing `json:"poolSizing,omitempty"`
// RuntimeNames List of runtime endpoint names defined in this template (lightweight alternative to the full Runtime objects).
RuntimeNames *[]string `json:"runtimeNames,omitempty"`
// SyncSource Resource origin: 'global' (synced via ws-proxy) or 'local' (created directly on worker).
SyncSource *string `json:"syncSource,omitempty"`
// Version User-defined version of this template (from spec.version).
Version *string `json:"version,omitempty"`
}
SandboxTemplateSummary Lightweight summary returned by the List endpoint — omits spec, specYaml, labels, annotations, status, and full docs to reduce payload size.
type SelfCreateAPIKey201JSONResponse ¶
type SelfCreateAPIKey201JSONResponse CreateAPIKeyResult
func (SelfCreateAPIKey201JSONResponse) VisitSelfCreateAPIKeyResponse ¶
func (response SelfCreateAPIKey201JSONResponse) VisitSelfCreateAPIKeyResponse(w http.ResponseWriter) error
type SelfCreateAPIKey400JSONResponse ¶
type SelfCreateAPIKey400JSONResponse ErrorResponse
func (SelfCreateAPIKey400JSONResponse) VisitSelfCreateAPIKeyResponse ¶
func (response SelfCreateAPIKey400JSONResponse) VisitSelfCreateAPIKeyResponse(w http.ResponseWriter) error
type SelfCreateAPIKey503JSONResponse ¶
type SelfCreateAPIKey503JSONResponse ErrorResponse
func (SelfCreateAPIKey503JSONResponse) VisitSelfCreateAPIKeyResponse ¶
func (response SelfCreateAPIKey503JSONResponse) VisitSelfCreateAPIKeyResponse(w http.ResponseWriter) error
type SelfCreateAPIKeyJSONRequestBody ¶
type SelfCreateAPIKeyJSONRequestBody = SelfCreateAPIKeyRequest
SelfCreateAPIKeyJSONRequestBody defines body for SelfCreateAPIKey for application/json ContentType.
type SelfCreateAPIKeyRequest ¶
type SelfCreateAPIKeyRequest struct {
// Description Optional human-readable description for this key (e.g. its intended use).
Description *string `json:"description,omitempty"`
// ExpiresAt Optional RFC 3339 expiry timestamp. Omit for a non-expiring key.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// Mode What this key is for, and therefore what it may do unattended.
//
// * `unrestricted` — a person's own credential. Behaves exactly as
// every key did before this field existed.
// * `agent` — handed to something that acts while nobody is watching.
// Its platform WRITES (create an environment, add a pool, delete
// anything) are held until a person approves them, and the refusal
// names an approval to act on.
//
// The sandbox surface is unaffected in both modes: an agent-mode key
// starts sandboxes, runs commands and moves files exactly as an
// unrestricted one does. It is the same key the E2B SDK uses, and the
// gate deliberately does not sit on that path — only on the platform
// operations `abx` performs.
Mode *SelfCreateAPIKeyRequestMode `json:"mode,omitempty"`
}
SelfCreateAPIKeyRequest Request body for tenant self-service API key creation. Namespace/user/team are taken from the caller's auth context.
type SelfCreateAPIKeyRequestMode ¶ added in v0.0.11
type SelfCreateAPIKeyRequestMode string
SelfCreateAPIKeyRequestMode What this key is for, and therefore what it may do unattended.
- `unrestricted` — a person's own credential. Behaves exactly as every key did before this field existed.
- `agent` — handed to something that acts while nobody is watching. Its platform WRITES (create an environment, add a pool, delete anything) are held until a person approves them, and the refusal names an approval to act on.
The sandbox surface is unaffected in both modes: an agent-mode key starts sandboxes, runs commands and moves files exactly as an unrestricted one does. It is the same key the E2B SDK uses, and the gate deliberately does not sit on that path — only on the platform operations `abx` performs.
const ( SelfCreateAPIKeyRequestModeAgent SelfCreateAPIKeyRequestMode = "agent" SelfCreateAPIKeyRequestModeUnrestricted SelfCreateAPIKeyRequestMode = "unrestricted" )
Defines values for SelfCreateAPIKeyRequestMode.
func (SelfCreateAPIKeyRequestMode) Valid ¶ added in v0.0.11
func (e SelfCreateAPIKeyRequestMode) Valid() bool
Valid indicates whether the value is a known member of the SelfCreateAPIKeyRequestMode enum.
type SelfCreateAPIKeyRequestObject ¶
type SelfCreateAPIKeyRequestObject struct {
Body *SelfCreateAPIKeyJSONRequestBody
}
type SelfCreateAPIKeyResponse ¶
type SelfCreateAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateAPIKeyResult
JSON400 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseSelfCreateAPIKeyResponse ¶
func ParseSelfCreateAPIKeyResponse(rsp *http.Response) (*SelfCreateAPIKeyResponse, error)
ParseSelfCreateAPIKeyResponse parses an HTTP response from a SelfCreateAPIKeyWithResponse call
func (SelfCreateAPIKeyResponse) Status ¶
func (r SelfCreateAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (SelfCreateAPIKeyResponse) StatusCode ¶
func (r SelfCreateAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SelfCreateAPIKeyResponseObject ¶
type SelfCreateAPIKeyResponseObject interface {
VisitSelfCreateAPIKeyResponse(w http.ResponseWriter) error
}
type SelfDeleteAPIKey200JSONResponse ¶
type SelfDeleteAPIKey200JSONResponse DeleteAPIKeyResult
func (SelfDeleteAPIKey200JSONResponse) VisitSelfDeleteAPIKeyResponse ¶
func (response SelfDeleteAPIKey200JSONResponse) VisitSelfDeleteAPIKeyResponse(w http.ResponseWriter) error
type SelfDeleteAPIKey403JSONResponse ¶
type SelfDeleteAPIKey403JSONResponse ErrorResponse
func (SelfDeleteAPIKey403JSONResponse) VisitSelfDeleteAPIKeyResponse ¶
func (response SelfDeleteAPIKey403JSONResponse) VisitSelfDeleteAPIKeyResponse(w http.ResponseWriter) error
type SelfDeleteAPIKey404JSONResponse ¶
type SelfDeleteAPIKey404JSONResponse ErrorResponse
func (SelfDeleteAPIKey404JSONResponse) VisitSelfDeleteAPIKeyResponse ¶
func (response SelfDeleteAPIKey404JSONResponse) VisitSelfDeleteAPIKeyResponse(w http.ResponseWriter) error
type SelfDeleteAPIKey503JSONResponse ¶
type SelfDeleteAPIKey503JSONResponse ErrorResponse
func (SelfDeleteAPIKey503JSONResponse) VisitSelfDeleteAPIKeyResponse ¶
func (response SelfDeleteAPIKey503JSONResponse) VisitSelfDeleteAPIKeyResponse(w http.ResponseWriter) error
type SelfDeleteAPIKeyRequestObject ¶
type SelfDeleteAPIKeyRequestObject struct {
Name PathAPIKeyName `json:"name"`
}
type SelfDeleteAPIKeyResponse ¶
type SelfDeleteAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteAPIKeyResult
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseSelfDeleteAPIKeyResponse ¶
func ParseSelfDeleteAPIKeyResponse(rsp *http.Response) (*SelfDeleteAPIKeyResponse, error)
ParseSelfDeleteAPIKeyResponse parses an HTTP response from a SelfDeleteAPIKeyWithResponse call
func (SelfDeleteAPIKeyResponse) Status ¶
func (r SelfDeleteAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (SelfDeleteAPIKeyResponse) StatusCode ¶
func (r SelfDeleteAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SelfDeleteAPIKeyResponseObject ¶
type SelfDeleteAPIKeyResponseObject interface {
VisitSelfDeleteAPIKeyResponse(w http.ResponseWriter) error
}
type SelfListAPIKeys200JSONResponse ¶
type SelfListAPIKeys200JSONResponse ListAPIKeysResult
func (SelfListAPIKeys200JSONResponse) VisitSelfListAPIKeysResponse ¶
func (response SelfListAPIKeys200JSONResponse) VisitSelfListAPIKeysResponse(w http.ResponseWriter) error
type SelfListAPIKeys503JSONResponse ¶
type SelfListAPIKeys503JSONResponse ErrorResponse
func (SelfListAPIKeys503JSONResponse) VisitSelfListAPIKeysResponse ¶
func (response SelfListAPIKeys503JSONResponse) VisitSelfListAPIKeysResponse(w http.ResponseWriter) error
type SelfListAPIKeysRequestObject ¶
type SelfListAPIKeysRequestObject struct {
}
type SelfListAPIKeysResponse ¶
type SelfListAPIKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListAPIKeysResult
JSON503 *ErrorResponse
}
func ParseSelfListAPIKeysResponse ¶
func ParseSelfListAPIKeysResponse(rsp *http.Response) (*SelfListAPIKeysResponse, error)
ParseSelfListAPIKeysResponse parses an HTTP response from a SelfListAPIKeysWithResponse call
func (SelfListAPIKeysResponse) Status ¶
func (r SelfListAPIKeysResponse) Status() string
Status returns HTTPResponse.Status
func (SelfListAPIKeysResponse) StatusCode ¶
func (r SelfListAPIKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SelfListAPIKeysResponseObject ¶
type SelfListAPIKeysResponseObject interface {
VisitSelfListAPIKeysResponse(w http.ResponseWriter) error
}
type ServerInterface ¶
type ServerInterface interface {
// List API keys (admin)
// (GET /admin/api-keys)
ListAPIKeys(c *gin.Context, params ListAPIKeysParams)
// Create an API key (admin)
// (POST /admin/api-keys)
CreateAPIKey(c *gin.Context)
// Delete an API key (admin)
// (DELETE /admin/api-keys/{name})
DeleteAPIKey(c *gin.Context, name PathAPIKeyName)
// Promote a local API key to global (admin)
// (POST /admin/api-keys/{name}/promote)
PromoteAPIKey(c *gin.Context, name PathAPIKeyName)
// List all namespaces (admin)
// (GET /admin/namespaces)
ListNamespaces(c *gin.Context)
// List sandbox templates (admin)
// (GET /admin/sandbox-templates)
AdminListSandboxTemplates(c *gin.Context, params AdminListSandboxTemplatesParams)
// Create a sandbox template (admin)
// (POST /admin/sandbox-templates)
AdminCreateSandboxTemplate(c *gin.Context)
// Delete a sandbox template (admin)
// (DELETE /admin/sandbox-templates/{name})
AdminDeleteSandboxTemplate(c *gin.Context, name PathTemplateName)
// Update a sandbox template (admin)
// (PUT /admin/sandbox-templates/{name})
AdminUpdateSandboxTemplate(c *gin.Context, name PathTemplateName)
// Get cluster-wide sandbox statistics (admin)
// (GET /admin/statistics/sandboxes)
AdminGetSandboxStatistics(c *gin.Context)
// List all teams (admin)
// (GET /admin/teams)
ListTeams(c *gin.Context)
// List users in a team (admin)
// (GET /admin/teams/{team}/users)
ListUsersByTeam(c *gin.Context, team PathTeam)
// List your own API keys (tenant)
// (GET /api-keys)
SelfListAPIKeys(c *gin.Context)
// Create an API key for yourself (tenant)
// (POST /api-keys)
SelfCreateAPIKey(c *gin.Context)
// Delete one of your own API keys (tenant)
// (DELETE /api-keys/{name})
SelfDeleteAPIKey(c *gin.Context, name PathAPIKeyName)
// What is waiting on you, and what you have already allowed
// (GET /approvals)
ListApprovals(c *gin.Context)
// Withdraw a standing permission
// (DELETE /approvals/grants/{grantId})
RevokeApprovalGrant(c *gin.Context, grantId string)
// Where one approval request has got to
// (GET /approvals/{approvalId})
GetApproval(c *gin.Context, approvalId string)
// Approve or deny a pending request
// (POST /approvals/{approvalId}/decision)
DecideApproval(c *gin.Context, approvalId string)
// Get caller identity
// (GET /auth/whoami)
GetWhoAmI(c *gin.Context)
// List clusters visible to the gateway
// (GET /clusters)
ListClusters(c *gin.Context)
// List SandboxEnvs visible to the caller
// (GET /envs)
ListSandboxEnvs(c *gin.Context)
// Create a new SandboxEnv shell. Members are added through `POST /envs/{name}/sandboxpools`; the matching autoscaling group is created automatically per member and tuned through `PUT /envs/{name}/autoscaling/groups/{groupName}`.
// (POST /envs)
CreateSandboxEnv(c *gin.Context)
// Delete a SandboxEnv. All member SandboxPools are cascade-deleted via OwnerReferences.
// (DELETE /envs/{name})
DeleteSandboxEnv(c *gin.Context, name string)
// Get a SandboxEnv by name. Response includes the rendered envDocs Markdown.
// (GET /envs/{name})
GetSandboxEnv(c *gin.Context, name string)
// Replace the editable Env shell fields (overrides only). Members and autoscaling groups have dedicated endpoints.
// (PUT /envs/{name})
UpdateSandboxEnv(c *gin.Context, name string)
// Return the env's full autoscaling spec (enabled flag + groups).
// (GET /envs/{name}/autoscaling)
GetEnvAutoscaling(c *gin.Context, name string)
// List autoscaling groups on the env.
// (GET /envs/{name}/autoscaling/groups)
ListEnvAutoscalingGroups(c *gin.Context, name string)
// Remove an autoscaling group from the env.
// (DELETE /envs/{name}/autoscaling/groups/{groupName})
DeleteEnvAutoscalingGroup(c *gin.Context, name string, groupName string)
// Get one autoscaling group by name.
// (GET /envs/{name}/autoscaling/groups/{groupName})
GetEnvAutoscalingGroup(c *gin.Context, name string, groupName string)
// Patch one or more editable fields on an autoscaling group.
// (PUT /envs/{name}/autoscaling/groups/{groupName})
UpdateEnvAutoscalingGroup(c *gin.Context, name string, groupName string)
// List recent K8s Events for a SandboxEnv and its member SandboxPools, newest first.
// (GET /envs/{name}/events)
ListEnvEvents(c *gin.Context, name string, params ListEnvEventsParams)
// List member SandboxPools of an Env
// (GET /envs/{name}/sandboxpools)
ListEnvSandboxPools(c *gin.Context, name string)
// Add a member SandboxPool to an Env
// (POST /envs/{name}/sandboxpools)
CreateEnvSandboxPool(c *gin.Context, name string)
// Remove a member SandboxPool from an Env
// (DELETE /envs/{name}/sandboxpools/{poolName})
DeleteEnvSandboxPool(c *gin.Context, name string, poolName string)
// Get a member SandboxPool
// (GET /envs/{name}/sandboxpools/{poolName})
GetEnvSandboxPool(c *gin.Context, name string, poolName string)
// Update a member SandboxPool
// (PUT /envs/{name}/sandboxpools/{poolName})
UpdateEnvSandboxPool(c *gin.Context, name string, poolName string)
// Report optional features enabled on this cluster
// (GET /feature-gates)
GetFeatureGates(c *gin.Context)
// List InstanceType catalog entries
// (GET /instancetypes)
ListInstanceTypes(c *gin.Context)
// List quotas for current user
// (GET /quotas)
ListQuotas(c *gin.Context)
// List sandbox templates
// (GET /sandbox-templates)
ListSandboxTemplates(c *gin.Context)
// Get a sandbox template
// (GET /sandbox-templates/{name})
GetSandboxTemplate(c *gin.Context, name PathTemplateName)
// List sandboxes
// (GET /sandboxes)
ListSandboxes(c *gin.Context, params ListSandboxesParams)
// Create a sandbox
// (POST /sandboxes)
CreateSandbox(c *gin.Context)
// Delete a sandbox
// (DELETE /sandboxes/{sandboxId})
DeleteSandbox(c *gin.Context, sandboxId PathSandboxId)
// Get a sandbox
// (GET /sandboxes/{sandboxId})
GetSandbox(c *gin.Context, sandboxId PathSandboxId)
// Execute a command inside a sandbox
// (POST /sandboxes/{sandboxId}/exec)
ExecSandboxCommand(c *gin.Context, sandboxId PathSandboxId)
// Create a short-lived exec token for WebSocket terminal
// (POST /sandboxes/{sandboxId}/exec-token)
CreateSandboxExecToken(c *gin.Context, sandboxId PathSandboxId)
// Check if all runtime endpoints of a sandbox are ready
// (GET /sandboxes/{sandboxId}/is_ready)
IsSandboxReady(c *gin.Context, sandboxId PathSandboxId)
// Get sandbox logs
// (GET /sandboxes/{sandboxId}/logs)
GetSandboxLogs(c *gin.Context, sandboxId PathSandboxId, params GetSandboxLogsParams)
// Update sandbox idle timeout
// (PUT /sandboxes/{sandboxId}/timeout)
SetSandboxTimeout(c *gin.Context, sandboxId PathSandboxId)
// Get user-scoped sandbox statistics
// (GET /statistics/sandboxes)
GetUserSandboxStatistics(c *gin.Context)
// List mountable PersistentVolumeClaims
// (GET /volumes)
ListVolumes(c *gin.Context)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AdminCreateSandboxTemplate ¶
func (siw *ServerInterfaceWrapper) AdminCreateSandboxTemplate(c *gin.Context)
AdminCreateSandboxTemplate operation middleware
func (*ServerInterfaceWrapper) AdminDeleteSandboxTemplate ¶
func (siw *ServerInterfaceWrapper) AdminDeleteSandboxTemplate(c *gin.Context)
AdminDeleteSandboxTemplate operation middleware
func (*ServerInterfaceWrapper) AdminGetSandboxStatistics ¶
func (siw *ServerInterfaceWrapper) AdminGetSandboxStatistics(c *gin.Context)
AdminGetSandboxStatistics operation middleware
func (*ServerInterfaceWrapper) AdminListSandboxTemplates ¶ added in v0.0.2
func (siw *ServerInterfaceWrapper) AdminListSandboxTemplates(c *gin.Context)
AdminListSandboxTemplates operation middleware
func (*ServerInterfaceWrapper) AdminUpdateSandboxTemplate ¶
func (siw *ServerInterfaceWrapper) AdminUpdateSandboxTemplate(c *gin.Context)
AdminUpdateSandboxTemplate operation middleware
func (*ServerInterfaceWrapper) CreateAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateAPIKey(c *gin.Context)
CreateAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateEnvSandboxPool ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) CreateEnvSandboxPool(c *gin.Context)
CreateEnvSandboxPool operation middleware
func (*ServerInterfaceWrapper) CreateSandbox ¶
func (siw *ServerInterfaceWrapper) CreateSandbox(c *gin.Context)
CreateSandbox operation middleware
func (*ServerInterfaceWrapper) CreateSandboxEnv ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) CreateSandboxEnv(c *gin.Context)
CreateSandboxEnv operation middleware
func (*ServerInterfaceWrapper) CreateSandboxExecToken ¶
func (siw *ServerInterfaceWrapper) CreateSandboxExecToken(c *gin.Context)
CreateSandboxExecToken operation middleware
func (*ServerInterfaceWrapper) DecideApproval ¶ added in v0.0.11
func (siw *ServerInterfaceWrapper) DecideApproval(c *gin.Context)
DecideApproval operation middleware
func (*ServerInterfaceWrapper) DeleteAPIKey ¶
func (siw *ServerInterfaceWrapper) DeleteAPIKey(c *gin.Context)
DeleteAPIKey operation middleware
func (*ServerInterfaceWrapper) DeleteEnvAutoscalingGroup ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) DeleteEnvAutoscalingGroup(c *gin.Context)
DeleteEnvAutoscalingGroup operation middleware
func (*ServerInterfaceWrapper) DeleteEnvSandboxPool ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) DeleteEnvSandboxPool(c *gin.Context)
DeleteEnvSandboxPool operation middleware
func (*ServerInterfaceWrapper) DeleteSandbox ¶
func (siw *ServerInterfaceWrapper) DeleteSandbox(c *gin.Context)
DeleteSandbox operation middleware
func (*ServerInterfaceWrapper) DeleteSandboxEnv ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) DeleteSandboxEnv(c *gin.Context)
DeleteSandboxEnv operation middleware
func (*ServerInterfaceWrapper) ExecSandboxCommand ¶
func (siw *ServerInterfaceWrapper) ExecSandboxCommand(c *gin.Context)
ExecSandboxCommand operation middleware
func (*ServerInterfaceWrapper) GetApproval ¶ added in v0.0.11
func (siw *ServerInterfaceWrapper) GetApproval(c *gin.Context)
GetApproval operation middleware
func (*ServerInterfaceWrapper) GetEnvAutoscaling ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) GetEnvAutoscaling(c *gin.Context)
GetEnvAutoscaling operation middleware
func (*ServerInterfaceWrapper) GetEnvAutoscalingGroup ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) GetEnvAutoscalingGroup(c *gin.Context)
GetEnvAutoscalingGroup operation middleware
func (*ServerInterfaceWrapper) GetEnvSandboxPool ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) GetEnvSandboxPool(c *gin.Context)
GetEnvSandboxPool operation middleware
func (*ServerInterfaceWrapper) GetFeatureGates ¶
func (siw *ServerInterfaceWrapper) GetFeatureGates(c *gin.Context)
GetFeatureGates operation middleware
func (*ServerInterfaceWrapper) GetSandbox ¶
func (siw *ServerInterfaceWrapper) GetSandbox(c *gin.Context)
GetSandbox operation middleware
func (*ServerInterfaceWrapper) GetSandboxEnv ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) GetSandboxEnv(c *gin.Context)
GetSandboxEnv operation middleware
func (*ServerInterfaceWrapper) GetSandboxLogs ¶
func (siw *ServerInterfaceWrapper) GetSandboxLogs(c *gin.Context)
GetSandboxLogs operation middleware
func (*ServerInterfaceWrapper) GetSandboxTemplate ¶
func (siw *ServerInterfaceWrapper) GetSandboxTemplate(c *gin.Context)
GetSandboxTemplate operation middleware
func (*ServerInterfaceWrapper) GetUserSandboxStatistics ¶
func (siw *ServerInterfaceWrapper) GetUserSandboxStatistics(c *gin.Context)
GetUserSandboxStatistics operation middleware
func (*ServerInterfaceWrapper) GetWhoAmI ¶
func (siw *ServerInterfaceWrapper) GetWhoAmI(c *gin.Context)
GetWhoAmI operation middleware
func (*ServerInterfaceWrapper) IsSandboxReady ¶
func (siw *ServerInterfaceWrapper) IsSandboxReady(c *gin.Context)
IsSandboxReady operation middleware
func (*ServerInterfaceWrapper) ListAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListAPIKeys(c *gin.Context)
ListAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListApprovals ¶ added in v0.0.11
func (siw *ServerInterfaceWrapper) ListApprovals(c *gin.Context)
ListApprovals operation middleware
func (*ServerInterfaceWrapper) ListClusters ¶
func (siw *ServerInterfaceWrapper) ListClusters(c *gin.Context)
ListClusters operation middleware
func (*ServerInterfaceWrapper) ListEnvAutoscalingGroups ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) ListEnvAutoscalingGroups(c *gin.Context)
ListEnvAutoscalingGroups operation middleware
func (*ServerInterfaceWrapper) ListEnvEvents ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) ListEnvEvents(c *gin.Context)
ListEnvEvents operation middleware
func (*ServerInterfaceWrapper) ListEnvSandboxPools ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) ListEnvSandboxPools(c *gin.Context)
ListEnvSandboxPools operation middleware
func (*ServerInterfaceWrapper) ListInstanceTypes ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) ListInstanceTypes(c *gin.Context)
ListInstanceTypes operation middleware
func (*ServerInterfaceWrapper) ListNamespaces ¶
func (siw *ServerInterfaceWrapper) ListNamespaces(c *gin.Context)
ListNamespaces operation middleware
func (*ServerInterfaceWrapper) ListQuotas ¶
func (siw *ServerInterfaceWrapper) ListQuotas(c *gin.Context)
ListQuotas operation middleware
func (*ServerInterfaceWrapper) ListSandboxEnvs ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) ListSandboxEnvs(c *gin.Context)
ListSandboxEnvs operation middleware
func (*ServerInterfaceWrapper) ListSandboxTemplates ¶
func (siw *ServerInterfaceWrapper) ListSandboxTemplates(c *gin.Context)
ListSandboxTemplates operation middleware
func (*ServerInterfaceWrapper) ListSandboxes ¶
func (siw *ServerInterfaceWrapper) ListSandboxes(c *gin.Context)
ListSandboxes operation middleware
func (*ServerInterfaceWrapper) ListTeams ¶
func (siw *ServerInterfaceWrapper) ListTeams(c *gin.Context)
ListTeams operation middleware
func (*ServerInterfaceWrapper) ListUsersByTeam ¶
func (siw *ServerInterfaceWrapper) ListUsersByTeam(c *gin.Context)
ListUsersByTeam operation middleware
func (*ServerInterfaceWrapper) ListVolumes ¶ added in v0.0.10
func (siw *ServerInterfaceWrapper) ListVolumes(c *gin.Context)
ListVolumes operation middleware
func (*ServerInterfaceWrapper) PromoteAPIKey ¶
func (siw *ServerInterfaceWrapper) PromoteAPIKey(c *gin.Context)
PromoteAPIKey operation middleware
func (*ServerInterfaceWrapper) RevokeApprovalGrant ¶ added in v0.0.11
func (siw *ServerInterfaceWrapper) RevokeApprovalGrant(c *gin.Context)
RevokeApprovalGrant operation middleware
func (*ServerInterfaceWrapper) SelfCreateAPIKey ¶
func (siw *ServerInterfaceWrapper) SelfCreateAPIKey(c *gin.Context)
SelfCreateAPIKey operation middleware
func (*ServerInterfaceWrapper) SelfDeleteAPIKey ¶
func (siw *ServerInterfaceWrapper) SelfDeleteAPIKey(c *gin.Context)
SelfDeleteAPIKey operation middleware
func (*ServerInterfaceWrapper) SelfListAPIKeys ¶
func (siw *ServerInterfaceWrapper) SelfListAPIKeys(c *gin.Context)
SelfListAPIKeys operation middleware
func (*ServerInterfaceWrapper) SetSandboxTimeout ¶
func (siw *ServerInterfaceWrapper) SetSandboxTimeout(c *gin.Context)
SetSandboxTimeout operation middleware
func (*ServerInterfaceWrapper) UpdateEnvAutoscalingGroup ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) UpdateEnvAutoscalingGroup(c *gin.Context)
UpdateEnvAutoscalingGroup operation middleware
func (*ServerInterfaceWrapper) UpdateEnvSandboxPool ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) UpdateEnvSandboxPool(c *gin.Context)
UpdateEnvSandboxPool operation middleware
func (*ServerInterfaceWrapper) UpdateSandboxEnv ¶ added in v0.0.5
func (siw *ServerInterfaceWrapper) UpdateSandboxEnv(c *gin.Context)
UpdateSandboxEnv operation middleware
type SetSandboxTimeout204Response ¶
type SetSandboxTimeout204Response struct {
}
func (SetSandboxTimeout204Response) VisitSetSandboxTimeoutResponse ¶
func (response SetSandboxTimeout204Response) VisitSetSandboxTimeoutResponse(w http.ResponseWriter) error
type SetSandboxTimeout401JSONResponse ¶
type SetSandboxTimeout401JSONResponse ErrorResponse
func (SetSandboxTimeout401JSONResponse) VisitSetSandboxTimeoutResponse ¶
func (response SetSandboxTimeout401JSONResponse) VisitSetSandboxTimeoutResponse(w http.ResponseWriter) error
type SetSandboxTimeout404JSONResponse ¶
type SetSandboxTimeout404JSONResponse ErrorResponse
func (SetSandboxTimeout404JSONResponse) VisitSetSandboxTimeoutResponse ¶
func (response SetSandboxTimeout404JSONResponse) VisitSetSandboxTimeoutResponse(w http.ResponseWriter) error
type SetSandboxTimeout500JSONResponse ¶
type SetSandboxTimeout500JSONResponse ErrorResponse
func (SetSandboxTimeout500JSONResponse) VisitSetSandboxTimeoutResponse ¶
func (response SetSandboxTimeout500JSONResponse) VisitSetSandboxTimeoutResponse(w http.ResponseWriter) error
type SetSandboxTimeoutJSONRequestBody ¶
type SetSandboxTimeoutJSONRequestBody = SetSandboxTimeoutRequest
SetSandboxTimeoutJSONRequestBody defines body for SetSandboxTimeout for application/json ContentType.
type SetSandboxTimeoutRequest ¶
type SetSandboxTimeoutRequest struct {
// Timeout New idle timeout duration. Duration string, e.g. '30m', '2h'. Use '0' to disable the timeout.
Timeout string `json:"timeout"`
}
SetSandboxTimeoutRequest defines model for SetSandboxTimeoutRequest.
type SetSandboxTimeoutRequestObject ¶
type SetSandboxTimeoutRequestObject struct {
SandboxId PathSandboxId `json:"sandboxId"`
Body *SetSandboxTimeoutJSONRequestBody
}
type SetSandboxTimeoutResponse ¶
type SetSandboxTimeoutResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseSetSandboxTimeoutResponse ¶
func ParseSetSandboxTimeoutResponse(rsp *http.Response) (*SetSandboxTimeoutResponse, error)
ParseSetSandboxTimeoutResponse parses an HTTP response from a SetSandboxTimeoutWithResponse call
func (SetSandboxTimeoutResponse) Status ¶
func (r SetSandboxTimeoutResponse) Status() string
Status returns HTTPResponse.Status
func (SetSandboxTimeoutResponse) StatusCode ¶
func (r SetSandboxTimeoutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetSandboxTimeoutResponseObject ¶
type SetSandboxTimeoutResponseObject interface {
VisitSetSandboxTimeoutResponse(w http.ResponseWriter) error
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictgin.StrictGinHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// List API keys (admin)
// (GET /admin/api-keys)
ListAPIKeys(ctx context.Context, request ListAPIKeysRequestObject) (ListAPIKeysResponseObject, error)
// Create an API key (admin)
// (POST /admin/api-keys)
CreateAPIKey(ctx context.Context, request CreateAPIKeyRequestObject) (CreateAPIKeyResponseObject, error)
// Delete an API key (admin)
// (DELETE /admin/api-keys/{name})
DeleteAPIKey(ctx context.Context, request DeleteAPIKeyRequestObject) (DeleteAPIKeyResponseObject, error)
// Promote a local API key to global (admin)
// (POST /admin/api-keys/{name}/promote)
PromoteAPIKey(ctx context.Context, request PromoteAPIKeyRequestObject) (PromoteAPIKeyResponseObject, error)
// List all namespaces (admin)
// (GET /admin/namespaces)
ListNamespaces(ctx context.Context, request ListNamespacesRequestObject) (ListNamespacesResponseObject, error)
// List sandbox templates (admin)
// (GET /admin/sandbox-templates)
AdminListSandboxTemplates(ctx context.Context, request AdminListSandboxTemplatesRequestObject) (AdminListSandboxTemplatesResponseObject, error)
// Create a sandbox template (admin)
// (POST /admin/sandbox-templates)
AdminCreateSandboxTemplate(ctx context.Context, request AdminCreateSandboxTemplateRequestObject) (AdminCreateSandboxTemplateResponseObject, error)
// Delete a sandbox template (admin)
// (DELETE /admin/sandbox-templates/{name})
AdminDeleteSandboxTemplate(ctx context.Context, request AdminDeleteSandboxTemplateRequestObject) (AdminDeleteSandboxTemplateResponseObject, error)
// Update a sandbox template (admin)
// (PUT /admin/sandbox-templates/{name})
AdminUpdateSandboxTemplate(ctx context.Context, request AdminUpdateSandboxTemplateRequestObject) (AdminUpdateSandboxTemplateResponseObject, error)
// Get cluster-wide sandbox statistics (admin)
// (GET /admin/statistics/sandboxes)
AdminGetSandboxStatistics(ctx context.Context, request AdminGetSandboxStatisticsRequestObject) (AdminGetSandboxStatisticsResponseObject, error)
// List all teams (admin)
// (GET /admin/teams)
ListTeams(ctx context.Context, request ListTeamsRequestObject) (ListTeamsResponseObject, error)
// List users in a team (admin)
// (GET /admin/teams/{team}/users)
ListUsersByTeam(ctx context.Context, request ListUsersByTeamRequestObject) (ListUsersByTeamResponseObject, error)
// List your own API keys (tenant)
// (GET /api-keys)
SelfListAPIKeys(ctx context.Context, request SelfListAPIKeysRequestObject) (SelfListAPIKeysResponseObject, error)
// Create an API key for yourself (tenant)
// (POST /api-keys)
SelfCreateAPIKey(ctx context.Context, request SelfCreateAPIKeyRequestObject) (SelfCreateAPIKeyResponseObject, error)
// Delete one of your own API keys (tenant)
// (DELETE /api-keys/{name})
SelfDeleteAPIKey(ctx context.Context, request SelfDeleteAPIKeyRequestObject) (SelfDeleteAPIKeyResponseObject, error)
// What is waiting on you, and what you have already allowed
// (GET /approvals)
ListApprovals(ctx context.Context, request ListApprovalsRequestObject) (ListApprovalsResponseObject, error)
// Withdraw a standing permission
// (DELETE /approvals/grants/{grantId})
RevokeApprovalGrant(ctx context.Context, request RevokeApprovalGrantRequestObject) (RevokeApprovalGrantResponseObject, error)
// Where one approval request has got to
// (GET /approvals/{approvalId})
GetApproval(ctx context.Context, request GetApprovalRequestObject) (GetApprovalResponseObject, error)
// Approve or deny a pending request
// (POST /approvals/{approvalId}/decision)
DecideApproval(ctx context.Context, request DecideApprovalRequestObject) (DecideApprovalResponseObject, error)
// Get caller identity
// (GET /auth/whoami)
GetWhoAmI(ctx context.Context, request GetWhoAmIRequestObject) (GetWhoAmIResponseObject, error)
// List clusters visible to the gateway
// (GET /clusters)
ListClusters(ctx context.Context, request ListClustersRequestObject) (ListClustersResponseObject, error)
// List SandboxEnvs visible to the caller
// (GET /envs)
ListSandboxEnvs(ctx context.Context, request ListSandboxEnvsRequestObject) (ListSandboxEnvsResponseObject, error)
// Create a new SandboxEnv shell. Members are added through `POST /envs/{name}/sandboxpools`; the matching autoscaling group is created automatically per member and tuned through `PUT /envs/{name}/autoscaling/groups/{groupName}`.
// (POST /envs)
CreateSandboxEnv(ctx context.Context, request CreateSandboxEnvRequestObject) (CreateSandboxEnvResponseObject, error)
// Delete a SandboxEnv. All member SandboxPools are cascade-deleted via OwnerReferences.
// (DELETE /envs/{name})
DeleteSandboxEnv(ctx context.Context, request DeleteSandboxEnvRequestObject) (DeleteSandboxEnvResponseObject, error)
// Get a SandboxEnv by name. Response includes the rendered envDocs Markdown.
// (GET /envs/{name})
GetSandboxEnv(ctx context.Context, request GetSandboxEnvRequestObject) (GetSandboxEnvResponseObject, error)
// Replace the editable Env shell fields (overrides only). Members and autoscaling groups have dedicated endpoints.
// (PUT /envs/{name})
UpdateSandboxEnv(ctx context.Context, request UpdateSandboxEnvRequestObject) (UpdateSandboxEnvResponseObject, error)
// Return the env's full autoscaling spec (enabled flag + groups).
// (GET /envs/{name}/autoscaling)
GetEnvAutoscaling(ctx context.Context, request GetEnvAutoscalingRequestObject) (GetEnvAutoscalingResponseObject, error)
// List autoscaling groups on the env.
// (GET /envs/{name}/autoscaling/groups)
ListEnvAutoscalingGroups(ctx context.Context, request ListEnvAutoscalingGroupsRequestObject) (ListEnvAutoscalingGroupsResponseObject, error)
// Remove an autoscaling group from the env.
// (DELETE /envs/{name}/autoscaling/groups/{groupName})
DeleteEnvAutoscalingGroup(ctx context.Context, request DeleteEnvAutoscalingGroupRequestObject) (DeleteEnvAutoscalingGroupResponseObject, error)
// Get one autoscaling group by name.
// (GET /envs/{name}/autoscaling/groups/{groupName})
GetEnvAutoscalingGroup(ctx context.Context, request GetEnvAutoscalingGroupRequestObject) (GetEnvAutoscalingGroupResponseObject, error)
// Patch one or more editable fields on an autoscaling group.
// (PUT /envs/{name}/autoscaling/groups/{groupName})
UpdateEnvAutoscalingGroup(ctx context.Context, request UpdateEnvAutoscalingGroupRequestObject) (UpdateEnvAutoscalingGroupResponseObject, error)
// List recent K8s Events for a SandboxEnv and its member SandboxPools, newest first.
// (GET /envs/{name}/events)
ListEnvEvents(ctx context.Context, request ListEnvEventsRequestObject) (ListEnvEventsResponseObject, error)
// List member SandboxPools of an Env
// (GET /envs/{name}/sandboxpools)
ListEnvSandboxPools(ctx context.Context, request ListEnvSandboxPoolsRequestObject) (ListEnvSandboxPoolsResponseObject, error)
// Add a member SandboxPool to an Env
// (POST /envs/{name}/sandboxpools)
CreateEnvSandboxPool(ctx context.Context, request CreateEnvSandboxPoolRequestObject) (CreateEnvSandboxPoolResponseObject, error)
// Remove a member SandboxPool from an Env
// (DELETE /envs/{name}/sandboxpools/{poolName})
DeleteEnvSandboxPool(ctx context.Context, request DeleteEnvSandboxPoolRequestObject) (DeleteEnvSandboxPoolResponseObject, error)
// Get a member SandboxPool
// (GET /envs/{name}/sandboxpools/{poolName})
GetEnvSandboxPool(ctx context.Context, request GetEnvSandboxPoolRequestObject) (GetEnvSandboxPoolResponseObject, error)
// Update a member SandboxPool
// (PUT /envs/{name}/sandboxpools/{poolName})
UpdateEnvSandboxPool(ctx context.Context, request UpdateEnvSandboxPoolRequestObject) (UpdateEnvSandboxPoolResponseObject, error)
// Report optional features enabled on this cluster
// (GET /feature-gates)
GetFeatureGates(ctx context.Context, request GetFeatureGatesRequestObject) (GetFeatureGatesResponseObject, error)
// List InstanceType catalog entries
// (GET /instancetypes)
ListInstanceTypes(ctx context.Context, request ListInstanceTypesRequestObject) (ListInstanceTypesResponseObject, error)
// List quotas for current user
// (GET /quotas)
ListQuotas(ctx context.Context, request ListQuotasRequestObject) (ListQuotasResponseObject, error)
// List sandbox templates
// (GET /sandbox-templates)
ListSandboxTemplates(ctx context.Context, request ListSandboxTemplatesRequestObject) (ListSandboxTemplatesResponseObject, error)
// Get a sandbox template
// (GET /sandbox-templates/{name})
GetSandboxTemplate(ctx context.Context, request GetSandboxTemplateRequestObject) (GetSandboxTemplateResponseObject, error)
// List sandboxes
// (GET /sandboxes)
ListSandboxes(ctx context.Context, request ListSandboxesRequestObject) (ListSandboxesResponseObject, error)
// Create a sandbox
// (POST /sandboxes)
CreateSandbox(ctx context.Context, request CreateSandboxRequestObject) (CreateSandboxResponseObject, error)
// Delete a sandbox
// (DELETE /sandboxes/{sandboxId})
DeleteSandbox(ctx context.Context, request DeleteSandboxRequestObject) (DeleteSandboxResponseObject, error)
// Get a sandbox
// (GET /sandboxes/{sandboxId})
GetSandbox(ctx context.Context, request GetSandboxRequestObject) (GetSandboxResponseObject, error)
// Execute a command inside a sandbox
// (POST /sandboxes/{sandboxId}/exec)
ExecSandboxCommand(ctx context.Context, request ExecSandboxCommandRequestObject) (ExecSandboxCommandResponseObject, error)
// Create a short-lived exec token for WebSocket terminal
// (POST /sandboxes/{sandboxId}/exec-token)
CreateSandboxExecToken(ctx context.Context, request CreateSandboxExecTokenRequestObject) (CreateSandboxExecTokenResponseObject, error)
// Check if all runtime endpoints of a sandbox are ready
// (GET /sandboxes/{sandboxId}/is_ready)
IsSandboxReady(ctx context.Context, request IsSandboxReadyRequestObject) (IsSandboxReadyResponseObject, error)
// Get sandbox logs
// (GET /sandboxes/{sandboxId}/logs)
GetSandboxLogs(ctx context.Context, request GetSandboxLogsRequestObject) (GetSandboxLogsResponseObject, error)
// Update sandbox idle timeout
// (PUT /sandboxes/{sandboxId}/timeout)
SetSandboxTimeout(ctx context.Context, request SetSandboxTimeoutRequestObject) (SetSandboxTimeoutResponseObject, error)
// Get user-scoped sandbox statistics
// (GET /statistics/sandboxes)
GetUserSandboxStatistics(ctx context.Context, request GetUserSandboxStatisticsRequestObject) (GetUserSandboxStatisticsResponseObject, error)
// List mountable PersistentVolumeClaims
// (GET /volumes)
ListVolumes(ctx context.Context, request ListVolumesRequestObject) (ListVolumesResponseObject, error)
}
StrictServerInterface represents all server handlers.
type StringMap ¶ added in v0.0.11
StringMap Free-form string key/value metadata (labels or annotations).
type TeamsResult ¶
type TeamsResult struct {
// Items List of team names.
Items []string `json:"items"`
// Total Total number of teams.
Total int `json:"total"`
}
TeamsResult defines model for TeamsResult.
type UpdateEnvAutoscalingGroup200JSONResponse ¶ added in v0.0.5
type UpdateEnvAutoscalingGroup200JSONResponse EnvAutoscalingGroupEnvelope
func (UpdateEnvAutoscalingGroup200JSONResponse) VisitUpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response UpdateEnvAutoscalingGroup200JSONResponse) VisitUpdateEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type UpdateEnvAutoscalingGroup400JSONResponse ¶ added in v0.0.5
type UpdateEnvAutoscalingGroup400JSONResponse ErrorResponse
func (UpdateEnvAutoscalingGroup400JSONResponse) VisitUpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response UpdateEnvAutoscalingGroup400JSONResponse) VisitUpdateEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type UpdateEnvAutoscalingGroup401JSONResponse ¶ added in v0.0.5
type UpdateEnvAutoscalingGroup401JSONResponse ErrorResponse
func (UpdateEnvAutoscalingGroup401JSONResponse) VisitUpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response UpdateEnvAutoscalingGroup401JSONResponse) VisitUpdateEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type UpdateEnvAutoscalingGroup404JSONResponse ¶ added in v0.0.5
type UpdateEnvAutoscalingGroup404JSONResponse ErrorResponse
func (UpdateEnvAutoscalingGroup404JSONResponse) VisitUpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response UpdateEnvAutoscalingGroup404JSONResponse) VisitUpdateEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type UpdateEnvAutoscalingGroup500JSONResponse ¶ added in v0.0.5
type UpdateEnvAutoscalingGroup500JSONResponse ErrorResponse
func (UpdateEnvAutoscalingGroup500JSONResponse) VisitUpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
func (response UpdateEnvAutoscalingGroup500JSONResponse) VisitUpdateEnvAutoscalingGroupResponse(w http.ResponseWriter) error
type UpdateEnvAutoscalingGroupJSONRequestBody ¶ added in v0.0.5
type UpdateEnvAutoscalingGroupJSONRequestBody = UpdateEnvAutoscalingGroupRequest
UpdateEnvAutoscalingGroupJSONRequestBody defines body for UpdateEnvAutoscalingGroup for application/json ContentType.
type UpdateEnvAutoscalingGroupRequest ¶ added in v0.0.5
type UpdateEnvAutoscalingGroupRequest struct {
// Enabled Whether the autoscaler acts on this group.
Enabled *bool `json:"enabled,omitempty"`
MaxReplicas *int32 `json:"maxReplicas,omitempty"`
MinReplicas *int32 `json:"minReplicas,omitempty"`
// ScaleDownPolicy Scale-down timing for a scaling group. How many replicas each event removes comes from scaleUpPolicy.mode — scale-down mirrors the scale-up mode so a pool sheds capacity on the same scale it acquired it.
ScaleDownPolicy *PoolScaleDownPolicy `json:"scaleDownPolicy,omitempty"`
// ScaleUpPolicy Scale-up behaviour for a scaling group (mode + cooldown + idle threshold + saturation cooldown).
ScaleUpPolicy *PoolScaleUpPolicy `json:"scaleUpPolicy,omitempty"`
}
UpdateEnvAutoscalingGroupRequest Desired state of one autoscaling group. This is a PUT and it means it: a field left out is one the caller wants REMOVED. That is the only way "take the ceiling off" can be expressed — while an omitted field meant "leave unchanged" there was no request that could clear minReplicas, maxReplicas or a policy, and the form's empty box reported success without doing anything.
type UpdateEnvAutoscalingGroupRequestObject ¶ added in v0.0.5
type UpdateEnvAutoscalingGroupRequestObject struct {
Name string `json:"name"`
GroupName string `json:"groupName"`
Body *UpdateEnvAutoscalingGroupJSONRequestBody
}
type UpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
type UpdateEnvAutoscalingGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *EnvAutoscalingGroupEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseUpdateEnvAutoscalingGroupResponse ¶ added in v0.0.5
func ParseUpdateEnvAutoscalingGroupResponse(rsp *http.Response) (*UpdateEnvAutoscalingGroupResponse, error)
ParseUpdateEnvAutoscalingGroupResponse parses an HTTP response from a UpdateEnvAutoscalingGroupWithResponse call
func (UpdateEnvAutoscalingGroupResponse) Status ¶ added in v0.0.5
func (r UpdateEnvAutoscalingGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEnvAutoscalingGroupResponse) StatusCode ¶ added in v0.0.5
func (r UpdateEnvAutoscalingGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEnvAutoscalingGroupResponseObject ¶ added in v0.0.5
type UpdateEnvAutoscalingGroupResponseObject interface {
VisitUpdateEnvAutoscalingGroupResponse(w http.ResponseWriter) error
}
type UpdateEnvSandboxPool200JSONResponse ¶ added in v0.0.5
type UpdateEnvSandboxPool200JSONResponse SandboxPoolEnvelope
func (UpdateEnvSandboxPool200JSONResponse) VisitUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response UpdateEnvSandboxPool200JSONResponse) VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
type UpdateEnvSandboxPool400JSONResponse ¶ added in v0.0.5
type UpdateEnvSandboxPool400JSONResponse ErrorResponse
func (UpdateEnvSandboxPool400JSONResponse) VisitUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response UpdateEnvSandboxPool400JSONResponse) VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
type UpdateEnvSandboxPool401JSONResponse ¶ added in v0.0.5
type UpdateEnvSandboxPool401JSONResponse ErrorResponse
func (UpdateEnvSandboxPool401JSONResponse) VisitUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response UpdateEnvSandboxPool401JSONResponse) VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
type UpdateEnvSandboxPool404JSONResponse ¶ added in v0.0.5
type UpdateEnvSandboxPool404JSONResponse ErrorResponse
func (UpdateEnvSandboxPool404JSONResponse) VisitUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response UpdateEnvSandboxPool404JSONResponse) VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
type UpdateEnvSandboxPool500JSONResponse ¶ added in v0.0.5
type UpdateEnvSandboxPool500JSONResponse ErrorResponse
func (UpdateEnvSandboxPool500JSONResponse) VisitUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response UpdateEnvSandboxPool500JSONResponse) VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
type UpdateEnvSandboxPool503JSONResponse ¶ added in v0.0.5
type UpdateEnvSandboxPool503JSONResponse ErrorResponse
func (UpdateEnvSandboxPool503JSONResponse) VisitUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func (response UpdateEnvSandboxPool503JSONResponse) VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
type UpdateEnvSandboxPoolJSONRequestBody ¶ added in v0.0.5
type UpdateEnvSandboxPoolJSONRequestBody = UpdateEnvSandboxPoolRequest
UpdateEnvSandboxPoolJSONRequestBody defines body for UpdateEnvSandboxPool for application/json ContentType.
type UpdateEnvSandboxPoolRequest ¶ added in v0.0.5
type UpdateEnvSandboxPoolRequest = UpsertSandboxPoolRequest
UpdateEnvSandboxPoolRequest Add a member SandboxPool to an Env. The server derives:
- `name` = "{envName}-{resourceKey}[-{quotaShort}]"
- `scalingGroup` = `resourceKey` (e.g. "2c8Gi")
where `resourceKey` is `instancetype.DeriveResourceKey(effective resources)` and `quotaShort` (when a quota label is supplied) is `quotaProvider.DeriveShortName(quotaID)`. Members in the same `scalingGroup` share an autoscaling policy.
WHICH OF THE SHAPES BELOW IS ACCEPTED IS THE ENV'S TO SAY, not the caller's — read `poolSizing` off the Env this Pool joins (Template detail and Env detail both carry it; `abx envs <name>` prints it).
Billed Env (`poolSizing: billed`) — the Template is billed, so the Pool must name what it spends:
- `instanceType` (+ optional `multiplier`) alone → the Pod is sized to the full `instanceType × multiplier` envelope (default `multiplier` = 1).
- `instanceType` (+ `multiplier`) AND `inlineResources` together → `instanceType × multiplier` is the reservation/billing envelope, while `inlineResources` is the actual (possibly rounded-down) Pod request. Every dimension of `inlineResources` must be ≤ the envelope (round down allowed, round up rejected with 400); the reservation still charges quota for the whole instance.
- `labels` must carry `quota.scitix.ai/url`.
Free-form Env (`poolSizing: free-form`) — the Template is one the deployment does not bill, so the Pool is sized directly:
- `inlineResources` alone → explicit per-Pool resource requests/limits.
- `instanceType`, `multiplier` and the quota label are REJECTED (400): an instance type buys an instance nobody reserved, and a quota label on a Pool that is never submitted for reservation is a claim the server cannot honour.
Unmanaged Env (`poolSizing: either`) — this deployment states no rule, so both shapes are accepted and the caller picks. Every deployment behaved this way before the rule existed.
Under the two managed values there is no per-Pool choice: the shape follows from the Env, so two Pools of one Env are always sized the same way. `scalingGroup` / pool name are derived from the effective Pod request (the rounded-down `inlineResources` when supplied, else the full envelope), so the name reflects the Pod's real size and Pools downsized differently land in distinct scaling groups.
This is also what an update takes, and what `GET` returns as `editable`: one body for create, update and export, so a client edits what the API handed it rather than translating between two subsets that drift.
The fields marked `x-immutable` describe the Pool's SHAPE and are fixed at create. An update must carry them back unchanged — omitting one or changing one is a 400 that names the value in force, because a body that loses the instance type is a caller bug, not a request for a smaller machine.
type UpdateEnvSandboxPoolRequestObject ¶ added in v0.0.5
type UpdateEnvSandboxPoolRequestObject struct {
Name string `json:"name"`
PoolName string `json:"poolName"`
Body *UpdateEnvSandboxPoolJSONRequestBody
}
type UpdateEnvSandboxPoolResponse ¶ added in v0.0.5
type UpdateEnvSandboxPoolResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxPoolEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseUpdateEnvSandboxPoolResponse ¶ added in v0.0.5
func ParseUpdateEnvSandboxPoolResponse(rsp *http.Response) (*UpdateEnvSandboxPoolResponse, error)
ParseUpdateEnvSandboxPoolResponse parses an HTTP response from a UpdateEnvSandboxPoolWithResponse call
func (UpdateEnvSandboxPoolResponse) Status ¶ added in v0.0.5
func (r UpdateEnvSandboxPoolResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEnvSandboxPoolResponse) StatusCode ¶ added in v0.0.5
func (r UpdateEnvSandboxPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEnvSandboxPoolResponseObject ¶ added in v0.0.5
type UpdateEnvSandboxPoolResponseObject interface {
VisitUpdateEnvSandboxPoolResponse(w http.ResponseWriter) error
}
type UpdateSandboxEnv200JSONResponse ¶ added in v0.0.5
type UpdateSandboxEnv200JSONResponse SandboxEnvEnvelope
func (UpdateSandboxEnv200JSONResponse) VisitUpdateSandboxEnvResponse ¶ added in v0.0.5
func (response UpdateSandboxEnv200JSONResponse) VisitUpdateSandboxEnvResponse(w http.ResponseWriter) error
type UpdateSandboxEnv400JSONResponse ¶ added in v0.0.5
type UpdateSandboxEnv400JSONResponse ErrorResponse
func (UpdateSandboxEnv400JSONResponse) VisitUpdateSandboxEnvResponse ¶ added in v0.0.5
func (response UpdateSandboxEnv400JSONResponse) VisitUpdateSandboxEnvResponse(w http.ResponseWriter) error
type UpdateSandboxEnv401JSONResponse ¶ added in v0.0.5
type UpdateSandboxEnv401JSONResponse ErrorResponse
func (UpdateSandboxEnv401JSONResponse) VisitUpdateSandboxEnvResponse ¶ added in v0.0.5
func (response UpdateSandboxEnv401JSONResponse) VisitUpdateSandboxEnvResponse(w http.ResponseWriter) error
type UpdateSandboxEnv404JSONResponse ¶ added in v0.0.5
type UpdateSandboxEnv404JSONResponse ErrorResponse
func (UpdateSandboxEnv404JSONResponse) VisitUpdateSandboxEnvResponse ¶ added in v0.0.5
func (response UpdateSandboxEnv404JSONResponse) VisitUpdateSandboxEnvResponse(w http.ResponseWriter) error
type UpdateSandboxEnv500JSONResponse ¶ added in v0.0.5
type UpdateSandboxEnv500JSONResponse ErrorResponse
func (UpdateSandboxEnv500JSONResponse) VisitUpdateSandboxEnvResponse ¶ added in v0.0.5
func (response UpdateSandboxEnv500JSONResponse) VisitUpdateSandboxEnvResponse(w http.ResponseWriter) error
type UpdateSandboxEnvJSONRequestBody ¶ added in v0.0.5
type UpdateSandboxEnvJSONRequestBody = UpdateSandboxEnvRequest
UpdateSandboxEnvJSONRequestBody defines body for UpdateSandboxEnv for application/json ContentType.
type UpdateSandboxEnvRequest ¶ added in v0.0.5
type UpdateSandboxEnvRequest = UpsertSandboxEnvRequest
UpdateSandboxEnvRequest What a client may set on an Env — the SAME body for create and update, and the body `GET /envs/{name}` returns as `editable`.
One shape rather than two subsets, because two subsets drift: while create accepted `mode` and update did not, a person editing an Env had no way to send back what the API had just handed them, and the file a client exported from a read was not a file a write accepted.
Fields marked `x-immutable` are fixed at create. An update must carry them UNCHANGED: leaving one out, or sending a different value, is a 400 that names the value in force rather than a silent ignore — a body that drops the template is far more likely to be a bug in the caller than a request to have no template.
type UpdateSandboxEnvRequestObject ¶ added in v0.0.5
type UpdateSandboxEnvRequestObject struct {
Name string `json:"name"`
Body *UpdateSandboxEnvJSONRequestBody
}
type UpdateSandboxEnvResponse ¶ added in v0.0.5
type UpdateSandboxEnvResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxEnvEnvelope
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseUpdateSandboxEnvResponse ¶ added in v0.0.5
func ParseUpdateSandboxEnvResponse(rsp *http.Response) (*UpdateSandboxEnvResponse, error)
ParseUpdateSandboxEnvResponse parses an HTTP response from a UpdateSandboxEnvWithResponse call
func (UpdateSandboxEnvResponse) Status ¶ added in v0.0.5
func (r UpdateSandboxEnvResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSandboxEnvResponse) StatusCode ¶ added in v0.0.5
func (r UpdateSandboxEnvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSandboxEnvResponseObject ¶ added in v0.0.5
type UpdateSandboxEnvResponseObject interface {
VisitUpdateSandboxEnvResponse(w http.ResponseWriter) error
}
type UpsertSandboxEnvRequest ¶ added in v0.0.11
type UpsertSandboxEnvRequest struct {
// Annotations Annotations stamped onto the Env's objects.
Annotations *StringMap `json:"annotations,omitempty"`
// Labels Metadata stamped onto the Env's objects. Use for plugin-driven metadata such as quota.scitix.ai/url (parsed by the server to derive the pool-name suffix).
Labels *StringMap `json:"labels,omitempty"`
// Mode WarmPool keeps idle Pods ready to claim. OnDemandJob creates a Pod per sandbox and tears it down after, trading start latency for holding no capacity between runs. Fixed after create.
Mode *UpsertSandboxEnvRequestMode `json:"mode,omitempty"`
// Name The Env this file is about. `create` requires it; `update` takes the name from the address and refuses a file whose `name` says something else. It is part of the write body so that the file a create wrote is the file an update takes — one shape, sent to one address. RFC 1123 DNS label, capped at 24 chars so derived names (PoolName = EnvName + ResourceKey + QuotaShort, PodName = PoolName + UUID) stay under the 63-char label/DNS limit.
Name *SandboxEnvName `json:"name,omitempty"`
// Overrides SandboxTemplate fields this Env replaces uniformly for every member Pool. The Env represents a single class of sandbox runtime, so image, image policy, default timeouts and image-pull credentials are expected to be shared; per-Pool variation lives on each EnvClusterMember.
Overrides *EnvOverrides `json:"overrides,omitempty"`
// TemplateRef Which SandboxTemplate every member Pool is rendered from. Pin a version to hold the Env still across Template edits; omit it to follow the Template. Fixed after create.
TemplateRef SandboxEnvTemplateRef `json:"templateRef"`
}
UpsertSandboxEnvRequest What a client may set on an Env — the SAME body for create and update, and the body `GET /envs/{name}` returns as `editable`.
One shape rather than two subsets, because two subsets drift: while create accepted `mode` and update did not, a person editing an Env had no way to send back what the API had just handed them, and the file a client exported from a read was not a file a write accepted.
Fields marked `x-immutable` are fixed at create. An update must carry them UNCHANGED: leaving one out, or sending a different value, is a 400 that names the value in force rather than a silent ignore — a body that drops the template is far more likely to be a bug in the caller than a request to have no template.
type UpsertSandboxEnvRequestMode ¶ added in v0.0.11
type UpsertSandboxEnvRequestMode string
UpsertSandboxEnvRequestMode WarmPool keeps idle Pods ready to claim. OnDemandJob creates a Pod per sandbox and tears it down after, trading start latency for holding no capacity between runs. Fixed after create.
const ( UpsertSandboxEnvRequestModeOnDemandJob UpsertSandboxEnvRequestMode = "OnDemandJob" UpsertSandboxEnvRequestModeWarmPool UpsertSandboxEnvRequestMode = "WarmPool" )
Defines values for UpsertSandboxEnvRequestMode.
func (UpsertSandboxEnvRequestMode) Valid ¶ added in v0.0.11
func (e UpsertSandboxEnvRequestMode) Valid() bool
Valid indicates whether the value is a known member of the UpsertSandboxEnvRequestMode enum.
type UpsertSandboxPoolRequest ¶ added in v0.0.11
type UpsertSandboxPoolRequest struct {
// Annotations Annotations stamped onto this member's SandboxPool.
Annotations *StringMap `json:"annotations,omitempty"`
// InlineResources Explicit per-Pool resource requests/limits. Required — and used alone — when the Pool's Env is free-form (env.poolSizing=free-form), where it is the whole of the Pod's sizing; on a billed Env it is optional and instead combined with instanceType as the rounded-down actual Pod request (must fit within instanceType × multiplier). Sets both requests and limits.
InlineResources *ResourceRequirements `json:"inlineResources,omitempty"`
// InstanceType InstanceType catalog entry. Required when the Pool's Env is billed (env.poolSizing=billed); rejected when its Env is free-form (env.poolSizing=free-form); the caller's choice when the Env is unmanaged (env.poolSizing=either). May be combined with inlineResources to reserve a whole instance while running a smaller (rounded-down) Pod.
InstanceType *string `json:"instanceType,omitempty"`
// Labels Labels stamped onto this member's SandboxPool. Use for plugin-driven metadata such as quota.scitix.ai/url (parsed by the server to derive the pool-name suffix). Required when the Pool's Env is billed (env.poolSizing=billed) — the Pool is rejected without it, because the scheduler it is submitted to has nothing to charge; rejected when the Env is free-form.
Labels *StringMap `json:"labels,omitempty"`
// MaxReplicas Upper bound on this pool's replicas, enforced when the Env autoscaler distributes scale-up delta.
MaxReplicas *int32 `json:"maxReplicas,omitempty"`
// MinReplicas Lower bound on this pool's replicas, enforced as a per-member scale-down floor by the Env autoscaler.
MinReplicas *int32 `json:"minReplicas,omitempty"`
// Multiplier Multiplier applied to the InstanceType base resources to form the reservation envelope. Defaults to 1.
Multiplier *int32 `json:"multiplier,omitempty"`
// Replicas Initial replica count. Autoscaling, once enabled on this scalingGroup, owns subsequent changes.
Replicas *int32 `json:"replicas,omitempty"`
// UpdateStrategy Automatic rollout policy for member Pools when their rendered idle-Pod identity (Template edit, image / gateway override) changes. Rollout mode is always Recreate: stale idle Pods are rebuilt; claimed (Running/Starting) Pods are never disrupted and roll after returning to Idle.
UpdateStrategy *EnvUpdateStrategy `json:"updateStrategy,omitempty"`
}
UpsertSandboxPoolRequest Add a member SandboxPool to an Env. The server derives:
- `name` = "{envName}-{resourceKey}[-{quotaShort}]"
- `scalingGroup` = `resourceKey` (e.g. "2c8Gi")
where `resourceKey` is `instancetype.DeriveResourceKey(effective resources)` and `quotaShort` (when a quota label is supplied) is `quotaProvider.DeriveShortName(quotaID)`. Members in the same `scalingGroup` share an autoscaling policy.
WHICH OF THE SHAPES BELOW IS ACCEPTED IS THE ENV'S TO SAY, not the caller's — read `poolSizing` off the Env this Pool joins (Template detail and Env detail both carry it; `abx envs <name>` prints it).
Billed Env (`poolSizing: billed`) — the Template is billed, so the Pool must name what it spends:
- `instanceType` (+ optional `multiplier`) alone → the Pod is sized to the full `instanceType × multiplier` envelope (default `multiplier` = 1).
- `instanceType` (+ `multiplier`) AND `inlineResources` together → `instanceType × multiplier` is the reservation/billing envelope, while `inlineResources` is the actual (possibly rounded-down) Pod request. Every dimension of `inlineResources` must be ≤ the envelope (round down allowed, round up rejected with 400); the reservation still charges quota for the whole instance.
- `labels` must carry `quota.scitix.ai/url`.
Free-form Env (`poolSizing: free-form`) — the Template is one the deployment does not bill, so the Pool is sized directly:
- `inlineResources` alone → explicit per-Pool resource requests/limits.
- `instanceType`, `multiplier` and the quota label are REJECTED (400): an instance type buys an instance nobody reserved, and a quota label on a Pool that is never submitted for reservation is a claim the server cannot honour.
Unmanaged Env (`poolSizing: either`) — this deployment states no rule, so both shapes are accepted and the caller picks. Every deployment behaved this way before the rule existed.
Under the two managed values there is no per-Pool choice: the shape follows from the Env, so two Pools of one Env are always sized the same way. `scalingGroup` / pool name are derived from the effective Pod request (the rounded-down `inlineResources` when supplied, else the full envelope), so the name reflects the Pod's real size and Pools downsized differently land in distinct scaling groups.
This is also what an update takes, and what `GET` returns as `editable`: one body for create, update and export, so a client edits what the API handed it rather than translating between two subsets that drift.
The fields marked `x-immutable` describe the Pool's SHAPE and are fixed at create. An update must carry them back unchanged — omitting one or changing one is a 400 that names the value in force, because a body that loses the instance type is a caller bug, not a request for a smaller machine.
type UpsertSandboxTemplateRequest ¶
type UpsertSandboxTemplateRequest struct {
// CrdJson Complete SandboxTemplate CRD object serialized as JSON. metadata.name is required. Labels, annotations, and resourceVersion are extracted from the JSON.
CrdJson string `json:"crdJson"`
}
UpsertSandboxTemplateRequest defines model for UpsertSandboxTemplateRequest.
type UserSandboxStatistics ¶
type UserSandboxStatistics struct {
// ByStatus Sandbox count broken down by status (e.g. Running, Failed).
ByStatus map[string]int `json:"byStatus"`
// Namespace Kubernetes namespace these statistics are scoped to.
Namespace string `json:"namespace"`
// Total Total number of sandboxes in the user's namespace.
Total int `json:"total"`
}
UserSandboxStatistics defines model for UserSandboxStatistics.
type UserSandboxStatisticsEnvelope ¶
type UserSandboxStatisticsEnvelope struct {
Statistics UserSandboxStatistics `json:"statistics"`
}
UserSandboxStatisticsEnvelope defines model for UserSandboxStatisticsEnvelope.
type UsersResult ¶
type UsersResult struct {
// Items List of usernames in the team.
Items []string `json:"items"`
// Total Total number of users in the team.
Total int `json:"total"`
}
UsersResult defines model for UsersResult.
type VolumeItem ¶ added in v0.0.10
type VolumeItem struct {
// AccessModes The claim's access modes, e.g. ['ReadWriteMany'].
AccessModes *[]string `json:"accessModes,omitempty"`
// Capacity Requested capacity, e.g. '5Ti'. Absent when the claim reports none.
Capacity *string `json:"capacity,omitempty"`
// ClaimName The claim's name — the value to put in `overrides.volumes[].claimName`.
ClaimName string `json:"claimName"`
// DisplayName Human-readable name, resolved from the first non-empty label listed in the deployment's `--volume-display-name-labels`. Falls back to claimName when no label matches or none is configured, so this is always safe to render directly.
DisplayName *string `json:"displayName,omitempty"`
// Labels The claim's labels, verbatim. Returned so a caller can apply its own presentation rules without this API having to know the storage platform's label vocabulary.
Labels *map[string]string `json:"labels,omitempty"`
// Phase Claim phase. Only Bound claims are returned, so this is always 'Bound' today; present so a future filter relaxation stays legible.
Phase string `json:"phase"`
// StorageClass The claim's storageClassName, when set.
StorageClass *string `json:"storageClass,omitempty"`
}
VolumeItem One PersistentVolumeClaim in the caller's namespace that a SandboxEnv may mount.
type WhoAmIResult ¶
type WhoAmIResult struct {
// Mode What kind of credential this is. `agent` keys have their writes held
// for a person to release. Reported here so a client can say so before
// attempting the write rather than after: an agent that learns its own
// restriction up front asks for the right thing, while one that learns
// it from a 428 has already spent the round trip. Absent on keys
// issued before the field existed, which read as `unrestricted`.
Mode *WhoAmIResultMode `json:"mode,omitempty"`
// Namespace The namespace this credential reads and writes in on THIS cluster. Reported because it is not always the one recorded when the credential was minted — a credential is used against several clusters, which map a tenant differently, so each cluster resolves it locally. Two credentials for the same person can land in different namespaces, and the symptom is an empty list rather than an error, which is why it is worth being able to read it back.
Namespace *string `json:"namespace,omitempty"`
// Role Role assigned to the caller's API key (e.g. tenant, admin).
Role string `json:"role"`
// Team Team extracted from the caller's auth context.
Team *string `json:"team,omitempty"`
// User Username extracted from the caller's auth context.
User *string `json:"user,omitempty"`
}
WhoAmIResult defines model for WhoAmIResult.
type WhoAmIResultMode ¶ added in v0.0.11
type WhoAmIResultMode string
WhoAmIResultMode What kind of credential this is. `agent` keys have their writes held for a person to release. Reported here so a client can say so before attempting the write rather than after: an agent that learns its own restriction up front asks for the right thing, while one that learns it from a 428 has already spent the round trip. Absent on keys issued before the field existed, which read as `unrestricted`.
const ( Agent WhoAmIResultMode = "agent" Unrestricted WhoAmIResultMode = "unrestricted" )
Defines values for WhoAmIResultMode.
func (WhoAmIResultMode) Valid ¶ added in v0.0.11
func (e WhoAmIResultMode) Valid() bool
Valid indicates whether the value is a known member of the WhoAmIResultMode enum.