cloudflare

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package cloudflare provides Cloudflare-specific implementations.

Package cloudflare provides Cloudflare-specific implementations.

Package cloudflare provides Cloudflare-specific implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNSService

func NewDNSService(token string, tunnelService ports.TunnelService, config *framework.Config) (*dnsService, error)

func NewTunnelService

func NewTunnelService(config *framework.Config) *tunnelService

Types

type Cloudflared

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

func NewCommand

func NewCommand(ctx context.Context, args ...string) *Cloudflared

func (*Cloudflared) ExecAsync added in v2.1.0

func (c *Cloudflared) ExecAsync() (int, error)

ExecAsync runs the command in the background and returns the PID immediately.

func (*Cloudflared) ExecSync added in v2.1.0

func (c *Cloudflared) ExecSync() (string, error)

ExecSync runs the command synchronously and waits for completion, returning output.

type CloudflaredConfig

type CloudflaredConfig struct {
	Tunnel          string                     `yaml:"tunnel" validate:"required"`
	Logfile         string                     `yaml:"logfile,omitempty"`
	Loglevel        string                     `yaml:"loglevel,omitempty"`
	CredentialsFile string                     `yaml:"credentials_file" validate:"required"`
	Ingress         []CloudflaredIngressConfig `yaml:"ingress" validate:"required"`
}

type CloudflaredIngressConfig

type CloudflaredIngressConfig struct {
	Service  string `yaml:"service" validate:"required"`
	Hostname string `yaml:"hostname" validate:"required"`
}

Jump to

Keyboard shortcuts

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