addressplan

package
v0.39.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "stackkit.address-plan/v1"

Variables

This section is empty.

Functions

func BindPrefix

func BindPrefix(canonical []byte, prefix string) ([]byte, error)

BindPrefix returns a StackSpec candidate whose public route hosts exactly match the allocated prefix. The caller must pass the result through CUE validation before persisting or generating artifacts.

func BindZone

func BindZone(canonical []byte, zone string) ([]byte, error)

BindZone returns a StackSpec candidate served from the allocated install zone <zone>.<domain>: the zone becomes the stack's domain and every public route host is <service>.<zone>.<domain>. Cloud identity, TinyAuth and the renderer then derive their hosts and cookie scope from that domain exactly as for an own domain (decision D-72). The caller must pass the result through CUE validation before persisting or generating artifacts.

Types

type Plan

type Plan struct {
	APIVersion      string    `json:"api_version"`
	Provider        string    `json:"provider"`
	StackName       string    `json:"stack_name"`
	Domain          string    `json:"domain"`
	SubdomainPrefix string    `json:"subdomain_prefix,omitempty"`
	Services        []Service `json:"services"`
}

func FromCanonicalStackSpec

func FromCanonicalStackSpec(canonical []byte) (Plan, error)

FromCanonicalStackSpec projects the secret-free address-registration input from CUE-validated StackSpec intent. It performs no network or account work.

type Service

type Service struct {
	ServiceKey string `json:"service_key"`
	Host       string `json:"host"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL