Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func AuditPage(result *admin.AuditResult) templ.Component
- func DatacenterDetailPage(data DatacenterDetailData) templ.Component
- func DatacenterFormPage(data DatacenterFormData) templ.Component
- func DatacentersPage(data DatacentersPageData) templ.Component
- func DeployCreatePage(data DeployFormData) templ.Component
- func DeployRollbackPage(data RollbackFormData) templ.Component
- func DeploymentDetailPage(dep *deploy.Deployment, rel *deploy.Release) templ.Component
- func DeploymentsForWorkloadPage(w *workload.Workload, result *deploy.DeployListResult) templ.Component
- func DeploymentsPage(inst *instance.Instance, result *deploy.DeployListResult) templ.Component
- func DeploymentsSelectInstancePage(instances []*instance.Instance) templ.Component
- func DeploymentsSelectWorkloadPage(workloads []*workload.Workload) templ.Component
- func EventsPage(data EventsPageData) templ.Component
- func HealthPage(workloadRows []WorkloadHealthRow, instanceRows []InstanceHealthRow) templ.Component
- func InstanceDetailPage(data InstanceDetailData) templ.Component
- func InstancesPage(result *instance.ListResult) templ.Component
- func NetworkPage(inst *instance.Instance, domains []network.Domain, routes []network.Route, ...) templ.Component
- func NetworkSelectInstancePage(instances []*instance.Instance) templ.Component
- func OverviewPage(stats *admin.SystemStats, providers []admin.ProviderStatus, ...) templ.Component
- func ProviderDetailPage(data ProviderDetailData) templ.Component
- func ProvidersPage(data ProviderListData) templ.Component
- func SecretsPage(inst *instance.Instance, secs []secrets.Secret) templ.Component
- func SecretsSelectInstancePage(instances []*instance.Instance) templ.Component
- func TemplateDetailPage(data TemplateDetailPageData) templ.Component
- func TemplateFormPage(data TemplateFormData) templ.Component
- func TemplatesPage(data TemplateListPageData) templ.Component
- func TenantDetailPage(tenant *admin.Tenant, quota *admin.QuotaUsage) templ.Component
- func TenantsPage(result *admin.TenantListResult) templ.Component
- func WorkerDetailPage(data WorkerDetailData) templ.Component
- func WorkersPage(data WorkersPageData) templ.Component
- func WorkloadDetailPage(data WorkloadDetailData) templ.Component
- func WorkloadsPage(result *workload.ListResult) templ.Component
- type DatacenterDetailData
- type DatacenterFormData
- type DatacentersPageData
- type DeployFormData
- type EventsPageData
- type InstanceDetailData
- type InstanceHealthRow
- type ProviderDetailData
- type ProviderListData
- type PurgeSummary
- type RollbackFormData
- type TemplateDetailPageData
- type TemplateFormData
- type TemplateListPageData
- type WorkerDetailData
- type WorkersPageData
- type WorkloadDetailData
- type WorkloadHealthRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditPage ¶
func AuditPage(result *admin.AuditResult) templ.Component
AuditPage renders the audit log page.
func DatacenterDetailPage ¶
func DatacenterDetailPage(data DatacenterDetailData) templ.Component
DatacenterDetailPage renders the datacenter detail page.
func DatacenterFormPage ¶
func DatacenterFormPage(data DatacenterFormData) templ.Component
DatacenterFormPage renders the create datacenter form.
func DatacentersPage ¶
func DatacentersPage(data DatacentersPageData) templ.Component
DatacentersPage renders the datacenter list page.
func DeployCreatePage ¶
func DeployCreatePage(data DeployFormData) templ.Component
DeployCreatePage renders the create deployment form for a single instance. Workload-level deploys are created from the workload pages; this form is retained for ad-hoc per-instance deploys without template pre-fill.
func DeployRollbackPage ¶
func DeployRollbackPage(data RollbackFormData) templ.Component
DeployRollbackPage renders the rollback form page showing available releases.
func DeploymentDetailPage ¶
DeploymentDetailPage renders the detail view for a single deployment.
func DeploymentsForWorkloadPage ¶ added in v1.5.1
func DeploymentsForWorkloadPage(w *workload.Workload, result *deploy.DeployListResult) templ.Component
DeploymentsForWorkloadPage renders deployments aggregated across a workload's replicas. Each row is one Deploy record; the Instance column lets operators see which replica it ran against.
func DeploymentsPage ¶
DeploymentsPage renders the deployment list for a specific instance.
func DeploymentsSelectInstancePage ¶
DeploymentsSelectInstancePage renders a page prompting the user to select an instance.
func DeploymentsSelectWorkloadPage ¶ added in v1.5.1
DeploymentsSelectWorkloadPage renders the workload-centric landing for /deployments. Default for the route — instances are individual replicas in the workload-centric model, so showing them as the unit of selection was confusing.
func EventsPage ¶
func EventsPage(data EventsPageData) templ.Component
EventsPage renders the events stream page.
func HealthPage ¶
func HealthPage(workloadRows []WorkloadHealthRow, instanceRows []InstanceHealthRow) templ.Component
HealthPage renders the aggregate health overview. Workload rollup leads (since workload is the unit operators reason about in the new model); per-instance health follows underneath as a drill-down for stuck-replica forensics.
func InstanceDetailPage ¶
func InstanceDetailPage(data InstanceDetailData) templ.Component
InstanceDetailPage renders the full instance detail view with tabs.
func InstancesPage ¶
func InstancesPage(result *instance.ListResult) templ.Component
InstancesPage renders the instance list page.
func NetworkPage ¶
func NetworkPage(inst *instance.Instance, domains []network.Domain, routes []network.Route, activeTab string) templ.Component
NetworkPage renders the network management page for an instance.
func NetworkSelectInstancePage ¶
NetworkSelectInstancePage renders a page prompting the user to select an instance.
func OverviewPage ¶
func OverviewPage(stats *admin.SystemStats, providers []admin.ProviderStatus, recentInstances []*instance.Instance) templ.Component
OverviewPage renders the main dashboard overview.
func ProviderDetailPage ¶
func ProviderDetailPage(data ProviderDetailData) templ.Component
ProviderDetailPage renders the detail page for a single provider.
func ProvidersPage ¶
func ProvidersPage(data ProviderListData) templ.Component
ProvidersPage renders the providers overview page.
func SecretsPage ¶
SecretsPage renders the secrets management page for an instance.
func SecretsSelectInstancePage ¶
SecretsSelectInstancePage renders a page prompting the user to select an instance.
func TemplateDetailPage ¶
func TemplateDetailPage(data TemplateDetailPageData) templ.Component
TemplateDetailPage renders the template detail view.
Phase 1 scope: shows top-level template metadata + a per-service summary table. Per-service deep-edit (envs, secrets, configs, volumes, healthchecks) lands in Phase 2's dashboard refresh.
func TemplateFormPage ¶
func TemplateFormPage(data TemplateFormData) templ.Component
TemplateFormPage renders the create/edit form for a workload template.
Phase 1 scope: minimal form covering name, description, default kind, default strategy, notes, and a single Main service (image + CPU + memory). The full multi-service editor (sidecars, init containers, per-service envs/secrets/volumes) lands in the Phase 2 dashboard refresh.
func TemplatesPage ¶
func TemplatesPage(data TemplateListPageData) templ.Component
TemplatesPage renders the deployment templates list page.
func TenantDetailPage ¶
TenantDetailPage renders the tenant detail view.
func TenantsPage ¶
func TenantsPage(result *admin.TenantListResult) templ.Component
TenantsPage renders the tenant list page.
func WorkerDetailPage ¶
func WorkerDetailPage(data WorkerDetailData) templ.Component
WorkerDetailPage renders the detail page for a single worker.
func WorkersPage ¶
func WorkersPage(data WorkersPageData) templ.Component
WorkersPage renders the workers overview page.
func WorkloadDetailPage ¶ added in v1.5.1
func WorkloadDetailPage(data WorkloadDetailData) templ.Component
WorkloadDetailPage renders the workload detail view with tabs.
func WorkloadsPage ¶ added in v1.5.1
func WorkloadsPage(result *workload.ListResult) templ.Component
WorkloadsPage renders the workloads list page.
Types ¶
type DatacenterDetailData ¶
type DatacenterDetailData struct {
Datacenter *datacenter.Datacenter
Instances []*instance.Instance
BootstrapServices []*bootstrap.BootstrapWorkload
InstanceCount int
Tab string
}
DatacenterDetailData holds data for the datacenter detail page.
BootstrapServices is the list of platform-managed shared services attached to this datacenter (declarative + hook-contributed, reconciled by worker.Reconciler). Loaded only when Tab == "services" to keep the default Info / Instances / Capacity tabs cheap.
type DatacenterFormData ¶
type DatacenterFormData struct {
Providers []admin.ProviderStatus
Error string
Success string
RedirectURL string
}
DatacenterFormData holds data for the datacenter create form.
type DatacentersPageData ¶
type DatacentersPageData struct {
Datacenters []*datacenter.Datacenter
InstanceCounts map[string]int
Total int
StatusFilter string
}
DatacentersPageData holds data for the datacenters list page.
type DeployFormData ¶
type DeployFormData struct {
Instances []*instance.Instance
Instance *instance.Instance
Error string
Success string
RedirectURL string // When set, replaces the browser URL to prevent form resubmission on refresh.
}
DeployFormData holds data for the create deployment form page.
type EventsPageData ¶
EventsPageData holds data for the events stream page.
type InstanceDetailData ¶
type InstanceDetailData struct {
Instance *instance.Instance
Tab string
Deployments *deploy.DeployListResult
Releases *deploy.ReleaseListResult
Health *health.InstanceHealth
HealthChecks []health.HealthCheck
Domains []network.Domain
Routes []network.Route
Secrets []secrets.Secret
TelemetryDashboard *telemetry.DashboardData
// ParentWorkload is set when this instance is a replica of a
// workload (i.e., it carries the ctrlplane.workload label).
// Nil for standalone instances. Surfaced as a "Part of …"
// link in the instance detail header.
ParentWorkload *workload.Workload
}
InstanceDetailData holds all data needed to render the instance detail page.
type InstanceHealthRow ¶
type InstanceHealthRow struct {
Instance *instance.Instance
Health *health.InstanceHealth
}
InstanceHealthRow combines an instance with its health data for the health overview page.
type ProviderDetailData ¶
type ProviderDetailData struct {
Provider admin.ProviderStatus
Instances []*instance.Instance
HealthTest *admin.ProviderHealthResult
PurgeSummary *PurgeSummary
PurgeError string
}
ProviderDetailData holds data for a single provider detail page.
type ProviderListData ¶
type ProviderListData struct {
Providers []admin.ProviderStatus
}
ProviderListData holds data for the providers overview page.
type PurgeSummary ¶ added in v1.5.1
type PurgeSummary struct {
Provider string
WorkloadsDeleted int
InstancesDeleted int
WorkloadFailures []string
InstanceFailures []string
}
PurgeSummary records the outcome of the provider Purge All action. Populated by Contributor.purgeProvider; nil when no purge ran. Listed failures are best-effort surfaces — operators retry by hitting the button again.
type RollbackFormData ¶
type RollbackFormData struct {
Instance *instance.Instance
Releases []*deploy.Release
Error string
Success string
}
RollbackFormData holds data for the rollback form page.
type TemplateDetailPageData ¶
type TemplateDetailPageData struct {
Template *template.Template
Error string
Success string
RedirectURL string // When set, replaces the browser URL to prevent form resubmission on refresh.
}
TemplateDetailPageData holds data for a single template detail page.
type TemplateFormData ¶
type TemplateFormData struct {
Template *template.Template // nil for create, populated for edit.
Error string
Success string
}
TemplateFormData holds data for the create/edit template form page.
type TemplateListPageData ¶
type TemplateListPageData struct {
Templates *template.ListResult
}
TemplateListPageData holds data for the workload templates list page.
type WorkerDetailData ¶
type WorkerDetailData struct {
Worker worker.WorkerInfo
}
WorkerDetailData holds data for a single worker detail page.
type WorkersPageData ¶
type WorkersPageData struct {
Workers []worker.WorkerInfo
}
WorkersPageData holds data for the workers overview page.
type WorkloadDetailData ¶ added in v1.5.1
type WorkloadDetailData struct {
Workload *workload.Workload
Tab string
Replicas []*instance.Instance
Deployments *deploy.DeployListResult
Releases *deploy.ReleaseListResult
Health *workload.WorkloadHealth
Domains []network.Domain
Routes []network.Route
}
WorkloadDetailData holds everything the workload detail page renders across its tabs. Populated by Contributor.renderWorkloadDetail.
type WorkloadHealthRow ¶ added in v1.5.1
type WorkloadHealthRow struct {
Workload *workload.Workload
Health *workload.WorkloadHealth
}
WorkloadHealthRow combines a workload with its aggregate health for the health page's Workloads tab.
Source Files
¶
- audit_templ.go
- datacenter_detail_templ.go
- datacenter_form_templ.go
- datacenters_templ.go
- deploy_create_templ.go
- deploy_rollback_templ.go
- deployment_detail_templ.go
- deployments_templ.go
- events_templ.go
- health_templ.go
- helpers.go
- instance_detail_templ.go
- instances_templ.go
- network_templ.go
- overview_templ.go
- provider_detail_templ.go
- providers_templ.go
- secrets_templ.go
- template_detail_templ.go
- template_form_templ.go
- templates_templ.go
- tenant_detail_templ.go
- tenants_templ.go
- types.go
- worker_detail_templ.go
- workers_templ.go
- workload_detail_templ.go
- workloads_templ.go