Versions in this module Expand all Collapse all v0 v0.22.0 Aug 3, 2026 Changes in this version + func BundleRepositoryFor(b computev1alpha1.BundleRef) (*remote.Repository, error) v0.21.0 Jul 30, 2026 Changes in this version + func BuildResidentConfig(in ResidentConfigInput) (string, error) + func BuildWorkerdConfig(in BuildInput) (string, error) + func BundleImageRef(b computev1alpha1.BundleRef) (string, error) + func CleanModulePath(p string) string + func FetchBundle(ctx context.Context, b computev1alpha1.BundleRef) (computev1alpha1.BundleManifest, map[string][]byte, error) + func FetchBundleManifest(ctx context.Context, b computev1alpha1.BundleRef) (computev1alpha1.BundleManifest, error) + func FetchBundleModules(ctx context.Context, b computev1alpha1.BundleRef) (map[string][]byte, error) + func Main() + func SetPlatformPullTLS(fn PlatformPullTLSFunc) + func StartChildReaper() + type BuildInput struct + AssetsDir string + Config computev1alpha1.ServiceConfigSpec + Manifest computev1alpha1.BundleManifest + Secrets map[string]string + Socket SocketSpec + type Config struct + ImageBaseDir string + RootDir string + StateDir string + type DNSApplier interface + ApplyDNS func(apply DNSApply) (uint64, error) + type DNSApply struct + Bindings []vpcdns.Binding + Generation uint64 + Zones []string + type EgressApplier interface + ApplyEgress func(apply EgressApply) (uint64, error) + type EgressApply struct + Generation uint64 + InvocationID string + Services []sandbox.ServiceEgress + type EgressState struct + DNSBindings []vpcdns.Binding + DNSGeneration uint64 + DNSZones []string + Generation uint64 + InvocationID string + Services []sandbox.ServiceEgress + type PlatformPullTLSFunc func(registryHost string) (*tls.Config, bool) + type PullCredentials = auth.Credential + func BundlePullCredentials(b computev1alpha1.BundleRef) (PullCredentials, error) + type Resident struct + InboundSocket string + Phase sandbox.SandboxPhase + Revision string + SandboxID sandbox.SandboxID + SandboxIP netip.Addr + Socket SocketSpec + Tenant string + type ResidentConfig struct + ControlForwardAddr string + ControlHostAddr string + ImageBaseDir string + ListenAddr string + OverlayNetnsPathFunc func(tenant string) string + RootDir string + StateDir string + Tenant string + WorkerdImage string + type ResidentConfigInput struct + ManagerAddr string + SocketAddr string + type ResidentFactory struct + func NewResidentFactory(base ResidentConfig) (*ResidentFactory, error) + func (f *ResidentFactory) CleanupOrphans(ctx context.Context) error + func (f *ResidentFactory) NewResident(tenant, controlHostAddr string) (ResidentRuntime, error) + type ResidentHost struct + func (h *ResidentHost) ApplyDNS(apply DNSApply) (uint64, error) + func (h *ResidentHost) ApplyEgress(apply EgressApply) (uint64, error) + func (h *ResidentHost) EnsureResident(ctx context.Context) (*ResidentInstance, error) + func (h *ResidentHost) Stop(ctx context.Context) error + type ResidentInstance struct + InboundSocket string + SandboxID sandbox.SandboxID + SandboxIP netip.Addr + type ResidentRef struct + Bundle computev1alpha1.BundleRef + Config computev1alpha1.ServiceConfigSpec + Revision string + Socket SocketSpec + Tenant string + type ResidentRuntime interface + EnsureResident func(ctx context.Context) (*ResidentInstance, error) + Stop func(ctx context.Context) error + type Runtime struct + func NewRuntime(cfg Config) (*Runtime, error) + func (r *Runtime) Cleanup(ctx context.Context) error + func (r *Runtime) Ensure(ctx context.Context, want ResidentRef) (*Resident, error) + func (r *Runtime) List() []*Resident + func (r *Runtime) Stop(ctx context.Context, tenant string) error + type SocketKind int + const FilterSocket + const HTTPSocket + func (k SocketKind) String() string + type SocketSpec struct + Addr string + Kind SocketKind + type WorkerDefinition struct + CompatibilityDate string + CompatibilityFlags []string + Env map[string]string + MainModule string + Modules map[string]moduleContent + func BuildWorkerDefinition(manifest computev1alpha1.BundleManifest, cfg computev1alpha1.ServiceConfigSpec, ...) (WorkerDefinition, error)