utilities

package
v0.0.0-...-a4d1c73 Latest Latest
Warning

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

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

Documentation

Overview

Package utilities provides various helpers used here and there over the code base.

Index

Constants

View Source
const Motto = "Swiss army knife for AWS CloudFormation templates"

Motto - perun's motto.

View Source
const ReleaseName = "Altostratus"

ReleaseName - name of the release.

View Source
const VersionNumber = "1.3.1"

VersionNumber - number of the release.

Variables

This section is empty.

Functions

func CheckErrorCodeAndExit

func CheckErrorCodeAndExit(err error)

CheckErrorCodeAndExit checks if error exists and exits with 1 or 0 code.

func CheckFlagAndExit

func CheckFlagAndExit(valid bool)

CheckFlagAndExit checks error flag exits with 1 or 0 code.

func TruncateDuration

func TruncateDuration(d time.Duration) time.Duration

TruncateDuration prepares shorter message with duration.

func VersionStatus

func VersionStatus() string

VersionStatus shows perun's release.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳