shared

package
v2.2.30 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExistingAccount = errors2.New("existing account detected, refusing to overwrite")
View Source
var ErrNoAccount = errors2.New("no account detected, register one first")
View Source
var ErrTOSNotAccepted = errors2.New("TOS not accepted")

Functions

func CreateContext

func CreateContext() *config.Context

func EnsureConfigValidAccount added in v2.2.29

func EnsureConfigValidAccount() error

func EnsureNoExistingAccount added in v2.2.29

func EnsureNoExistingAccount() error

func FormatMessage

func FormatMessage(shortMessage string, longMessage string) string

func PrintAccountDetails added in v2.2.29

func PrintAccountDetails(account *cloudflare.Account, boundDevices []cloudflare.BoundDevice)

func RunCommandFatal added in v2.2.29

func RunCommandFatal(cmd func() error)

func SetDeviceName

func SetDeviceName(ctx *config.Context, deviceName string) (*cloudflare.BoundDevice, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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