utils

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 7 Imported by: 5

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 Indent

func Indent(s, prefix string) string

func IndentBytes

func IndentBytes(b, prefix []byte) []byte

func IsTrue

func IsTrue(s string) bool

func Prompt

func Prompt(expect string) error

Prompt creates a prompt for direct user interaction to receive input

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.

Jump to

Keyboard shortcuts

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