shared

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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

func EnsureConfigValidAccount() error

func EnsureNoExistingAccount

func EnsureNoExistingAccount() error

func FormatMessage

func FormatMessage(shortMessage string, longMessage string) string

func PrintAccountDetails

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

func RunCommandFatal

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