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 HashManagerKey ¶
HashManagerKey follows the independent Worker's site-scoped credential protocol.
Types ¶
type Adapter ¶
type Adapter interface {
Inspect(context.Context, string, Request, Resources) (Inspection, error)
CreateDB(context.Context, string, Request, Resources) (string, error)
CreateBucket(context.Context, string, Request, Resources) (string, error)
ApplySchema(context.Context, string, Request, Resources, Seed) error
UploadWorker(context.Context, string, Request, Resources, string) error
EnableWorker(context.Context, string, Request, Resources) (string, error)
}
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 ¶
ProviderError intentionally excludes upstream text, request URLs and credentials.
func (*ProviderError) Error ¶
func (e *ProviderError) Error() string
Click to show internal directories.
Click to hide internal directories.