Help us shape the future of Go! Take the 2026 Go Developer Survey

shared

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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 NewUserError added in v2.3.0

func NewUserError(message string) error

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

type UserError added in v2.3.0

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

func (*UserError) Error added in v2.3.0

func (e *UserError) Error() string

Jump to

Keyboard shortcuts

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