Documentation
¶
Index ¶
- Variables
- func CreateContext() *config.Context
- func EnsureConfigValidAccount() error
- func EnsureNoExistingAccount() error
- func FormatMessage(shortMessage string, longMessage string) string
- func PrintAccountDetails(account *cloudflare.Account, boundDevices []cloudflare.BoundDevice)
- func RunCommandFatal(cmd func() error)
- func SetDeviceName(ctx *config.Context, deviceName string) (*cloudflare.BoundDevice, error)
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 EnsureConfigValidAccount ¶ added in v2.2.29
func EnsureConfigValidAccount() error
func EnsureNoExistingAccount ¶ added in v2.2.29
func EnsureNoExistingAccount() error
func FormatMessage ¶
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.
Click to show internal directories.
Click to hide internal directories.