utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LongSleep = 1100
View Source
const ShortSleep = 600

Variables

View Source
var (
	//InfoLog log to Stdout informations
	InfoLog = log.New(os.Stdout, "[INFO] ", log.Ltime)

	//WarnLog log to Stdout warning
	WarnLog = log.New(os.Stdout, "[WARN] ", log.Ltime)

	//ErrLog log to Stderr errors
	ErrLog = log.New(os.Stderr, "[ERROR] ", log.Ltime|log.Lshortfile)
)

Functions

func CheckAWSErrExpect404

func CheckAWSErrExpect404(err error, resourceName string)

CheckAWSErrExpect404 check the given error but let pass all 404 (ResourceNotFound) and simple log the string parameter

func CheckErr

func CheckErr(err error)

CheckErr give an exception if the given error is not nil

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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