Documentation ¶
Overview ¶
Package utils provides several helper functions used throughout the library or useful to the upstream tools that implement the primary parts of the library
Index ¶
Constants ¶
View Source
const Base62Chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
View Source
const UniqueIDLength = 6 // Should be good for 62^6 = 56+ billion combinations
Variables ¶
This section is empty.
Functions ¶
func IndentBytes ¶
func UniqueID ¶
func UniqueID() string
UniqueID - Returns a unique (ish) id we can attach to resources and tfstate files, so they don't conflict with each other. Uses base 62 to generate a 6 character string that's unlikely to collide with the handful of tests we run in parallel. Based on code here: http://stackoverflow.com/a/9543797/483528
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.