Documentation
¶
Overview ¶
Package handlers implements the E2B-compatible StrictServerInterface generated by oapi-codegen. Supported operations delegate to the AgentBox service layer; unsupported operations return 501.
Index ¶
- func VaultRefsIn(rules []agentsv1alpha1.InjectionRule) []string
- type Server
- func (s *Server) DeleteAdminTeamsTeamIDApiKeysApiKeyID(_ context.Context, _ e2bgen.DeleteAdminTeamsTeamIDApiKeysApiKeyIDRequestObject) (e2bgen.DeleteAdminTeamsTeamIDApiKeysApiKeyIDResponseObject, error)
- func (s *Server) DeleteApiKeysApiKeyID(ctx context.Context, req e2bgen.DeleteApiKeysApiKeyIDRequestObject) (e2bgen.DeleteApiKeysApiKeyIDResponseObject, error)
- func (s *Server) DeleteClustersClusterIDRigsInstancesInstanceID(_ context.Context, ...) (e2bgen.DeleteClustersClusterIDRigsInstancesInstanceIDResponseObject, error)
- func (s *Server) DeleteEventsWebhooksWebhookID(_ context.Context, _ e2bgen.DeleteEventsWebhooksWebhookIDRequestObject) (e2bgen.DeleteEventsWebhooksWebhookIDResponseObject, error)
- func (s *Server) DeleteSandboxesSandboxID(ctx context.Context, req e2bgen.DeleteSandboxesSandboxIDRequestObject) (e2bgen.DeleteSandboxesSandboxIDResponseObject, error)
- func (s *Server) DeleteSecretsSecretID(ctx context.Context, req e2bgen.DeleteSecretsSecretIDRequestObject) (e2bgen.DeleteSecretsSecretIDResponseObject, error)
- func (s *Server) DeleteTemplatesTags(_ context.Context, _ e2bgen.DeleteTemplatesTagsRequestObject) (e2bgen.DeleteTemplatesTagsResponseObject, error)
- func (s *Server) DeleteTemplatesTemplateID(_ context.Context, _ e2bgen.DeleteTemplatesTemplateIDRequestObject) (e2bgen.DeleteTemplatesTemplateIDResponseObject, error)
- func (s *Server) DeleteVolumesVolumeID(_ context.Context, _ e2bgen.DeleteVolumesVolumeIDRequestObject) (e2bgen.DeleteVolumesVolumeIDResponseObject, error)
- func (s *Server) GetAdminSandboxesRunningCounts(_ context.Context, _ e2bgen.GetAdminSandboxesRunningCountsRequestObject) (e2bgen.GetAdminSandboxesRunningCountsResponseObject, error)
- func (s *Server) GetApiKeys(ctx context.Context, _ e2bgen.GetApiKeysRequestObject) (e2bgen.GetApiKeysResponseObject, error)
- func (s *Server) GetClustersClusterIDRigs(_ context.Context, _ e2bgen.GetClustersClusterIDRigsRequestObject) (e2bgen.GetClustersClusterIDRigsResponseObject, error)
- func (s *Server) GetClustersClusterIDRigsRigIDErrors(_ context.Context, _ e2bgen.GetClustersClusterIDRigsRigIDErrorsRequestObject) (e2bgen.GetClustersClusterIDRigsRigIDErrorsResponseObject, error)
- func (s *Server) GetClustersClusterIDRigsRigIDInstances(_ context.Context, ...) (e2bgen.GetClustersClusterIDRigsRigIDInstancesResponseObject, error)
- func (s *Server) GetEventsSandboxes(_ context.Context, _ e2bgen.GetEventsSandboxesRequestObject) (e2bgen.GetEventsSandboxesResponseObject, error)
- func (s *Server) GetEventsSandboxesSandboxID(_ context.Context, _ e2bgen.GetEventsSandboxesSandboxIDRequestObject) (e2bgen.GetEventsSandboxesSandboxIDResponseObject, error)
- func (s *Server) GetEventsWebhooks(_ context.Context, _ e2bgen.GetEventsWebhooksRequestObject) (e2bgen.GetEventsWebhooksResponseObject, error)
- func (s *Server) GetEventsWebhooksWebhookID(_ context.Context, _ e2bgen.GetEventsWebhooksWebhookIDRequestObject) (e2bgen.GetEventsWebhooksWebhookIDResponseObject, error)
- func (s *Server) GetEventsWebhooksWebhookIDDeliveries(_ context.Context, _ e2bgen.GetEventsWebhooksWebhookIDDeliveriesRequestObject) (e2bgen.GetEventsWebhooksWebhookIDDeliveriesResponseObject, error)
- func (s *Server) GetEventsWebhooksWebhookIDStats(_ context.Context, _ e2bgen.GetEventsWebhooksWebhookIDStatsRequestObject) (e2bgen.GetEventsWebhooksWebhookIDStatsResponseObject, error)
- func (s *Server) GetHealth(_ context.Context, _ e2bgen.GetHealthRequestObject) (e2bgen.GetHealthResponseObject, error)
- func (s *Server) GetNodes(_ context.Context, _ e2bgen.GetNodesRequestObject) (e2bgen.GetNodesResponseObject, error)
- func (s *Server) GetNodesNodeID(_ context.Context, _ e2bgen.GetNodesNodeIDRequestObject) (e2bgen.GetNodesNodeIDResponseObject, error)
- func (s *Server) GetSandboxes(ctx context.Context, _ e2bgen.GetSandboxesRequestObject) (e2bgen.GetSandboxesResponseObject, error)
- func (s *Server) GetSandboxesMetrics(ctx context.Context, req e2bgen.GetSandboxesMetricsRequestObject) (e2bgen.GetSandboxesMetricsResponseObject, error)
- func (s *Server) GetSandboxesSandboxID(ctx context.Context, req e2bgen.GetSandboxesSandboxIDRequestObject) (e2bgen.GetSandboxesSandboxIDResponseObject, error)
- func (s *Server) GetSandboxesSandboxIDLogs(ctx context.Context, req e2bgen.GetSandboxesSandboxIDLogsRequestObject) (e2bgen.GetSandboxesSandboxIDLogsResponseObject, error)
- func (s *Server) GetSandboxesSandboxIDMetrics(ctx context.Context, req e2bgen.GetSandboxesSandboxIDMetricsRequestObject) (e2bgen.GetSandboxesSandboxIDMetricsResponseObject, error)
- func (s *Server) GetSecrets(ctx context.Context, req e2bgen.GetSecretsRequestObject) (e2bgen.GetSecretsResponseObject, error)
- func (s *Server) GetSecretsSecretID(ctx context.Context, req e2bgen.GetSecretsSecretIDRequestObject) (e2bgen.GetSecretsSecretIDResponseObject, error)
- func (s *Server) GetSnapshots(_ context.Context, _ e2bgen.GetSnapshotsRequestObject) (e2bgen.GetSnapshotsResponseObject, error)
- func (s *Server) GetTeams(_ context.Context, _ e2bgen.GetTeamsRequestObject) (e2bgen.GetTeamsResponseObject, error)
- func (s *Server) GetTeamsTeamIDMetrics(_ context.Context, _ e2bgen.GetTeamsTeamIDMetricsRequestObject) (e2bgen.GetTeamsTeamIDMetricsResponseObject, error)
- func (s *Server) GetTeamsTeamIDMetricsMax(_ context.Context, _ e2bgen.GetTeamsTeamIDMetricsMaxRequestObject) (e2bgen.GetTeamsTeamIDMetricsMaxResponseObject, error)
- func (s *Server) GetTemplates(ctx context.Context, _ e2bgen.GetTemplatesRequestObject) (e2bgen.GetTemplatesResponseObject, error)
- func (s *Server) GetTemplatesAliasesAlias(_ context.Context, _ e2bgen.GetTemplatesAliasesAliasRequestObject) (e2bgen.GetTemplatesAliasesAliasResponseObject, error)
- func (s *Server) GetTemplatesTemplateID(ctx context.Context, req e2bgen.GetTemplatesTemplateIDRequestObject) (e2bgen.GetTemplatesTemplateIDResponseObject, error)
- func (s *Server) GetTemplatesTemplateIDBuildsBuildIDLogs(_ context.Context, ...) (e2bgen.GetTemplatesTemplateIDBuildsBuildIDLogsResponseObject, error)
- func (s *Server) GetTemplatesTemplateIDBuildsBuildIDStatus(_ context.Context, ...) (e2bgen.GetTemplatesTemplateIDBuildsBuildIDStatusResponseObject, error)
- func (s *Server) GetTemplatesTemplateIDFilesHash(_ context.Context, _ e2bgen.GetTemplatesTemplateIDFilesHashRequestObject) (e2bgen.GetTemplatesTemplateIDFilesHashResponseObject, error)
- func (s *Server) GetTemplatesTemplateIDTags(_ context.Context, _ e2bgen.GetTemplatesTemplateIDTagsRequestObject) (e2bgen.GetTemplatesTemplateIDTagsResponseObject, error)
- func (s *Server) GetV2Sandboxes(ctx context.Context, req e2bgen.GetV2SandboxesRequestObject) (e2bgen.GetV2SandboxesResponseObject, error)
- func (s *Server) GetV2SandboxesSandboxIDLogs(ctx context.Context, req e2bgen.GetV2SandboxesSandboxIDLogsRequestObject) (e2bgen.GetV2SandboxesSandboxIDLogsResponseObject, error)
- func (s *Server) GetV2Templates(_ context.Context, _ e2bgen.GetV2TemplatesRequestObject) (e2bgen.GetV2TemplatesResponseObject, error)
- func (s *Server) GetVolumes(_ context.Context, _ e2bgen.GetVolumesRequestObject) (e2bgen.GetVolumesResponseObject, error)
- func (s *Server) GetVolumesVolumeID(_ context.Context, _ e2bgen.GetVolumesVolumeIDRequestObject) (e2bgen.GetVolumesVolumeIDResponseObject, error)
- func (s *Server) PatchApiKeysApiKeyID(_ context.Context, _ e2bgen.PatchApiKeysApiKeyIDRequestObject) (e2bgen.PatchApiKeysApiKeyIDResponseObject, error)
- func (s *Server) PatchEventsWebhooksWebhookID(_ context.Context, _ e2bgen.PatchEventsWebhooksWebhookIDRequestObject) (e2bgen.PatchEventsWebhooksWebhookIDResponseObject, error)
- func (s *Server) PatchTemplatesTemplateID(_ context.Context, _ e2bgen.PatchTemplatesTemplateIDRequestObject) (e2bgen.PatchTemplatesTemplateIDResponseObject, error)
- func (s *Server) PatchV2TemplatesTemplateID(_ context.Context, _ e2bgen.PatchV2TemplatesTemplateIDRequestObject) (e2bgen.PatchV2TemplatesTemplateIDResponseObject, error)
- func (s *Server) PostAdminTeamsTeamIDApiKeys(_ context.Context, _ e2bgen.PostAdminTeamsTeamIDApiKeysRequestObject) (e2bgen.PostAdminTeamsTeamIDApiKeysResponseObject, error)
- func (s *Server) PostAdminTeamsTeamIDBuildsCancel(_ context.Context, _ e2bgen.PostAdminTeamsTeamIDBuildsCancelRequestObject) (e2bgen.PostAdminTeamsTeamIDBuildsCancelResponseObject, error)
- func (s *Server) PostAdminTeamsTeamIDSandboxesKill(_ context.Context, _ e2bgen.PostAdminTeamsTeamIDSandboxesKillRequestObject) (e2bgen.PostAdminTeamsTeamIDSandboxesKillResponseObject, error)
- func (s *Server) PostApiKeys(ctx context.Context, req e2bgen.PostApiKeysRequestObject) (e2bgen.PostApiKeysResponseObject, error)
- func (s *Server) PostEventsWebhooks(_ context.Context, _ e2bgen.PostEventsWebhooksRequestObject) (e2bgen.PostEventsWebhooksResponseObject, error)
- func (s *Server) PostNodesNodeID(_ context.Context, _ e2bgen.PostNodesNodeIDRequestObject) (e2bgen.PostNodesNodeIDResponseObject, error)
- func (s *Server) PostSandboxes(ctx context.Context, req e2bgen.PostSandboxesRequestObject) (e2bgen.PostSandboxesResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDConnect(ctx context.Context, req e2bgen.PostSandboxesSandboxIDConnectRequestObject) (e2bgen.PostSandboxesSandboxIDConnectResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDFork(_ context.Context, _ e2bgen.PostSandboxesSandboxIDForkRequestObject) (e2bgen.PostSandboxesSandboxIDForkResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDPause(_ context.Context, _ e2bgen.PostSandboxesSandboxIDPauseRequestObject) (e2bgen.PostSandboxesSandboxIDPauseResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDRefreshes(ctx context.Context, req e2bgen.PostSandboxesSandboxIDRefreshesRequestObject) (e2bgen.PostSandboxesSandboxIDRefreshesResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDResume(_ context.Context, _ e2bgen.PostSandboxesSandboxIDResumeRequestObject) (e2bgen.PostSandboxesSandboxIDResumeResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDSnapshots(_ context.Context, _ e2bgen.PostSandboxesSandboxIDSnapshotsRequestObject) (e2bgen.PostSandboxesSandboxIDSnapshotsResponseObject, error)
- func (s *Server) PostSandboxesSandboxIDTimeout(ctx context.Context, req e2bgen.PostSandboxesSandboxIDTimeoutRequestObject) (e2bgen.PostSandboxesSandboxIDTimeoutResponseObject, error)
- func (s *Server) PostSecrets(ctx context.Context, req e2bgen.PostSecretsRequestObject) (e2bgen.PostSecretsResponseObject, error)
- func (s *Server) PostSecretsSecretID(ctx context.Context, req e2bgen.PostSecretsSecretIDRequestObject) (e2bgen.PostSecretsSecretIDResponseObject, error)
- func (s *Server) PostTemplatesTags(_ context.Context, _ e2bgen.PostTemplatesTagsRequestObject) (e2bgen.PostTemplatesTagsResponseObject, error)
- func (s *Server) PostV2Sandboxes(ctx context.Context, req e2bgen.PostV2SandboxesRequestObject) (e2bgen.PostV2SandboxesResponseObject, error)
- func (s *Server) PostV2SandboxesSandboxIDConnect(ctx context.Context, req e2bgen.PostV2SandboxesSandboxIDConnectRequestObject) (e2bgen.PostV2SandboxesSandboxIDConnectResponseObject, error)
- func (s *Server) PostV2TemplatesTemplateIDBuildsBuildID(_ context.Context, ...) (e2bgen.PostV2TemplatesTemplateIDBuildsBuildIDResponseObject, error)
- func (s *Server) PostV3Templates(_ context.Context, _ e2bgen.PostV3TemplatesRequestObject) (e2bgen.PostV3TemplatesResponseObject, error)
- func (s *Server) PostVolumes(_ context.Context, _ e2bgen.PostVolumesRequestObject) (e2bgen.PostVolumesResponseObject, error)
- func (s *Server) PutClustersClusterIDRigsRigIDCapacity(_ context.Context, _ e2bgen.PutClustersClusterIDRigsRigIDCapacityRequestObject) (e2bgen.PutClustersClusterIDRigsRigIDCapacityResponseObject, error)
- func (s *Server) PutSandboxesSandboxIDNetwork(ctx context.Context, req e2bgen.PutSandboxesSandboxIDNetworkRequestObject) (e2bgen.PutSandboxesSandboxIDNetworkResponseObject, error)
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VaultRefsIn ¶ added in v0.0.10
func VaultRefsIn(rules []agentsv1alpha1.InjectionRule) []string
VaultRefsIn returns every vault entry name referenced by these rules.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements e2bgen.StrictServerInterface. Supported: GET/POST /sandboxes, GET/DELETE /sandboxes/:id, POST /sandboxes/:id/timeout,
GET /templates, GET /templates/:id, GET/POST/DELETE /api-keys, GET /health
Every other operation answers 501 with a message naming the alternative; see unsupported.go.
func (*Server) DeleteAdminTeamsTeamIDApiKeysApiKeyID ¶ added in v0.0.7
func (s *Server) DeleteAdminTeamsTeamIDApiKeysApiKeyID(_ context.Context, _ e2bgen.DeleteAdminTeamsTeamIDApiKeysApiKeyIDRequestObject) (e2bgen.DeleteAdminTeamsTeamIDApiKeysApiKeyIDResponseObject, error)
func (*Server) DeleteApiKeysApiKeyID ¶
func (s *Server) DeleteApiKeysApiKeyID(ctx context.Context, req e2bgen.DeleteApiKeysApiKeyIDRequestObject) (e2bgen.DeleteApiKeysApiKeyIDResponseObject, error)
func (*Server) DeleteClustersClusterIDRigsInstancesInstanceID ¶ added in v0.0.11
func (s *Server) DeleteClustersClusterIDRigsInstancesInstanceID(_ context.Context, _ e2bgen.DeleteClustersClusterIDRigsInstancesInstanceIDRequestObject) (e2bgen.DeleteClustersClusterIDRigsInstancesInstanceIDResponseObject, error)
func (*Server) DeleteEventsWebhooksWebhookID ¶ added in v0.0.11
func (s *Server) DeleteEventsWebhooksWebhookID(_ context.Context, _ e2bgen.DeleteEventsWebhooksWebhookIDRequestObject) (e2bgen.DeleteEventsWebhooksWebhookIDResponseObject, error)
func (*Server) DeleteSandboxesSandboxID ¶
func (s *Server) DeleteSandboxesSandboxID(ctx context.Context, req e2bgen.DeleteSandboxesSandboxIDRequestObject) (e2bgen.DeleteSandboxesSandboxIDResponseObject, error)
func (*Server) DeleteSecretsSecretID ¶ added in v0.0.10
func (s *Server) DeleteSecretsSecretID(ctx context.Context, req e2bgen.DeleteSecretsSecretIDRequestObject) (e2bgen.DeleteSecretsSecretIDResponseObject, error)
func (*Server) DeleteTemplatesTags ¶
func (s *Server) DeleteTemplatesTags(_ context.Context, _ e2bgen.DeleteTemplatesTagsRequestObject) (e2bgen.DeleteTemplatesTagsResponseObject, error)
func (*Server) DeleteTemplatesTemplateID ¶
func (s *Server) DeleteTemplatesTemplateID(_ context.Context, _ e2bgen.DeleteTemplatesTemplateIDRequestObject) (e2bgen.DeleteTemplatesTemplateIDResponseObject, error)
func (*Server) DeleteVolumesVolumeID ¶
func (s *Server) DeleteVolumesVolumeID(_ context.Context, _ e2bgen.DeleteVolumesVolumeIDRequestObject) (e2bgen.DeleteVolumesVolumeIDResponseObject, error)
func (*Server) GetAdminSandboxesRunningCounts ¶ added in v0.0.10
func (s *Server) GetAdminSandboxesRunningCounts(_ context.Context, _ e2bgen.GetAdminSandboxesRunningCountsRequestObject) (e2bgen.GetAdminSandboxesRunningCountsResponseObject, error)
func (*Server) GetApiKeys ¶
func (s *Server) GetApiKeys(ctx context.Context, _ e2bgen.GetApiKeysRequestObject) (e2bgen.GetApiKeysResponseObject, error)
func (*Server) GetClustersClusterIDRigs ¶ added in v0.0.11
func (s *Server) GetClustersClusterIDRigs(_ context.Context, _ e2bgen.GetClustersClusterIDRigsRequestObject) (e2bgen.GetClustersClusterIDRigsResponseObject, error)
func (*Server) GetClustersClusterIDRigsRigIDErrors ¶ added in v0.0.11
func (s *Server) GetClustersClusterIDRigsRigIDErrors(_ context.Context, _ e2bgen.GetClustersClusterIDRigsRigIDErrorsRequestObject) (e2bgen.GetClustersClusterIDRigsRigIDErrorsResponseObject, error)
func (*Server) GetClustersClusterIDRigsRigIDInstances ¶ added in v0.0.11
func (s *Server) GetClustersClusterIDRigsRigIDInstances(_ context.Context, _ e2bgen.GetClustersClusterIDRigsRigIDInstancesRequestObject) (e2bgen.GetClustersClusterIDRigsRigIDInstancesResponseObject, error)
func (*Server) GetEventsSandboxes ¶ added in v0.0.11
func (s *Server) GetEventsSandboxes(_ context.Context, _ e2bgen.GetEventsSandboxesRequestObject) (e2bgen.GetEventsSandboxesResponseObject, error)
func (*Server) GetEventsSandboxesSandboxID ¶ added in v0.0.11
func (s *Server) GetEventsSandboxesSandboxID(_ context.Context, _ e2bgen.GetEventsSandboxesSandboxIDRequestObject) (e2bgen.GetEventsSandboxesSandboxIDResponseObject, error)
func (*Server) GetEventsWebhooks ¶ added in v0.0.11
func (s *Server) GetEventsWebhooks(_ context.Context, _ e2bgen.GetEventsWebhooksRequestObject) (e2bgen.GetEventsWebhooksResponseObject, error)
func (*Server) GetEventsWebhooksWebhookID ¶ added in v0.0.11
func (s *Server) GetEventsWebhooksWebhookID(_ context.Context, _ e2bgen.GetEventsWebhooksWebhookIDRequestObject) (e2bgen.GetEventsWebhooksWebhookIDResponseObject, error)
func (*Server) GetEventsWebhooksWebhookIDDeliveries ¶ added in v0.0.11
func (s *Server) GetEventsWebhooksWebhookIDDeliveries(_ context.Context, _ e2bgen.GetEventsWebhooksWebhookIDDeliveriesRequestObject) (e2bgen.GetEventsWebhooksWebhookIDDeliveriesResponseObject, error)
func (*Server) GetEventsWebhooksWebhookIDStats ¶ added in v0.0.11
func (s *Server) GetEventsWebhooksWebhookIDStats(_ context.Context, _ e2bgen.GetEventsWebhooksWebhookIDStatsRequestObject) (e2bgen.GetEventsWebhooksWebhookIDStatsResponseObject, error)
func (*Server) GetHealth ¶
func (s *Server) GetHealth(_ context.Context, _ e2bgen.GetHealthRequestObject) (e2bgen.GetHealthResponseObject, error)
func (*Server) GetNodes ¶
func (s *Server) GetNodes(_ context.Context, _ e2bgen.GetNodesRequestObject) (e2bgen.GetNodesResponseObject, error)
func (*Server) GetNodesNodeID ¶
func (s *Server) GetNodesNodeID(_ context.Context, _ e2bgen.GetNodesNodeIDRequestObject) (e2bgen.GetNodesNodeIDResponseObject, error)
func (*Server) GetSandboxes ¶
func (s *Server) GetSandboxes(ctx context.Context, _ e2bgen.GetSandboxesRequestObject) (e2bgen.GetSandboxesResponseObject, error)
func (*Server) GetSandboxesMetrics ¶
func (s *Server) GetSandboxesMetrics(ctx context.Context, req e2bgen.GetSandboxesMetricsRequestObject) (e2bgen.GetSandboxesMetricsResponseObject, error)
func (*Server) GetSandboxesSandboxID ¶
func (s *Server) GetSandboxesSandboxID(ctx context.Context, req e2bgen.GetSandboxesSandboxIDRequestObject) (e2bgen.GetSandboxesSandboxIDResponseObject, error)
func (*Server) GetSandboxesSandboxIDLogs ¶
func (s *Server) GetSandboxesSandboxIDLogs(ctx context.Context, req e2bgen.GetSandboxesSandboxIDLogsRequestObject) (e2bgen.GetSandboxesSandboxIDLogsResponseObject, error)
func (*Server) GetSandboxesSandboxIDMetrics ¶
func (s *Server) GetSandboxesSandboxIDMetrics(ctx context.Context, req e2bgen.GetSandboxesSandboxIDMetricsRequestObject) (e2bgen.GetSandboxesSandboxIDMetricsResponseObject, error)
func (*Server) GetSecrets ¶ added in v0.0.10
func (s *Server) GetSecrets(ctx context.Context, req e2bgen.GetSecretsRequestObject) (e2bgen.GetSecretsResponseObject, error)
func (*Server) GetSecretsSecretID ¶ added in v0.0.10
func (s *Server) GetSecretsSecretID(ctx context.Context, req e2bgen.GetSecretsSecretIDRequestObject) (e2bgen.GetSecretsSecretIDResponseObject, error)
func (*Server) GetSnapshots ¶
func (s *Server) GetSnapshots(_ context.Context, _ e2bgen.GetSnapshotsRequestObject) (e2bgen.GetSnapshotsResponseObject, error)
func (*Server) GetTeams ¶
func (s *Server) GetTeams(_ context.Context, _ e2bgen.GetTeamsRequestObject) (e2bgen.GetTeamsResponseObject, error)
func (*Server) GetTeamsTeamIDMetrics ¶
func (s *Server) GetTeamsTeamIDMetrics(_ context.Context, _ e2bgen.GetTeamsTeamIDMetricsRequestObject) (e2bgen.GetTeamsTeamIDMetricsResponseObject, error)
func (*Server) GetTeamsTeamIDMetricsMax ¶
func (s *Server) GetTeamsTeamIDMetricsMax(_ context.Context, _ e2bgen.GetTeamsTeamIDMetricsMaxRequestObject) (e2bgen.GetTeamsTeamIDMetricsMaxResponseObject, error)
func (*Server) GetTemplates ¶
func (s *Server) GetTemplates(ctx context.Context, _ e2bgen.GetTemplatesRequestObject) (e2bgen.GetTemplatesResponseObject, error)
func (*Server) GetTemplatesAliasesAlias ¶
func (s *Server) GetTemplatesAliasesAlias(_ context.Context, _ e2bgen.GetTemplatesAliasesAliasRequestObject) (e2bgen.GetTemplatesAliasesAliasResponseObject, error)
func (*Server) GetTemplatesTemplateID ¶
func (s *Server) GetTemplatesTemplateID(ctx context.Context, req e2bgen.GetTemplatesTemplateIDRequestObject) (e2bgen.GetTemplatesTemplateIDResponseObject, error)
func (*Server) GetTemplatesTemplateIDBuildsBuildIDLogs ¶
func (s *Server) GetTemplatesTemplateIDBuildsBuildIDLogs(_ context.Context, _ e2bgen.GetTemplatesTemplateIDBuildsBuildIDLogsRequestObject) (e2bgen.GetTemplatesTemplateIDBuildsBuildIDLogsResponseObject, error)
func (*Server) GetTemplatesTemplateIDBuildsBuildIDStatus ¶
func (s *Server) GetTemplatesTemplateIDBuildsBuildIDStatus(_ context.Context, _ e2bgen.GetTemplatesTemplateIDBuildsBuildIDStatusRequestObject) (e2bgen.GetTemplatesTemplateIDBuildsBuildIDStatusResponseObject, error)
func (*Server) GetTemplatesTemplateIDFilesHash ¶
func (s *Server) GetTemplatesTemplateIDFilesHash(_ context.Context, _ e2bgen.GetTemplatesTemplateIDFilesHashRequestObject) (e2bgen.GetTemplatesTemplateIDFilesHashResponseObject, error)
func (*Server) GetTemplatesTemplateIDTags ¶
func (s *Server) GetTemplatesTemplateIDTags(_ context.Context, _ e2bgen.GetTemplatesTemplateIDTagsRequestObject) (e2bgen.GetTemplatesTemplateIDTagsResponseObject, error)
func (*Server) GetV2Sandboxes ¶
func (s *Server) GetV2Sandboxes(ctx context.Context, req e2bgen.GetV2SandboxesRequestObject) (e2bgen.GetV2SandboxesResponseObject, error)
GetV2Sandboxes is the paginated list endpoint the current E2B SDK targets (GET /v2/sandboxes). It applies the same namespace/team/user scoping as the legacy GetSandboxes, then filters by the optional metadata/state query params and returns one page. The next-page cursor is returned via the "x-next-token" response header — the SDK paginator reads it there and stops once it is absent.
func (*Server) GetV2SandboxesSandboxIDLogs ¶
func (s *Server) GetV2SandboxesSandboxIDLogs(ctx context.Context, req e2bgen.GetV2SandboxesSandboxIDLogsRequestObject) (e2bgen.GetV2SandboxesSandboxIDLogsResponseObject, error)
func (*Server) GetV2Templates ¶ added in v0.0.10
func (s *Server) GetV2Templates(_ context.Context, _ e2bgen.GetV2TemplatesRequestObject) (e2bgen.GetV2TemplatesResponseObject, error)
func (*Server) GetVolumes ¶
func (s *Server) GetVolumes(_ context.Context, _ e2bgen.GetVolumesRequestObject) (e2bgen.GetVolumesResponseObject, error)
func (*Server) GetVolumesVolumeID ¶
func (s *Server) GetVolumesVolumeID(_ context.Context, _ e2bgen.GetVolumesVolumeIDRequestObject) (e2bgen.GetVolumesVolumeIDResponseObject, error)
func (*Server) PatchApiKeysApiKeyID ¶
func (s *Server) PatchApiKeysApiKeyID(_ context.Context, _ e2bgen.PatchApiKeysApiKeyIDRequestObject) (e2bgen.PatchApiKeysApiKeyIDResponseObject, error)
func (*Server) PatchEventsWebhooksWebhookID ¶ added in v0.0.11
func (s *Server) PatchEventsWebhooksWebhookID(_ context.Context, _ e2bgen.PatchEventsWebhooksWebhookIDRequestObject) (e2bgen.PatchEventsWebhooksWebhookIDResponseObject, error)
func (*Server) PatchTemplatesTemplateID ¶
func (s *Server) PatchTemplatesTemplateID(_ context.Context, _ e2bgen.PatchTemplatesTemplateIDRequestObject) (e2bgen.PatchTemplatesTemplateIDResponseObject, error)
func (*Server) PatchV2TemplatesTemplateID ¶
func (s *Server) PatchV2TemplatesTemplateID(_ context.Context, _ e2bgen.PatchV2TemplatesTemplateIDRequestObject) (e2bgen.PatchV2TemplatesTemplateIDResponseObject, error)
func (*Server) PostAdminTeamsTeamIDApiKeys ¶ added in v0.0.7
func (s *Server) PostAdminTeamsTeamIDApiKeys(_ context.Context, _ e2bgen.PostAdminTeamsTeamIDApiKeysRequestObject) (e2bgen.PostAdminTeamsTeamIDApiKeysResponseObject, error)
func (*Server) PostAdminTeamsTeamIDBuildsCancel ¶
func (s *Server) PostAdminTeamsTeamIDBuildsCancel(_ context.Context, _ e2bgen.PostAdminTeamsTeamIDBuildsCancelRequestObject) (e2bgen.PostAdminTeamsTeamIDBuildsCancelResponseObject, error)
func (*Server) PostAdminTeamsTeamIDSandboxesKill ¶
func (s *Server) PostAdminTeamsTeamIDSandboxesKill(_ context.Context, _ e2bgen.PostAdminTeamsTeamIDSandboxesKillRequestObject) (e2bgen.PostAdminTeamsTeamIDSandboxesKillResponseObject, error)
func (*Server) PostApiKeys ¶
func (s *Server) PostApiKeys(ctx context.Context, req e2bgen.PostApiKeysRequestObject) (e2bgen.PostApiKeysResponseObject, error)
func (*Server) PostEventsWebhooks ¶ added in v0.0.11
func (s *Server) PostEventsWebhooks(_ context.Context, _ e2bgen.PostEventsWebhooksRequestObject) (e2bgen.PostEventsWebhooksResponseObject, error)
func (*Server) PostNodesNodeID ¶
func (s *Server) PostNodesNodeID(_ context.Context, _ e2bgen.PostNodesNodeIDRequestObject) (e2bgen.PostNodesNodeIDResponseObject, error)
func (*Server) PostSandboxes ¶
func (s *Server) PostSandboxes(ctx context.Context, req e2bgen.PostSandboxesRequestObject) (e2bgen.PostSandboxesResponseObject, error)
func (*Server) PostSandboxesSandboxIDConnect ¶
func (s *Server) PostSandboxesSandboxIDConnect(ctx context.Context, req e2bgen.PostSandboxesSandboxIDConnectRequestObject) (e2bgen.PostSandboxesSandboxIDConnectResponseObject, error)
PostSandboxesSandboxIDConnect re-attaches to a sandbox by ID, returning the same shape create does so an SDK can rebuild its handle from an ID alone.
Upstream, connect resumes a *paused* sandbox. AgentBox has no pause — a sandbox is either running in its pool Pod or gone — so here it means "attach to a running one", and a sandbox that was killed or expired is a 404 (which the SDKs surface as sandbox-not-found).
The timeout in the body is applied as upstream defines it: expiry becomes now plus that value, so it can move a deadline in either direction. Note that the SDKs default it (300s in Python), so a bare connect() shortens a sandbox that was created with a longer timeout — pass the timeout you want, or use POST /sandboxes/{id}/timeout to set one without re-attaching. A missing or non-positive value leaves the deadline alone rather than failing the attach.
func (*Server) PostSandboxesSandboxIDFork ¶ added in v0.0.10
func (s *Server) PostSandboxesSandboxIDFork(_ context.Context, _ e2bgen.PostSandboxesSandboxIDForkRequestObject) (e2bgen.PostSandboxesSandboxIDForkResponseObject, error)
func (*Server) PostSandboxesSandboxIDPause ¶
func (s *Server) PostSandboxesSandboxIDPause(_ context.Context, _ e2bgen.PostSandboxesSandboxIDPauseRequestObject) (e2bgen.PostSandboxesSandboxIDPauseResponseObject, error)
func (*Server) PostSandboxesSandboxIDRefreshes ¶
func (s *Server) PostSandboxesSandboxIDRefreshes(ctx context.Context, req e2bgen.PostSandboxesSandboxIDRefreshesRequestObject) (e2bgen.PostSandboxesSandboxIDRefreshesResponseObject, error)
func (*Server) PostSandboxesSandboxIDResume ¶
func (s *Server) PostSandboxesSandboxIDResume(_ context.Context, _ e2bgen.PostSandboxesSandboxIDResumeRequestObject) (e2bgen.PostSandboxesSandboxIDResumeResponseObject, error)
func (*Server) PostSandboxesSandboxIDSnapshots ¶
func (s *Server) PostSandboxesSandboxIDSnapshots(_ context.Context, _ e2bgen.PostSandboxesSandboxIDSnapshotsRequestObject) (e2bgen.PostSandboxesSandboxIDSnapshotsResponseObject, error)
func (*Server) PostSandboxesSandboxIDTimeout ¶
func (s *Server) PostSandboxesSandboxIDTimeout(ctx context.Context, req e2bgen.PostSandboxesSandboxIDTimeoutRequestObject) (e2bgen.PostSandboxesSandboxIDTimeoutResponseObject, error)
func (*Server) PostSecrets ¶ added in v0.0.10
func (s *Server) PostSecrets(ctx context.Context, req e2bgen.PostSecretsRequestObject) (e2bgen.PostSecretsResponseObject, error)
func (*Server) PostSecretsSecretID ¶ added in v0.0.10
func (s *Server) PostSecretsSecretID(ctx context.Context, req e2bgen.PostSecretsSecretIDRequestObject) (e2bgen.PostSecretsSecretIDResponseObject, error)
func (*Server) PostTemplatesTags ¶
func (s *Server) PostTemplatesTags(_ context.Context, _ e2bgen.PostTemplatesTagsRequestObject) (e2bgen.PostTemplatesTagsResponseObject, error)
func (*Server) PostV2Sandboxes ¶ added in v0.0.11
func (s *Server) PostV2Sandboxes(ctx context.Context, req e2bgen.PostV2SandboxesRequestObject) (e2bgen.PostV2SandboxesResponseObject, error)
PostV2Sandboxes serves POST /v2/sandboxes.
func (*Server) PostV2SandboxesSandboxIDConnect ¶ added in v0.0.11
func (s *Server) PostV2SandboxesSandboxIDConnect(ctx context.Context, req e2bgen.PostV2SandboxesSandboxIDConnectRequestObject) (e2bgen.PostV2SandboxesSandboxIDConnectResponseObject, error)
PostV2SandboxesSandboxIDConnect serves POST /v2/sandboxes/{sandboxID}/connect.
Upstream defaults an omitted v2 timeout to 300s. Here an omitted timeout leaves the deadline alone, as it does on v1: the SDKs always send one, and silently shortening a sandbox created with a longer timeout is the worse failure for a caller that did not send it.
func (*Server) PostV2TemplatesTemplateIDBuildsBuildID ¶
func (s *Server) PostV2TemplatesTemplateIDBuildsBuildID(_ context.Context, _ e2bgen.PostV2TemplatesTemplateIDBuildsBuildIDRequestObject) (e2bgen.PostV2TemplatesTemplateIDBuildsBuildIDResponseObject, error)
func (*Server) PostV3Templates ¶
func (s *Server) PostV3Templates(_ context.Context, _ e2bgen.PostV3TemplatesRequestObject) (e2bgen.PostV3TemplatesResponseObject, error)
func (*Server) PostVolumes ¶
func (s *Server) PostVolumes(_ context.Context, _ e2bgen.PostVolumesRequestObject) (e2bgen.PostVolumesResponseObject, error)
func (*Server) PutClustersClusterIDRigsRigIDCapacity ¶ added in v0.0.11
func (s *Server) PutClustersClusterIDRigsRigIDCapacity(_ context.Context, _ e2bgen.PutClustersClusterIDRigsRigIDCapacityRequestObject) (e2bgen.PutClustersClusterIDRigsRigIDCapacityResponseObject, error)
func (*Server) PutSandboxesSandboxIDNetwork ¶ added in v0.0.7
func (s *Server) PutSandboxesSandboxIDNetwork(ctx context.Context, req e2bgen.PutSandboxesSandboxIDNetworkRequestObject) (e2bgen.PutSandboxesSandboxIDNetworkResponseObject, error)
PutSandboxesSandboxIDNetwork replaces a running sandbox's egress filtering. Per E2B's contract the body is a full replacement: an omitted field clears it, so an empty body means "unrestricted" rather than "leave as it was".
type Services ¶
type Services struct {
Sandbox service.SandboxService
APIKey service.APIKeyService
// Vault serves the /secrets endpoints. Nil leaves them answering 501, so a
// deployment without a vault behaves as it did before rather than
// pretending to have an empty one.
Vault service.VaultService
// Federation exposes other clusters' Env capacity for the template listing.
// Nil lists only this cluster's Envs.
Federation *federation.Registry
// LocalClusterID identifies this cluster in federation records.
LocalClusterID string
// Metrics queries the cluster's metrics backend. Nil disables the metrics
// endpoints.
Metrics *promclient.Client
// MetricsSelector returns the PromQL label matcher for this cluster. Nil
// means no cluster scoping, which is only correct for a backend that serves
// a single cluster.
MetricsSelector func() string
// Forwarder enables cross-cluster forwarding via E2B API.
// localClusterID is embedded in the forwarder itself; no separate field needed.
// When Forwarder is nil, cross-cluster requests will be rejected.
Forwarder *service.CrossClusterForwarder
}
Services bundles service dependencies for E2B handlers.