cloudflare

package module
v0.0.0-...-611bec0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 68 Imported by: 2

Documentation

Index

Constants

View Source
const Kind edge.Kind = "cloudflare"

Variables

This section is empty.

Functions

func ListProjectResources

func ListProjectResources(ctx context.Context, namespace string, origin Origin, req provider.ProjectResourcesRequest) ([]provider.PhysicalResource, error)

func New

func New(namespace string, origin Origin, options Options) edge.Edge

func NewDNS

func NewDNS(zone string, origin Origin) edge.DNSRecords

func Shape

func Shape(site pricing.EdgeSite) (pricing.EdgeShape, error)

Types

type Options

type Options struct {
	Tunnel bool `` /* 133-byte string literal not displayed */
}

func DecodeOptions

func DecodeOptions(options provider.Options) (Options, error)

func (Options) Doc

func (Options) Doc() string

type Origin

type Origin struct {
	Scope   func(context.Context) (OriginScope, error)
	Records records.Store
}

type OriginScope

type OriginScope struct {
	Vendor string
	ID     string
}

func (OriginScope) String

func (o OriginScope) String() string

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(namespace string, origin Origin, options Options) *Proxy

func (*Proxy) Bootstrap

func (x *Proxy) Bootstrap(ctx context.Context, tier environment.Tier) (edge.BootstrapOutput, error)

func (*Proxy) DestroyPreviewWildcard

func (x *Proxy) DestroyPreviewWildcard(ctx context.Context, baseDomain string) error

func (*Proxy) DomainOwner

func (x *Proxy) DomainOwner(ctx context.Context, hostname string) (string, error)

func (*Proxy) Facts

func (x *Proxy) Facts() edge.Facts

func (*Proxy) Hooks

func (x *Proxy) Hooks() edge.Hooks

func (*Proxy) Kind

func (x *Proxy) Kind() edge.Kind

func (*Proxy) Open

func (x *Proxy) Open(state edge.StackState) (edge.EdgeStack, error)

func (*Proxy) PlanPreviewWildcardRemoval

func (x *Proxy) PlanPreviewWildcardRemoval(wildcard string) (removed, kept edge.PlanGroup, err error)

func (*Proxy) PlanProjectRemoval

func (x *Proxy) PlanProjectRemoval(scope edge.ProjectScope) ([]edge.PlanGroup, error)

func (*Proxy) PlanSharedPreviewRemoval

func (x *Proxy) PlanSharedPreviewRemoval() edge.PlanGroup

func (*Proxy) ProjectOwner

func (x *Proxy) ProjectOwner(ctx context.Context, slug string, tier environment.Tier) (string, error)

func (*Proxy) Reconcile

func (x *Proxy) Reconcile(ctx context.Context, spec edge.StackSpec, prior edge.StackState) (edge.EdgeStack, error)

func (*Proxy) ReconcilePreviewWildcard

func (x *Proxy) ReconcilePreviewWildcard(ctx context.Context, spec edge.PreviewWildcardSpec) (string, error)

func (*Proxy) Teardown

func (x *Proxy) Teardown(ctx context.Context, tier environment.Tier) error

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() Router

func (Router) Facts

func (r Router) Facts() router.Facts

func (Router) Hooks

func (r Router) Hooks() router.Hooks

func (Router) Kind

func (r Router) Kind() router.Kind

func (Router) Open

func (r Router) Open(state router.StackState) (router.Stack, error)

func (Router) Reconcile

func (r Router) Reconcile(_ context.Context, spec router.StackSpec, prior router.StackState) (router.Stack, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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