Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deploy ¶
Deploy runs the edge deployment against Cloudflare's v4 API. Tests provide an httptest client and API base URL.
func ResetLogin ¶ added in v0.1.49
ResetLogin puts a fresh one-time recovery-token hash on the admin Worker and prints the matching link once.
Types ¶
type Options ¶
type Options struct {
Host string
Name string
D1Location string
BundleDir string
// Version is the release tag to download (vX.Y.Z). DefaultVersion is used when neither Version nor BundleDir is given:
// the tag of this binary's own release, empty for a development build (which then needs --version or --bundle).
Version string
DefaultVersion string
Resume bool
DryRun bool
Rollback bool
InsecureSkipSignature bool
Token string
StatePath string
PublicKey ed25519.PublicKey
APIBaseURL string
GitHubDownloadBaseURL string
HTTPClient *http.Client
Now func() time.Time
Random io.Reader
PollInterval time.Duration
PollAttempts int
Sleep func(context.Context, time.Duration) error
DecoyURL string
Resolve func(context.Context, string) ([]netip.Addr, error)
}
type RecoveryOptions ¶ added in v0.1.49
type RecoveryOptions struct {
StatePath string
Token string
AdminLogin string
DryRun bool
APIBaseURL string
HTTPClient *http.Client
Random io.Reader
}
RecoveryOptions contains only local configuration and the API token from CLOUDFLARE_API_TOKEN. The recovery token is created for this call and is never added to the deployment file.