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 NewTunnelService ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.