utils

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: BSD-4-Clause, MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Success = "✔"
	Error   = "✘"
)
View Source
const (
	TimeFormat = "2006/01/02 15:04:05"
)

Variables

This section is empty.

Functions

func AskAndStopFreeTrial

func AskAndStopFreeTrial(c *scalingo.Client, callback func() error) error

Ask the user wheter or not he wants to break his free trial. If not, return without doing anything. If yes, call the given callback function.

func IsCNAME

func IsCNAME(domain string) (bool, error)

func IsPaymentRequiredAndFreeTrialExceededError

func IsPaymentRequiredAndFreeTrialExceededError(err error) bool

Return true if the given error is because of a Payment Required error and the free trial is exceeded.

func IsRegionDisabledError

func IsRegionDisabledError(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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