Help us shape the future of Go! Take the 2026 Go Developer Survey

edgeprovision

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package edgeprovision creates isolated GoRun Edge resources in an explicitly approved Cloudflare account. It never modifies DNS or imports Full site data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactSHA

func ArtifactSHA() string

func Available

func Available() bool

func HashManagerKey

func HashManagerKey(siteID, key string) string

HashManagerKey follows the independent Worker's site-scoped credential protocol.

Types

type Adapter

Adapter methods perform one bounded stage. The controller must persist a running checkpoint before each mutation and stop for reconciliation whenever the provider outcome is uncertain. The adapter never retries mutations.

func NewAdapter

func NewAdapter() Adapter

type Inspection

type Inspection struct {
	AccountID        string `json:"account_id"`
	WorkersSubdomain string `json:"workers_subdomain"`
	WorkerAvailable  bool   `json:"worker_available"`
	D1Available      bool   `json:"d1_available"`
	BucketAvailable  bool   `json:"bucket_available"`
	// Read access cannot prove write permission without making a change.
	WritePermissionsVerified bool     `json:"write_permissions_verified"`
	RequiredPermissions      []string `json:"required_permissions"`
}

type ProviderError

type ProviderError struct {
	Stage  string
	Status int
	Code   int
}

ProviderError intentionally excludes upstream text, request URLs and credentials.

func (*ProviderError) Error

func (e *ProviderError) Error() string

type Request

type Request struct {
	Label     string `json:"label"`
	Worker    string `json:"worker"`
	SiteID    string `json:"site_id"`
	Title     string `json:"title"`
	Locale    string `json:"locale"`
	AccountID string `json:"account_id"`
}

type Resources

type Resources struct {
	Worker   string `json:"worker"`
	D1Name   string `json:"d1_name"`
	R2Bucket string `json:"r2_bucket"`
	D1ID     string `json:"d1_id,omitempty"`
	Origin   string `json:"origin,omitempty"`
}

type Seed

type Seed struct {
	ManagerID      string
	ManagerKeyHash string
	ManagerKeyHint string
}

Jump to

Keyboard shortcuts

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