Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- 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 AdminAuthProviderProfile
- type AdminAuthProviderProfilesLookupEmailRequest
- type AdminAuthProviderProfilesResolveRequest
- type AdminAuthProviderProfilesResponse
- type AdminClusterCreateRequest
- type AdminClusterCreateResponse
- type AdminTeamBlockRequest
- type AdminTeamBootstrapRequest
- type AdminTeamClusterAssignmentResponse
- type BuildId
- type BuildIdOrTemplate
- type BuildIds
- type BuildInfo
- type BuildStatus
- type BuildStatusItem
- type BuildStatuses
- type BuildsCursor
- type BuildsLimit
- type BuildsListResponse
- type BuildsStatusesResponse
- type CPUCount
- type ClusterID
- type DefaultTemplate
- type DefaultTemplateAlias
- type DefaultTemplatesResponse
- type DiskSizeMB
- type Error
- type ErrorCode
- type GetBuildsParams
- type GetBuildsStatusesParams
- type GetTeamsResolveParams
- type GetTemplatesParams
- type GetTemplatesParamsSort
- type GetTemplatesTemplateIDTagsExistsParams
- type GetTemplatesTemplateIDTagsGroupsParams
- type GetTemplatesTemplateIDTagsGroupsParamsSort
- type GetTemplatesTemplateIDTagsTagAssignmentsParams
- type GinServerOptions
- type HealthResponse
- type ListedBuild
- type ManagementApplyProjectBlockJSONRequestBody
- type ManagementApplyProjectMemberJSONRequestBody
- type ManagementClusterRegistrationRequest
- type ManagementDecidedAt
- type ManagementProject
- type ManagementProjectBlockRequest
- type ManagementProjectLimits
- func (t ManagementProjectLimits) AsManagementProjectLimits0() (ManagementProjectLimits0, error)
- func (t ManagementProjectLimits) AsManagementProjectLimits1() (ManagementProjectLimits1, error)
- func (t *ManagementProjectLimits) FromManagementProjectLimits0(v ManagementProjectLimits0) error
- func (t *ManagementProjectLimits) FromManagementProjectLimits1(v ManagementProjectLimits1) error
- func (t ManagementProjectLimits) MarshalJSON() ([]byte, error)
- func (t *ManagementProjectLimits) MergeManagementProjectLimits0(v ManagementProjectLimits0) error
- func (t *ManagementProjectLimits) MergeManagementProjectLimits1(v ManagementProjectLimits1) error
- func (t *ManagementProjectLimits) UnmarshalJSON(b []byte) error
- type ManagementProjectLimits0
- type ManagementProjectLimits1
- type ManagementProjectMemberApplyRequest
- type ManagementProjectMemberIdentity
- type ManagementProjectUpsertRequest
- type ManagementRegisterClusterJSONRequestBody
- type ManagementUpsertProjectJSONRequestBody
- type ManagementUpsertProjectLimitsJSONRequestBody
- type MemoryMB
- type MiddlewareFunc
- type N400
- type N401
- type N403
- type N404
- type N409
- type N500
- type N501
- type PostAdminClustersJSONRequestBody
- type PostAdminTeamsBootstrapJSONRequestBodydeprecated
- type PostAdminUserProfilesByEmailJSONRequestBody
- type PostAdminUserProfilesResolveJSONRequestBody
- type ProjectID
- type PutAdminTeamsTeamIDBlockJSONRequestBody
- type SandboxID
- type SandboxRecord
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteAdminClustersClusterID(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteAdminTeamsTeamIDBan(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteAdminTeamsTeamIDBlock(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetAdminTeamsTeamIDCluster(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetAdminUserProfilesUserId(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetBuilds(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetBuildsBuildId(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetBuildsStatuses(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetHealth(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetSandboxesSandboxIDRecord(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTeamsResolve(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTeamsTeamIDLimits(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTeamsTeamIDMembers(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTeamsTeamIDStatus(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplates(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplatesDefaults(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplatesTemplateID(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsCount(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsExists(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsGroups(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsTagAssignments(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementApplyProjectBlock(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementApplyProjectMember(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementAssignProjectCluster(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementClusterDestroyReadiness(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementDeleteCluster(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementDeleteProject(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementDetachProjectCluster(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementRegisterCluster(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementUpsertProject(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ManagementUpsertProjectLimits(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostAdminClusters(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostAdminTeamsBootstrap(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostAdminUserProfilesByEmail(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostAdminUserProfilesResolve(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PutAdminTeamsTeamIDBan(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PutAdminTeamsTeamIDBlock(c *gin.Context)
- type Tag
- type TagAssignmentLimit
- type TagAssignmentsCursor
- type TagAssignmentsLimit
- type TagGroupsCursor
- type TagGroupsLimit
- type TagGroupsSearch
- type TagGroupsSort
- type TagPath
- type TeamID
- type TeamLimitsResponse
- type TeamMember
- type TeamMembersResponse
- type TeamResolveResponse
- type TeamSlug
- type TeamStatusResponse
- type TeamTemplate
- type TeamTemplatesResponse
- type TemplateDetail
- type TemplateID
- type TemplateTagAssignment
- type TemplateTagAssignmentsResponse
- type TemplateTagExistsResponse
- type TemplateTagGroup
- type TemplateTagGroupsResponse
- type TemplateTagsCountResponse
- type TemplatesCursor
- type TemplatesLimit
- type TemplatesPublic
- type TemplatesSearch
- type TemplatesSort
- type UserID
- type UserId
- type UserTeamLimits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
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 AdminAuthProviderProfile ¶
type AdminAuthProviderProfile struct {
// Email Email address from the configured auth provider.
Email *string `json:"email"`
// UserId Internal E2B user identifier.
UserId openapi_types.UUID `json:"userId"`
}
AdminAuthProviderProfile defines model for AdminAuthProviderProfile.
type AdminAuthProviderProfilesLookupEmailRequest ¶
type AdminAuthProviderProfilesLookupEmailRequest struct {
Email openapi_types.Email `json:"email"`
}
AdminAuthProviderProfilesLookupEmailRequest defines model for AdminAuthProviderProfilesLookupEmailRequest.
type AdminAuthProviderProfilesResolveRequest ¶
type AdminAuthProviderProfilesResolveRequest struct {
UserIds []openapi_types.UUID `json:"userIds"`
}
AdminAuthProviderProfilesResolveRequest defines model for AdminAuthProviderProfilesResolveRequest.
type AdminAuthProviderProfilesResponse ¶
type AdminAuthProviderProfilesResponse struct {
Profiles []AdminAuthProviderProfile `json:"profiles"`
}
AdminAuthProviderProfilesResponse defines model for AdminAuthProviderProfilesResponse.
type AdminClusterCreateRequest ¶
type AdminClusterCreateRequest struct {
AuthOrgId *string `json:"auth_org_id,omitempty"`
// ClusterId Optional stable identifier for idempotent creation. Reuse succeeds only when the immutable configuration is identical.
ClusterId *openapi_types.UUID `json:"cluster_id,omitempty"`
Endpoint string `json:"endpoint"`
EndpointTls bool `json:"endpoint_tls"`
Name string `json:"name"`
SandboxProxyDomain *string `json:"sandbox_proxy_domain,omitempty"`
Token string `json:"token"`
}
AdminClusterCreateRequest defines model for AdminClusterCreateRequest.
type AdminClusterCreateResponse ¶
type AdminClusterCreateResponse struct {
ClusterId openapi_types.UUID `json:"cluster_id"`
}
AdminClusterCreateResponse defines model for AdminClusterCreateResponse.
type AdminTeamBlockRequest ¶
type AdminTeamBlockRequest struct {
// Reason Shown to the team as the reason it is blocked.
Reason string `json:"reason"`
}
AdminTeamBlockRequest defines model for AdminTeamBlockRequest.
type AdminTeamBootstrapRequest ¶
type AdminTeamBootstrapRequest struct {
// Email Billing/contact email for the team.
Email openapi_types.Email `json:"email"`
// Name Team name.
Name string `json:"name"`
}
AdminTeamBootstrapRequest defines model for AdminTeamBootstrapRequest.
type AdminTeamClusterAssignmentResponse ¶
type AdminTeamClusterAssignmentResponse struct {
ClusterId openapi_types.UUID `json:"cluster_id"`
}
AdminTeamClusterAssignmentResponse defines model for AdminTeamClusterAssignmentResponse.
type BuildIdOrTemplate ¶
type BuildIdOrTemplate = string
BuildIdOrTemplate defines model for build_id_or_template.
type BuildInfo ¶
type BuildInfo struct {
// CreatedAt Build creation timestamp in RFC3339 format.
CreatedAt time.Time `json:"createdAt"`
// FinishedAt Build completion timestamp in RFC3339 format, if finished.
FinishedAt *time.Time `json:"finishedAt"`
// Names Template names related to this build, if available.
Names *[]string `json:"names,omitempty"`
// Status Build status mapped for dashboard clients.
Status BuildStatus `json:"status"`
// StatusMessage Failure message when status is `failed`, otherwise `null`.
StatusMessage *string `json:"statusMessage"`
}
BuildInfo defines model for BuildInfo.
type BuildStatus ¶
type BuildStatus string
BuildStatus Build status mapped for dashboard clients.
const ( Building BuildStatus = "building" Failed BuildStatus = "failed" Success BuildStatus = "success" )
Defines values for BuildStatus.
func (BuildStatus) Valid ¶
func (e BuildStatus) Valid() bool
Valid indicates whether the value is a known member of the BuildStatus enum.
type BuildStatusItem ¶
type BuildStatusItem struct {
// FinishedAt Build completion timestamp in RFC3339 format, if finished.
FinishedAt *time.Time `json:"finishedAt"`
// Id Identifier of the build.
Id openapi_types.UUID `json:"id"`
// Status Build status mapped for dashboard clients.
Status BuildStatus `json:"status"`
// StatusMessage Failure message when status is `failed`, otherwise `null`.
StatusMessage *string `json:"statusMessage"`
}
BuildStatusItem defines model for BuildStatusItem.
type BuildStatuses ¶
type BuildStatuses = []BuildStatus
BuildStatuses defines model for build_statuses.
type BuildsListResponse ¶
type BuildsListResponse struct {
Data []ListedBuild `json:"data"`
// NextCursor Cursor to pass to the next list request, or `null` if there is no next page.
NextCursor *string `json:"nextCursor"`
}
BuildsListResponse defines model for BuildsListResponse.
type BuildsStatusesResponse ¶
type BuildsStatusesResponse struct {
// BuildStatuses List of build statuses
BuildStatuses []BuildStatusItem `json:"buildStatuses"`
}
BuildsStatusesResponse defines model for BuildsStatusesResponse.
type DefaultTemplate ¶
type DefaultTemplate struct {
Aliases []DefaultTemplateAlias `json:"aliases"`
BuildCount int32 `json:"buildCount"`
BuildId openapi_types.UUID `json:"buildId"`
CreatedAt time.Time `json:"createdAt"`
EnvdVersion *string `json:"envdVersion,omitempty"`
Id string `json:"id"`
Public bool `json:"public"`
RamMb int64 `json:"ramMb"`
SpawnCount int64 `json:"spawnCount"`
TotalDiskSizeMb *int64 `json:"totalDiskSizeMb"`
Vcpu int64 `json:"vcpu"`
}
DefaultTemplate defines model for DefaultTemplate.
type DefaultTemplateAlias ¶
type DefaultTemplateAlias struct {
Alias string `json:"alias"`
Namespace *string `json:"namespace,omitempty"`
}
DefaultTemplateAlias defines model for DefaultTemplateAlias.
type DefaultTemplatesResponse ¶
type DefaultTemplatesResponse struct {
Templates []DefaultTemplate `json:"templates"`
}
DefaultTemplatesResponse defines model for DefaultTemplatesResponse.
type Error ¶
type Error struct {
// Code Error code.
Code int32 `json:"code"`
// ErrorCode Stable machine-readable reason for an API error. New codes may be added as other errors adopt this contract. Clients must handle absent or unknown codes without interpreting the human-readable message.
ErrorCode *ErrorCode `json:"error_code,omitempty"`
// Message Error message.
Message string `json:"message"`
}
Error defines model for Error.
type ErrorCode ¶
type ErrorCode string
ErrorCode Stable machine-readable reason for an API error. New codes may be added as other errors adopt this contract. Clients must handle absent or unknown codes without interpreting the human-readable message.
const ( ClusterAssignmentAlreadyAssigned ErrorCode = "cluster_assignment_already_assigned" ClusterAssignmentClusterNotFound ErrorCode = "cluster_assignment_cluster_not_found" ClusterAssignmentInvalid ErrorCode = "cluster_assignment_invalid" ClusterAssignmentProjectNotFound ErrorCode = "cluster_assignment_project_not_found" ClusterAssignmentRequiresEnterprise ErrorCode = "cluster_assignment_requires_enterprise" ClusterRegistrationConflict ErrorCode = "cluster_registration_conflict" ClusterRegistrationInvalid ErrorCode = "cluster_registration_invalid" )
Defines values for ErrorCode.
type GetBuildsParams ¶
type GetBuildsParams struct {
// BuildIdOrTemplate Optional filter by build identifier, template identifier, or template alias.
BuildIdOrTemplate *BuildIdOrTemplate `form:"build_id_or_template,omitempty" json:"build_id_or_template,omitempty"`
// Statuses Comma-separated list of build statuses to include.
Statuses *BuildStatuses `form:"statuses,omitempty" json:"statuses,omitempty"`
// Limit Maximum number of items to return per page.
Limit *BuildsLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Cursor returned by the previous list response in `created_at|build_id` format.
Cursor *BuildsCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
GetBuildsParams defines parameters for GetBuilds.
type GetBuildsStatusesParams ¶
type GetBuildsStatusesParams struct {
// BuildIds Comma-separated list of build IDs to get statuses for.
BuildIds BuildIds `form:"build_ids" json:"build_ids"`
}
GetBuildsStatusesParams defines parameters for GetBuildsStatuses.
type GetTeamsResolveParams ¶
type GetTeamsResolveParams struct {
// Slug Team slug to resolve.
Slug TeamSlug `form:"slug" json:"slug"`
}
GetTeamsResolveParams defines parameters for GetTeamsResolve.
type GetTemplatesParams ¶
type GetTemplatesParams struct {
// Public Filter templates by visibility (true = public, false = internal).
Public *TemplatesPublic `form:"public,omitempty" json:"public,omitempty"`
// Search Case-insensitive substring match on template names, aliases, and template id.
Search *TemplatesSearch `form:"search,omitempty" json:"search,omitempty"`
// Sort Sort column and direction.
Sort *GetTemplatesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Limit Maximum number of items to return per page.
Limit *TemplatesLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Cursor returned by the previous list response in `{sort}|{value}|{templateID}` format. Rejected if its sort does not match the request.
Cursor *TemplatesCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
GetTemplatesParams defines parameters for GetTemplates.
type GetTemplatesParamsSort ¶
type GetTemplatesParamsSort string
GetTemplatesParamsSort defines parameters for GetTemplates.
const ( GetTemplatesParamsSortCreatedAtAsc GetTemplatesParamsSort = "created_at_asc" GetTemplatesParamsSortCreatedAtDesc GetTemplatesParamsSort = "created_at_desc" GetTemplatesParamsSortUpdatedAtAsc GetTemplatesParamsSort = "updated_at_asc" GetTemplatesParamsSortUpdatedAtDesc GetTemplatesParamsSort = "updated_at_desc" )
Defines values for GetTemplatesParamsSort.
func (GetTemplatesParamsSort) Valid ¶
func (e GetTemplatesParamsSort) Valid() bool
Valid indicates whether the value is a known member of the GetTemplatesParamsSort enum.
type GetTemplatesTemplateIDTagsExistsParams ¶
type GetTemplatesTemplateIDTagsExistsParams struct {
// Tag Template tag name to check.
Tag Tag `form:"tag" json:"tag"`
}
GetTemplatesTemplateIDTagsExistsParams defines parameters for GetTemplatesTemplateIDTagsExists.
type GetTemplatesTemplateIDTagsGroupsParams ¶
type GetTemplatesTemplateIDTagsGroupsParams struct {
// AssignmentLimit Maximum number of ready assignment rows to return per tag.
AssignmentLimit *TagAssignmentLimit `form:"assignmentLimit,omitempty" json:"assignmentLimit,omitempty"`
// TagsLimit Maximum number of distinct tags to return per page.
TagsLimit *TagGroupsLimit `form:"tagsLimit,omitempty" json:"tagsLimit,omitempty"`
// TagsCursor Cursor returned by the previous list response in `{sort}|{latest_assigned_at}|{tag}` format (sort-tagged, RFC3339Nano).
TagsCursor *TagGroupsCursor `form:"tagsCursor,omitempty" json:"tagsCursor,omitempty"`
// Search Case-insensitive substring filter on tag name. Allowed characters are `a-z`, `0-9`, `.`, `_`, `-`.
Search *TagGroupsSearch `form:"search,omitempty" json:"search,omitempty"`
// Sort Sort order for the returned tag groups.
Sort *GetTemplatesTemplateIDTagsGroupsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
}
GetTemplatesTemplateIDTagsGroupsParams defines parameters for GetTemplatesTemplateIDTagsGroups.
type GetTemplatesTemplateIDTagsGroupsParamsSort ¶
type GetTemplatesTemplateIDTagsGroupsParamsSort string
GetTemplatesTemplateIDTagsGroupsParamsSort defines parameters for GetTemplatesTemplateIDTagsGroups.
const ( GetTemplatesTemplateIDTagsGroupsParamsSortLatestAsc GetTemplatesTemplateIDTagsGroupsParamsSort = "latest_asc" GetTemplatesTemplateIDTagsGroupsParamsSortLatestDesc GetTemplatesTemplateIDTagsGroupsParamsSort = "latest_desc" GetTemplatesTemplateIDTagsGroupsParamsSortNameAsc GetTemplatesTemplateIDTagsGroupsParamsSort = "name_asc" GetTemplatesTemplateIDTagsGroupsParamsSortNameDesc GetTemplatesTemplateIDTagsGroupsParamsSort = "name_desc" )
Defines values for GetTemplatesTemplateIDTagsGroupsParamsSort.
func (GetTemplatesTemplateIDTagsGroupsParamsSort) Valid ¶
func (e GetTemplatesTemplateIDTagsGroupsParamsSort) Valid() bool
Valid indicates whether the value is a known member of the GetTemplatesTemplateIDTagsGroupsParamsSort enum.
type GetTemplatesTemplateIDTagsTagAssignmentsParams ¶
type GetTemplatesTemplateIDTagsTagAssignmentsParams struct {
// Cursor Cursor returned by the previous list response in `assigned_at|assignment_id` format.
Cursor *TagAssignmentsCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum number of assignment rows to return per page.
Limit *TagAssignmentsLimit `form:"limit,omitempty" json:"limit,omitempty"`
}
GetTemplatesTemplateIDTagsTagAssignmentsParams defines parameters for GetTemplatesTemplateIDTagsTagAssignments.
type GinServerOptions ¶
type GinServerOptions struct {
BaseURL string
Middlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
GinServerOptions provides options for the Gin server.
type HealthResponse ¶
type HealthResponse struct {
// Message Human-readable health check result.
Message string `json:"message"`
}
HealthResponse defines model for HealthResponse.
type ListedBuild ¶
type ListedBuild struct {
// CpuCount CPU cores configured for the build.
CpuCount int64 `json:"cpuCount"`
// CreatedAt Build creation timestamp in RFC3339 format.
CreatedAt time.Time `json:"createdAt"`
// DiskSizeMB Disk size in MiB configured for the build, if recorded.
DiskSizeMB *int64 `json:"diskSizeMB"`
// EnvdVersion envd version the build was created with, if recorded.
EnvdVersion *string `json:"envdVersion"`
// FinishedAt Build completion timestamp in RFC3339 format, if finished.
FinishedAt *time.Time `json:"finishedAt"`
// Id Identifier of the build.
Id openapi_types.UUID `json:"id"`
// MemoryMB Memory in MiB configured for the build.
MemoryMB int64 `json:"memoryMB"`
// Status Build status mapped for dashboard clients.
Status BuildStatus `json:"status"`
// StatusMessage Failure message when status is `failed`, otherwise `null`.
StatusMessage *string `json:"statusMessage"`
// Template Template alias when present, otherwise template ID.
Template string `json:"template"`
// TemplateId Identifier of the template.
TemplateId string `json:"templateId"`
}
ListedBuild defines model for ListedBuild.
type ManagementApplyProjectBlockJSONRequestBody ¶
type ManagementApplyProjectBlockJSONRequestBody = ManagementProjectBlockRequest
ManagementApplyProjectBlockJSONRequestBody defines body for ManagementApplyProjectBlock for application/json ContentType.
type ManagementApplyProjectMemberJSONRequestBody ¶
type ManagementApplyProjectMemberJSONRequestBody = ManagementProjectMemberApplyRequest
ManagementApplyProjectMemberJSONRequestBody defines body for ManagementApplyProjectMember for application/json ContentType.
type ManagementClusterRegistrationRequest ¶
type ManagementClusterRegistrationRequest struct {
AuthOrgId *string `json:"auth_org_id,omitempty"`
Endpoint string `json:"endpoint"`
EndpointTls bool `json:"endpoint_tls"`
Name string `json:"name"`
SandboxProxyDomain *string `json:"sandbox_proxy_domain,omitempty"`
Token string `json:"token"`
}
ManagementClusterRegistrationRequest defines model for ManagementClusterRegistrationRequest.
type ManagementDecidedAt ¶
ManagementDecidedAt When the caller decided this revision, in RFC 3339. Stored with the revision and used to measure how long the decision took to apply here. Omit it when the caller does not know; the delivery is then counted as origin unknown rather than as zero lag.
type ManagementProject ¶
type ManagementProject struct {
// ClusterId Cluster assignment to synchronize. Omission preserves the existing assignment.
ClusterId *openapi_types.UUID `json:"cluster_id,omitempty"`
// Email Contact address recorded on the project.
Email string `json:"email"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
// Slug Changing it renames the project, and nothing follows it. Template names embed the slug they were built under, so a renamed project keeps its existing template names and only new ones carry the new slug. A slug already held on this control plane is a 409, on a rename as much as on a create.
Slug string `json:"slug"`
}
ManagementProject defines model for ManagementProject.
type ManagementProjectBlockRequest ¶
type ManagementProjectBlockRequest struct {
// Blocked Whether the project is refused billable work.
Blocked bool `json:"blocked"`
// DecidedAt When the caller decided this revision, in RFC 3339. Stored with the revision and used to measure how long the decision took to apply here. Omit it when the caller does not know; the delivery is then counted as origin unknown rather than as zero lag.
DecidedAt *ManagementDecidedAt `json:"decided_at,omitempty"`
// Reason Reason included in blocked-request errors. Cleared when blocked is false.
Reason *string `json:"reason,omitempty"`
// Revision Monotonic per-project revision. Older or duplicate revisions succeed without changing stored state.
Revision int64 `json:"revision"`
}
ManagementProjectBlockRequest Desired project block state. A newer revision replaces the state, including any intervening manual block or unblock.
type ManagementProjectLimits ¶
type ManagementProjectLimits struct {
// ApiTeamRpsList Requests per second a project may make to each list endpoint. Zero disables the limit.
ApiTeamRpsList int64 `json:"api_team_rps_list"`
ConcurrentSandboxes int32 `json:"concurrent_sandboxes"`
ConcurrentTemplateBuilds int32 `json:"concurrent_template_builds"`
// DecidedAt When the caller decided this revision, in RFC 3339. Stored with the revision and used to measure how long the decision took to apply here. Omit it when the caller does not know; the delivery is then counted as origin unknown rather than as zero lag.
DecidedAt *ManagementDecidedAt `json:"decided_at,omitempty"`
// DefaultFreeDiskSizeMb The default free-space growth target when a template build request omits one. May sit anywhere at or below the maximum free-space growth target, and usually sits well below it; a delivery whose default exceeds the maximum is rejected.
DefaultFreeDiskSizeMb int64 `json:"default_free_disk_size_mb"`
DiskMb int64 `json:"disk_mb"`
EventsTtlDays int32 `json:"events_ttl_days"`
// MaxDiskSizeMb The same ceiling as max_free_disk_size_mb, under the name it was first published with. Kept until every deployed sender and receiver speaks the other name.
MaxDiskSizeMb *int64 `json:"max_disk_size_mb,omitempty"`
// MaxFreeDiskSizeMb The most a template build may request as its free-space growth target.
MaxFreeDiskSizeMb *int64 `json:"max_free_disk_size_mb,omitempty"`
MaxRamMb int64 `json:"max_ram_mb"`
MaxSandboxLengthHours int32 `json:"max_sandbox_length_hours"`
MaxVcpu int32 `json:"max_vcpu"`
// Revision The caller's version of this answer, raised whenever the limits it resolved for the project change. Delivery is over a network, so two pushes can be in flight at once and arrive in either order: this side stores the revision it accepted and drops a delivery at or below it, which is what keeps a delayed retry from putting the project back on limits it has already left.
//
// Comparable only against earlier revisions for the same project.
Revision int64 `json:"revision"`
// contains filtered or unexported fields
}
ManagementProjectLimits A project's effective limits, already resolved by the caller. Every field is absolute: this side stores what it is given and performs no arithmetic of its own.
The minimums below track the CHECK constraints on tiers, which is the contract for what a limit may be. project_limits stores the same values under looser constraints on purpose — it is a push target, and a floor that only rejects the impossible keeps a future decision about what is allowed a change to this schema rather than a migration.
`max_disk_size_mb` and `max_free_disk_size_mb` are one ceiling under two names, and either name alone carries it. A caller that sends both must send them equal; a caller that sends neither is refused. Sending both is what a caller does while receivers older than the second name are still running.
func (ManagementProjectLimits) AsManagementProjectLimits0 ¶
func (t ManagementProjectLimits) AsManagementProjectLimits0() (ManagementProjectLimits0, error)
AsManagementProjectLimits0 returns the union data inside the ManagementProjectLimits as a ManagementProjectLimits0
func (ManagementProjectLimits) AsManagementProjectLimits1 ¶
func (t ManagementProjectLimits) AsManagementProjectLimits1() (ManagementProjectLimits1, error)
AsManagementProjectLimits1 returns the union data inside the ManagementProjectLimits as a ManagementProjectLimits1
func (*ManagementProjectLimits) FromManagementProjectLimits0 ¶
func (t *ManagementProjectLimits) FromManagementProjectLimits0(v ManagementProjectLimits0) error
FromManagementProjectLimits0 overwrites any union data inside the ManagementProjectLimits as the provided ManagementProjectLimits0
func (*ManagementProjectLimits) FromManagementProjectLimits1 ¶
func (t *ManagementProjectLimits) FromManagementProjectLimits1(v ManagementProjectLimits1) error
FromManagementProjectLimits1 overwrites any union data inside the ManagementProjectLimits as the provided ManagementProjectLimits1
func (ManagementProjectLimits) MarshalJSON ¶
func (t ManagementProjectLimits) MarshalJSON() ([]byte, error)
func (*ManagementProjectLimits) MergeManagementProjectLimits0 ¶
func (t *ManagementProjectLimits) MergeManagementProjectLimits0(v ManagementProjectLimits0) error
MergeManagementProjectLimits0 performs a merge with any union data inside the ManagementProjectLimits, using the provided ManagementProjectLimits0
func (*ManagementProjectLimits) MergeManagementProjectLimits1 ¶
func (t *ManagementProjectLimits) MergeManagementProjectLimits1(v ManagementProjectLimits1) error
MergeManagementProjectLimits1 performs a merge with any union data inside the ManagementProjectLimits, using the provided ManagementProjectLimits1
func (*ManagementProjectLimits) UnmarshalJSON ¶
func (t *ManagementProjectLimits) UnmarshalJSON(b []byte) error
type ManagementProjectLimits0 ¶
type ManagementProjectLimits0 = interface{}
ManagementProjectLimits0 defines model for ManagementProjectLimits.0.
type ManagementProjectLimits1 ¶
type ManagementProjectLimits1 = interface{}
ManagementProjectLimits1 defines model for ManagementProjectLimits.1.
type ManagementProjectMemberApplyRequest ¶
type ManagementProjectMemberApplyRequest struct {
Identities *[]ManagementProjectMemberIdentity `json:"identities,omitempty"`
// IsDefault Whether this membership is the user's default team. Omitted requests from older sources remain non-default.
IsDefault *bool `json:"is_default,omitempty"`
Present bool `json:"present"`
Revision int64 `json:"revision"`
}
ManagementProjectMemberApplyRequest defines model for ManagementProjectMemberApplyRequest.
type ManagementProjectMemberIdentity ¶
type ManagementProjectMemberIdentity struct {
Issuer string `json:"issuer"`
Subject string `json:"subject"`
}
ManagementProjectMemberIdentity defines model for ManagementProjectMemberIdentity.
type ManagementProjectUpsertRequest ¶
type ManagementProjectUpsertRequest struct {
// ClusterId Cluster assignment to synchronize. Omission preserves the existing assignment.
ClusterId *openapi_types.UUID `json:"cluster_id,omitempty"`
// Email Contact address recorded on the project.
Email string `json:"email"`
Name string `json:"name"`
// Slug Changing it renames the project, and nothing follows it. Template names embed the slug they were built under, so a renamed project keeps its existing template names and only new ones carry the new slug. A slug already held on this control plane is a 409, on a rename as much as on a create.
Slug string `json:"slug"`
}
ManagementProjectUpsertRequest The properties of a project this side stores. Name, slug and email are synchronized on every push. The optional cluster assignment is preserved when omitted.
A project's tier is not among them. It is assigned once, at creation, from this side's own default, and no push moves it — limits arrive separately and in full through upsertProjectLimits, which takes precedence over the tier anyway.
type ManagementRegisterClusterJSONRequestBody ¶
type ManagementRegisterClusterJSONRequestBody = ManagementClusterRegistrationRequest
ManagementRegisterClusterJSONRequestBody defines body for ManagementRegisterCluster for application/json ContentType.
type ManagementUpsertProjectJSONRequestBody ¶
type ManagementUpsertProjectJSONRequestBody = ManagementProjectUpsertRequest
ManagementUpsertProjectJSONRequestBody defines body for ManagementUpsertProject for application/json ContentType.
type ManagementUpsertProjectLimitsJSONRequestBody ¶
type ManagementUpsertProjectLimitsJSONRequestBody = ManagementProjectLimits
ManagementUpsertProjectLimitsJSONRequestBody defines body for ManagementUpsertProjectLimits for application/json ContentType.
type MiddlewareFunc ¶
type PostAdminClustersJSONRequestBody ¶
type PostAdminClustersJSONRequestBody = AdminClusterCreateRequest
PostAdminClustersJSONRequestBody defines body for PostAdminClusters for application/json ContentType.
type PostAdminTeamsBootstrapJSONRequestBody
deprecated
type PostAdminTeamsBootstrapJSONRequestBody = AdminTeamBootstrapRequest
PostAdminTeamsBootstrapJSONRequestBody defines body for PostAdminTeamsBootstrap for application/json ContentType.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type PostAdminUserProfilesByEmailJSONRequestBody ¶
type PostAdminUserProfilesByEmailJSONRequestBody = AdminAuthProviderProfilesLookupEmailRequest
PostAdminUserProfilesByEmailJSONRequestBody defines body for PostAdminUserProfilesByEmail for application/json ContentType.
type PostAdminUserProfilesResolveJSONRequestBody ¶
type PostAdminUserProfilesResolveJSONRequestBody = AdminAuthProviderProfilesResolveRequest
PostAdminUserProfilesResolveJSONRequestBody defines body for PostAdminUserProfilesResolve for application/json ContentType.
type PutAdminTeamsTeamIDBlockJSONRequestBody ¶
type PutAdminTeamsTeamIDBlockJSONRequestBody = AdminTeamBlockRequest
PutAdminTeamsTeamIDBlockJSONRequestBody defines body for PutAdminTeamsTeamIDBlock for application/json ContentType.
type SandboxRecord ¶
type SandboxRecord struct {
// Alias Alias of the template
Alias *string `json:"alias,omitempty"`
// CpuCount CPU cores for the sandbox
CpuCount CPUCount `json:"cpuCount"`
// DiskSizeMB Disk size for the sandbox in MiB
DiskSizeMB DiskSizeMB `json:"diskSizeMB"`
// Domain Base domain where the sandbox traffic is accessible
Domain *string `json:"domain,omitempty"`
// EventsRetentionExpired Whether the sandbox ended more than the team's events retention window ago, so its events data is no longer available
EventsRetentionExpired bool `json:"eventsRetentionExpired"`
// MemoryMB Memory for the sandbox in MiB
MemoryMB MemoryMB `json:"memoryMB"`
// RetentionExpired Whether the sandbox ended more than the fixed retention window ago, so its monitoring and logs data is no longer available
RetentionExpired bool `json:"retentionExpired"`
// SandboxID Identifier of the sandbox
SandboxID string `json:"sandboxID"`
// StartedAt Time when the sandbox was started
StartedAt time.Time `json:"startedAt"`
// StoppedAt Time when the sandbox was stopped
StoppedAt *time.Time `json:"stoppedAt,omitempty"`
// TemplateID Identifier of the template from which is the sandbox created
TemplateID string `json:"templateID"`
}
SandboxRecord defines model for SandboxRecord.
type ServerInterface ¶
type ServerInterface interface {
// PostAdminClusters Create a cluster
// (POST /admin/clusters)
PostAdminClusters(c *gin.Context)
// DeleteAdminClustersClusterID Delete a cluster and its environments
// (DELETE /admin/clusters/{clusterID})
DeleteAdminClustersClusterID(c *gin.Context, clusterID ClusterID)
// PostAdminTeamsBootstrap Bootstrap team (retired)
// (POST /admin/teams/bootstrap)
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PostAdminTeamsBootstrap(c *gin.Context)
// DeleteAdminTeamsTeamIDBan Unban a team
// (DELETE /admin/teams/{teamID}/ban)
DeleteAdminTeamsTeamIDBan(c *gin.Context, teamID TeamID)
// PutAdminTeamsTeamIDBan Ban a team
// (PUT /admin/teams/{teamID}/ban)
PutAdminTeamsTeamIDBan(c *gin.Context, teamID TeamID)
// DeleteAdminTeamsTeamIDBlock Unblock a team
// (DELETE /admin/teams/{teamID}/block)
DeleteAdminTeamsTeamIDBlock(c *gin.Context, teamID TeamID)
// PutAdminTeamsTeamIDBlock Block a team
// (PUT /admin/teams/{teamID}/block)
PutAdminTeamsTeamIDBlock(c *gin.Context, teamID TeamID)
// GetAdminTeamsTeamIDCluster Get a team's assigned cluster
// (GET /admin/teams/{teamID}/cluster)
GetAdminTeamsTeamIDCluster(c *gin.Context, teamID TeamID)
// PostAdminUserProfilesByEmail Lookup user profiles by email
// (POST /admin/user-profiles/by-email)
PostAdminUserProfilesByEmail(c *gin.Context)
// PostAdminUserProfilesResolve Resolve user profiles
// (POST /admin/user-profiles/resolve)
PostAdminUserProfilesResolve(c *gin.Context)
// GetAdminUserProfilesUserId User profile
// (GET /admin/user-profiles/{userId})
GetAdminUserProfilesUserId(c *gin.Context, userId UserId)
// GetBuilds List team builds
// (GET /builds)
GetBuilds(c *gin.Context, params GetBuildsParams)
// GetBuildsStatuses Build statuses
// (GET /builds/statuses)
GetBuildsStatuses(c *gin.Context, params GetBuildsStatusesParams)
// GetBuildsBuildId Build details
// (GET /builds/{build_id})
GetBuildsBuildId(c *gin.Context, buildId BuildId)
// GetHealth Health check
// (GET /health)
GetHealth(c *gin.Context)
// GetSandboxesSandboxIDRecord Sandbox record
// (GET /sandboxes/{sandboxID}/record)
GetSandboxesSandboxIDRecord(c *gin.Context, sandboxID SandboxID)
// GetTeamsResolve Resolve team identity
// (GET /teams/resolve)
GetTeamsResolve(c *gin.Context, params GetTeamsResolveParams)
// GetTeamsTeamIDLimits Get team limits
// (GET /teams/{teamID}/limits)
GetTeamsTeamIDLimits(c *gin.Context, teamID TeamID)
// GetTeamsTeamIDMembers List team members
// (GET /teams/{teamID}/members)
GetTeamsTeamIDMembers(c *gin.Context, teamID TeamID)
// GetTeamsTeamIDStatus Get team access status
// (GET /teams/{teamID}/status)
GetTeamsTeamIDStatus(c *gin.Context, teamID TeamID)
// GetTemplates List team templates
// (GET /templates)
GetTemplates(c *gin.Context, params GetTemplatesParams)
// GetTemplatesDefaults List default templates
// (GET /templates/defaults)
GetTemplatesDefaults(c *gin.Context)
// GetTemplatesTemplateID Template
// (GET /templates/{templateID})
GetTemplatesTemplateID(c *gin.Context, templateID TemplateID)
// GetTemplatesTemplateIDTagsCount Count template tags
// (GET /templates/{templateID}/tags/count)
GetTemplatesTemplateIDTagsCount(c *gin.Context, templateID TemplateID)
// GetTemplatesTemplateIDTagsExists Check ready template tag existence
// (GET /templates/{templateID}/tags/exists)
GetTemplatesTemplateIDTagsExists(c *gin.Context, templateID TemplateID, params GetTemplatesTemplateIDTagsExistsParams)
// GetTemplatesTemplateIDTagsGroups List template tag groups
// (GET /templates/{templateID}/tags/groups)
GetTemplatesTemplateIDTagsGroups(c *gin.Context, templateID TemplateID, params GetTemplatesTemplateIDTagsGroupsParams)
// GetTemplatesTemplateIDTagsTagAssignments List ready assignments for a single template tag
// (GET /templates/{templateID}/tags/{tag}/assignments)
GetTemplatesTemplateIDTagsTagAssignments(c *gin.Context, templateID TemplateID, tag TagPath, params GetTemplatesTemplateIDTagsTagAssignmentsParams)
// ManagementDeleteCluster Delete a cluster and its environments (v1).
// (DELETE /v1/management/clusters/{clusterID})
ManagementDeleteCluster(c *gin.Context, clusterID ClusterID)
// ManagementRegisterCluster Register a cluster (v1).
// (PUT /v1/management/clusters/{clusterID})
ManagementRegisterCluster(c *gin.Context, clusterID ClusterID)
// ManagementClusterDestroyReadiness Check cluster destroy readiness
// (GET /v1/management/clusters/{clusterID}/destroy-readiness)
ManagementClusterDestroyReadiness(c *gin.Context, clusterID ClusterID)
// ManagementDeleteProject Delete a project and its control-plane state (v1).
// (DELETE /v1/management/projects/{projectID})
ManagementDeleteProject(c *gin.Context, projectID ProjectID)
// ManagementUpsertProject Create or reconcile a project (v1).
// (PUT /v1/management/projects/{projectID})
ManagementUpsertProject(c *gin.Context, projectID ProjectID)
// ManagementApplyProjectBlock Apply a project's block state (v1).
// (PUT /v1/management/projects/{projectID}/block)
ManagementApplyProjectBlock(c *gin.Context, projectID ProjectID)
// ManagementDetachProjectCluster Detach a cluster assignment from a project (v1).
// (DELETE /v1/management/projects/{projectID}/cluster/{clusterID})
ManagementDetachProjectCluster(c *gin.Context, projectID ProjectID, clusterID ClusterID)
// ManagementAssignProjectCluster Assign a cluster to a project (v1).
// (PUT /v1/management/projects/{projectID}/cluster/{clusterID})
ManagementAssignProjectCluster(c *gin.Context, projectID ProjectID, clusterID ClusterID)
// ManagementUpsertProjectLimits Reconcile effective limits for a project (v1).
// (PUT /v1/management/projects/{projectID}/limits)
ManagementUpsertProjectLimits(c *gin.Context, projectID ProjectID)
// ManagementApplyProjectMember Apply one versioned project member projection (v1).
// (PUT /v1/management/projects/{projectID}/members/{userID})
ManagementApplyProjectMember(c *gin.Context, projectID ProjectID, userID UserID)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteAdminClustersClusterID ¶
func (siw *ServerInterfaceWrapper) DeleteAdminClustersClusterID(c *gin.Context)
DeleteAdminClustersClusterID operation middleware
func (*ServerInterfaceWrapper) DeleteAdminTeamsTeamIDBan ¶
func (siw *ServerInterfaceWrapper) DeleteAdminTeamsTeamIDBan(c *gin.Context)
DeleteAdminTeamsTeamIDBan operation middleware
func (*ServerInterfaceWrapper) DeleteAdminTeamsTeamIDBlock ¶
func (siw *ServerInterfaceWrapper) DeleteAdminTeamsTeamIDBlock(c *gin.Context)
DeleteAdminTeamsTeamIDBlock operation middleware
func (*ServerInterfaceWrapper) GetAdminTeamsTeamIDCluster ¶
func (siw *ServerInterfaceWrapper) GetAdminTeamsTeamIDCluster(c *gin.Context)
GetAdminTeamsTeamIDCluster operation middleware
func (*ServerInterfaceWrapper) GetAdminUserProfilesUserId ¶
func (siw *ServerInterfaceWrapper) GetAdminUserProfilesUserId(c *gin.Context)
GetAdminUserProfilesUserId operation middleware
func (*ServerInterfaceWrapper) GetBuilds ¶
func (siw *ServerInterfaceWrapper) GetBuilds(c *gin.Context)
GetBuilds operation middleware
func (*ServerInterfaceWrapper) GetBuildsBuildId ¶
func (siw *ServerInterfaceWrapper) GetBuildsBuildId(c *gin.Context)
GetBuildsBuildId operation middleware
func (*ServerInterfaceWrapper) GetBuildsStatuses ¶
func (siw *ServerInterfaceWrapper) GetBuildsStatuses(c *gin.Context)
GetBuildsStatuses operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(c *gin.Context)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetSandboxesSandboxIDRecord ¶
func (siw *ServerInterfaceWrapper) GetSandboxesSandboxIDRecord(c *gin.Context)
GetSandboxesSandboxIDRecord operation middleware
func (*ServerInterfaceWrapper) GetTeamsResolve ¶
func (siw *ServerInterfaceWrapper) GetTeamsResolve(c *gin.Context)
GetTeamsResolve operation middleware
func (*ServerInterfaceWrapper) GetTeamsTeamIDLimits ¶
func (siw *ServerInterfaceWrapper) GetTeamsTeamIDLimits(c *gin.Context)
GetTeamsTeamIDLimits operation middleware
func (*ServerInterfaceWrapper) GetTeamsTeamIDMembers ¶
func (siw *ServerInterfaceWrapper) GetTeamsTeamIDMembers(c *gin.Context)
GetTeamsTeamIDMembers operation middleware
func (*ServerInterfaceWrapper) GetTeamsTeamIDStatus ¶
func (siw *ServerInterfaceWrapper) GetTeamsTeamIDStatus(c *gin.Context)
GetTeamsTeamIDStatus operation middleware
func (*ServerInterfaceWrapper) GetTemplates ¶
func (siw *ServerInterfaceWrapper) GetTemplates(c *gin.Context)
GetTemplates operation middleware
func (*ServerInterfaceWrapper) GetTemplatesDefaults ¶
func (siw *ServerInterfaceWrapper) GetTemplatesDefaults(c *gin.Context)
GetTemplatesDefaults operation middleware
func (*ServerInterfaceWrapper) GetTemplatesTemplateID ¶
func (siw *ServerInterfaceWrapper) GetTemplatesTemplateID(c *gin.Context)
GetTemplatesTemplateID operation middleware
func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsCount ¶
func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsCount(c *gin.Context)
GetTemplatesTemplateIDTagsCount operation middleware
func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsExists ¶
func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsExists(c *gin.Context)
GetTemplatesTemplateIDTagsExists operation middleware
func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsGroups ¶
func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsGroups(c *gin.Context)
GetTemplatesTemplateIDTagsGroups operation middleware
func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsTagAssignments ¶
func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsTagAssignments(c *gin.Context)
GetTemplatesTemplateIDTagsTagAssignments operation middleware
func (*ServerInterfaceWrapper) ManagementApplyProjectBlock ¶
func (siw *ServerInterfaceWrapper) ManagementApplyProjectBlock(c *gin.Context)
ManagementApplyProjectBlock operation middleware
func (*ServerInterfaceWrapper) ManagementApplyProjectMember ¶
func (siw *ServerInterfaceWrapper) ManagementApplyProjectMember(c *gin.Context)
ManagementApplyProjectMember operation middleware
func (*ServerInterfaceWrapper) ManagementAssignProjectCluster ¶
func (siw *ServerInterfaceWrapper) ManagementAssignProjectCluster(c *gin.Context)
ManagementAssignProjectCluster operation middleware
func (*ServerInterfaceWrapper) ManagementClusterDestroyReadiness ¶
func (siw *ServerInterfaceWrapper) ManagementClusterDestroyReadiness(c *gin.Context)
ManagementClusterDestroyReadiness operation middleware
func (*ServerInterfaceWrapper) ManagementDeleteCluster ¶
func (siw *ServerInterfaceWrapper) ManagementDeleteCluster(c *gin.Context)
ManagementDeleteCluster operation middleware
func (*ServerInterfaceWrapper) ManagementDeleteProject ¶
func (siw *ServerInterfaceWrapper) ManagementDeleteProject(c *gin.Context)
ManagementDeleteProject operation middleware
func (*ServerInterfaceWrapper) ManagementDetachProjectCluster ¶
func (siw *ServerInterfaceWrapper) ManagementDetachProjectCluster(c *gin.Context)
ManagementDetachProjectCluster operation middleware
func (*ServerInterfaceWrapper) ManagementRegisterCluster ¶
func (siw *ServerInterfaceWrapper) ManagementRegisterCluster(c *gin.Context)
ManagementRegisterCluster operation middleware
func (*ServerInterfaceWrapper) ManagementUpsertProject ¶
func (siw *ServerInterfaceWrapper) ManagementUpsertProject(c *gin.Context)
ManagementUpsertProject operation middleware
func (*ServerInterfaceWrapper) ManagementUpsertProjectLimits ¶
func (siw *ServerInterfaceWrapper) ManagementUpsertProjectLimits(c *gin.Context)
ManagementUpsertProjectLimits operation middleware
func (*ServerInterfaceWrapper) PostAdminClusters ¶
func (siw *ServerInterfaceWrapper) PostAdminClusters(c *gin.Context)
PostAdminClusters operation middleware
func (*ServerInterfaceWrapper) PostAdminTeamsBootstrap ¶
func (siw *ServerInterfaceWrapper) PostAdminTeamsBootstrap(c *gin.Context)
PostAdminTeamsBootstrap operation middleware
func (*ServerInterfaceWrapper) PostAdminUserProfilesByEmail ¶
func (siw *ServerInterfaceWrapper) PostAdminUserProfilesByEmail(c *gin.Context)
PostAdminUserProfilesByEmail operation middleware
func (*ServerInterfaceWrapper) PostAdminUserProfilesResolve ¶
func (siw *ServerInterfaceWrapper) PostAdminUserProfilesResolve(c *gin.Context)
PostAdminUserProfilesResolve operation middleware
func (*ServerInterfaceWrapper) PutAdminTeamsTeamIDBan ¶
func (siw *ServerInterfaceWrapper) PutAdminTeamsTeamIDBan(c *gin.Context)
PutAdminTeamsTeamIDBan operation middleware
func (*ServerInterfaceWrapper) PutAdminTeamsTeamIDBlock ¶
func (siw *ServerInterfaceWrapper) PutAdminTeamsTeamIDBlock(c *gin.Context)
PutAdminTeamsTeamIDBlock operation middleware
type TagAssignmentLimit ¶
type TagAssignmentLimit = int32
TagAssignmentLimit defines model for tag_assignment_limit.
type TagAssignmentsCursor ¶
type TagAssignmentsCursor = string
TagAssignmentsCursor defines model for tag_assignments_cursor.
type TagAssignmentsLimit ¶
type TagAssignmentsLimit = int32
TagAssignmentsLimit defines model for tag_assignments_limit.
type TagGroupsCursor ¶
type TagGroupsCursor = string
TagGroupsCursor defines model for tag_groups_cursor.
type TagGroupsLimit ¶
type TagGroupsLimit = int32
TagGroupsLimit defines model for tag_groups_limit.
type TagGroupsSearch ¶
type TagGroupsSearch = string
TagGroupsSearch defines model for tag_groups_search.
type TagGroupsSort ¶
type TagGroupsSort string
TagGroupsSort defines model for tag_groups_sort.
const ( TagGroupsSortLatestAsc TagGroupsSort = "latest_asc" TagGroupsSortLatestDesc TagGroupsSort = "latest_desc" TagGroupsSortNameAsc TagGroupsSort = "name_asc" TagGroupsSortNameDesc TagGroupsSort = "name_desc" )
Defines values for TagGroupsSort.
func (TagGroupsSort) Valid ¶
func (e TagGroupsSort) Valid() bool
Valid indicates whether the value is a known member of the TagGroupsSort enum.
type TeamLimitsResponse ¶
type TeamLimitsResponse struct {
Limits UserTeamLimits `json:"limits"`
// Tier The team's raw tier identifier, exactly as stored (not normalized to a catalog plan).
Tier string `json:"tier"`
}
TeamLimitsResponse defines model for TeamLimitsResponse.
type TeamMember ¶
type TeamMember struct {
AddedBy *openapi_types.UUID `json:"addedBy,omitempty"`
CreatedAt *time.Time `json:"createdAt"`
Email string `json:"email"`
Id openapi_types.UUID `json:"id"`
IsDefault bool `json:"isDefault"`
Name *string `json:"name,omitempty"`
ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"`
Providers []string `json:"providers"`
}
TeamMember defines model for TeamMember.
type TeamMembersResponse ¶
type TeamMembersResponse struct {
Members []TeamMember `json:"members"`
}
TeamMembersResponse defines model for TeamMembersResponse.
type TeamResolveResponse ¶
type TeamResolveResponse struct {
Id openapi_types.UUID `json:"id"`
Slug string `json:"slug"`
}
TeamResolveResponse defines model for TeamResolveResponse.
type TeamStatusResponse ¶
type TeamStatusResponse struct {
BlockedReason *string `json:"blockedReason"`
IsBanned bool `json:"isBanned"`
IsBlocked bool `json:"isBlocked"`
}
TeamStatusResponse defines model for TeamStatusResponse.
type TeamTemplate ¶
type TeamTemplate struct {
Aliases []string `json:"aliases"`
BuildCount int32 `json:"buildCount"`
BuildID openapi_types.UUID `json:"buildID"`
CpuCount int64 `json:"cpuCount"`
CreatedAt time.Time `json:"createdAt"`
CreatedBy *struct {
Email *string `json:"email,omitempty"`
Id openapi_types.UUID `json:"id"`
} `json:"createdBy"`
DefaultDescription *string `json:"defaultDescription,omitempty"`
DiskSizeMB *int64 `json:"diskSizeMB"`
EnvdVersion *string `json:"envdVersion"`
IsDefault bool `json:"isDefault"`
LastSpawnedAt *time.Time `json:"lastSpawnedAt"`
MemoryMB int64 `json:"memoryMB"`
Names []string `json:"names"`
Public bool `json:"public"`
SpawnCount int64 `json:"spawnCount"`
TemplateID string `json:"templateID"`
UpdatedAt time.Time `json:"updatedAt"`
}
TeamTemplate defines model for TeamTemplate.
type TeamTemplatesResponse ¶
type TeamTemplatesResponse struct {
Data []TeamTemplate `json:"data"`
// NextCursor Cursor to pass to the next list request, or `null` if there is no next page.
NextCursor *string `json:"nextCursor"`
}
TeamTemplatesResponse defines model for TeamTemplatesResponse.
type TemplateDetail ¶
type TemplateDetail struct {
// Aliases Aliases of the template.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Aliases []string `json:"aliases"`
// BuildCount Number of times the template was built.
BuildCount int32 `json:"buildCount"`
// BuildID Identifier of the latest ready build for the template, or the zero UUID when none.
BuildID string `json:"buildID"`
// CpuCount vCPU count of the latest ready default build, or `null` when none.
CpuCount *CPUCount `json:"cpuCount"`
// CreatedAt Time when the template was created.
CreatedAt time.Time `json:"createdAt"`
// DiskSizeMB Disk size in MiB of the latest ready default build, or `null` when none.
DiskSizeMB *DiskSizeMB `json:"diskSizeMB"`
// EnvdVersion envd version of the latest ready default build, or `null` when none.
EnvdVersion *string `json:"envdVersion"`
// LastSpawnedAt Time when the template was last used.
LastSpawnedAt *time.Time `json:"lastSpawnedAt"`
// MemoryMB Memory in MiB of the latest ready default build, or `null` when none.
MemoryMB *MemoryMB `json:"memoryMB"`
// Names Names of the template (namespace/alias format when namespaced).
Names []string `json:"names"`
// Public Whether the template is public or only accessible by the team.
Public bool `json:"public"`
// SpawnCount Number of times the template was used.
SpawnCount int64 `json:"spawnCount"`
// TemplateID Identifier of the template.
TemplateID string `json:"templateID"`
// UpdatedAt Time when the template was last updated.
UpdatedAt time.Time `json:"updatedAt"`
}
TemplateDetail Dashboard-shaped single-template read. Mirrors the infra-api `Template` schema fields the dashboard renders.
type TemplateTagAssignment ¶
type TemplateTagAssignment struct {
// AssignedAt Time when the tag was assigned to the build.
AssignedAt time.Time `json:"assignedAt"`
// AssignmentId Identifier of the tag assignment event.
AssignmentId openapi_types.UUID `json:"assignmentId"`
// BuildCreatedAt Time when the assigned build was created.
BuildCreatedAt time.Time `json:"buildCreatedAt"`
// BuildFinishedAt Time when the assigned build finished.
BuildFinishedAt *time.Time `json:"buildFinishedAt"`
// BuildId Identifier of the assigned build.
BuildId openapi_types.UUID `json:"buildId"`
}
TemplateTagAssignment defines model for TemplateTagAssignment.
type TemplateTagAssignmentsResponse ¶
type TemplateTagAssignmentsResponse struct {
// Data Ready assignment events for the tag, sorted latest first.
Data []TemplateTagAssignment `json:"data"`
// NextCursor Cursor to pass to the next list request, or `null` if there is no next page.
NextCursor *string `json:"nextCursor"`
}
TemplateTagAssignmentsResponse defines model for TemplateTagAssignmentsResponse.
type TemplateTagExistsResponse ¶
type TemplateTagExistsResponse struct {
// Exists Whether the template tag has at least one ready assignment.
Exists bool `json:"exists"`
// NormalizedTag Normalized template tag name.
NormalizedTag string `json:"normalizedTag"`
}
TemplateTagExistsResponse defines model for TemplateTagExistsResponse.
type TemplateTagGroup ¶
type TemplateTagGroup struct {
// Assignments Ready assignment events for this tag, sorted latest first.
Assignments []TemplateTagAssignment `json:"assignments"`
// HasMore Whether more ready assignment events exist beyond the requested assignment limit.
HasMore bool `json:"hasMore"`
// Tag Template tag name.
Tag string `json:"tag"`
}
TemplateTagGroup defines model for TemplateTagGroup.
type TemplateTagGroupsResponse ¶
type TemplateTagGroupsResponse struct {
// NextCursor Cursor to pass as `tagsCursor` for the next page, or `null` if there is no next page.
NextCursor *string `json:"nextCursor"`
Tags []TemplateTagGroup `json:"tags"`
}
TemplateTagGroupsResponse defines model for TemplateTagGroupsResponse.
type TemplateTagsCountResponse ¶
type TemplateTagsCountResponse struct {
// Total Total distinct ready tags for the template.
Total int64 `json:"total"`
}
TemplateTagsCountResponse defines model for TemplateTagsCountResponse.
type TemplatesCursor ¶
type TemplatesCursor = string
TemplatesCursor defines model for templates_cursor.
type TemplatesPublic ¶
type TemplatesPublic = bool
TemplatesPublic defines model for templates_public.
type TemplatesSearch ¶
type TemplatesSearch = string
TemplatesSearch defines model for templates_search.
type TemplatesSort ¶
type TemplatesSort string
TemplatesSort defines model for templates_sort.
const ( TemplatesSortCreatedAtAsc TemplatesSort = "created_at_asc" TemplatesSortCreatedAtDesc TemplatesSort = "created_at_desc" TemplatesSortUpdatedAtAsc TemplatesSort = "updated_at_asc" TemplatesSortUpdatedAtDesc TemplatesSort = "updated_at_desc" )
Defines values for TemplatesSort.
func (TemplatesSort) Valid ¶
func (e TemplatesSort) Valid() bool
Valid indicates whether the value is a known member of the TemplatesSort enum.
type UserTeamLimits ¶
type UserTeamLimits struct {
ConcurrentSandboxes int64 `json:"concurrentSandboxes"`
ConcurrentTemplateBuilds int64 `json:"concurrentTemplateBuilds"`
DiskMb int64 `json:"diskMb"`
EventsTtlDays int64 `json:"eventsTtlDays"`
MaxLengthHours int64 `json:"maxLengthHours"`
MaxRamMb int64 `json:"maxRamMb"`
MaxVcpu int64 `json:"maxVcpu"`
}
UserTeamLimits defines model for UserTeamLimits.