Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Services ¶
type Services struct {
Sandbox service.SandboxService
SandboxEnv service.SandboxEnvService
SandboxTemplate service.SandboxTemplateService
APIKey service.APIKeyService
Quota service.QuotaService
Organization service.OrganizationService
IAM service.IAMService
// KubeClientset and RestConfig are needed for the WebSocket terminal handler and log streaming.
KubeClientset kubernetes.Interface
RestConfig *rest.Config
// Sync and SyncToken enable the /v1/ws/sync endpoint for ws-proxy connections.
// When SyncToken is empty the endpoint is disabled.
Sync service.SyncService
SyncToken string
// Forwarder enables cross-cluster forwarding at the handler layer.
// localClusterID is embedded in the forwarder itself; no separate field needed.
// When Forwarder is nil, cross-cluster requests are rejected.
Forwarder *service.CrossClusterForwarder
// Cluster serves the /v1/clusters discovery endpoint. Must always be non-nil
// (single-cluster deployments can inject a service with nil store + empty
// localID; the endpoint then returns an empty catalog).
Cluster service.ClusterService
// QuotaProvider drives the /v1/feature-gates endpoint.
// Nil is accepted and treated as Noop downstream.
QuotaProvider quotaplugin.Provider
// InstanceTypeProvider drives the /v1/instancetypes endpoint and the
// matching `instanceType` flag on /v1/feature-gates. Nil is accepted and
// treated as Noop downstream.
InstanceTypeProvider instancetypeplugin.Provider
// ServerVersion is stamped onto every response via X-AgentBox-Server-Version.
// Comes from pkg/version.Version (injected at build time via -ldflags).
ServerVersion string
}
Services bundles all service interfaces needed by the router.
Click to show internal directories.
Click to hide internal directories.