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
// Approvals holds writes made with an unattended credential until a human
// says yes. Nil disables the gate entirely, which is what a deployment that
// has not opted any key into it gets anyway.
Approvals *approval.Store
// ConsoleBaseURL is a manually configured fallback for where a person goes
// to decide. Normally empty: the hub publishes its own address on the
// cluster-config snapshot, and ConsoleBaseURLFn reads that live.
ConsoleBaseURL string
// ConsoleBaseURLFn reads the address the hub most recently published. Read
// per refusal rather than captured at startup, because the hub can
// republish and a stale link leads to the wrong place.
ConsoleBaseURLFn func() string
// ClusterID names this cluster in the console's approval URL, which is
// per-cluster because the approval is.
ClusterID 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
// VolumesEnabled reports whether Env-level PersistentVolumeClaim mounts are
// permitted on this deployment; surfaced through /v1/feature-gates.
VolumesEnabled bool
// Volume serves GET /v1/volumes.
Volume service.VolumeService
// 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.