Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLogin ¶
func CheckLogin() error
CheckLogin verifies that cloudflared has a valid certificate on disk.
func CleanupExposedTunnels ¶
CleanupExposedTunnels forcefully deletes any tunnels tracking to this user's exposed dev environment. Returns the number of tunnels cleaned up and any error.
func RouteDNS ¶
RouteDNS idempotently creates a CNAME routing domain → tunnel. Failures are treated as non-fatal (DNS may already be routed).
func TunnelStatus ¶
TunnelStatus returns a human-readable status string.
Types ¶
type Tunnel ¶
type Tunnel struct {
ID string `json:"id"`
Name string `json:"name"`
CreatedAt string `json:"created_at"`
}
Tunnel represents a Cloudflare tunnel entry from the API.
func EnsureTunnel ¶
EnsureTunnel returns the existing tunnel by name or creates a new one.
func ListExposedTunnels ¶
ListExposedTunnels returns all active exposed tunnels for this environment.
Click to show internal directories.
Click to hide internal directories.