util

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniqueID

func UniqueID() string

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

type MultiErr added in v0.1.21

type MultiErr struct {
	// contains filtered or unexported fields
}

MultiErr is a meta error that can be used to track multiple errors in a routine (e.g., for loop) so that you can return all the errors in aggregate.

func (*MultiErr) Add added in v0.1.21

func (err *MultiErr) Add(newErr error)

NOTE: this must be a pointer method so that the errors list is updated on the same object

func (*MultiErr) Error added in v0.1.21

func (err *MultiErr) Error() string

func (*MultiErr) IsEmpty added in v0.1.21

func (err *MultiErr) IsEmpty() bool

Jump to

Keyboard shortcuts

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