Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_TIME_FORMAT = "2006-01-02 15:04:05.999999999 -0700 MST"
Copied from format.go. Not sure why it's not exposed as a variable.
Variables ¶
View Source
var NoIpAddressFound = fmt.Errorf("Could not find IP address for current machine")
Functions ¶
Types ¶
type Lock ¶
type Lock interface { // Acquire a lock AcquireLock(terragruntOptions *options.TerragruntOptions) error // Release a lock ReleaseLock(terragruntOptions *options.TerragruntOptions) error // Print a string representation of the lock String() string }
Every type of lock must implement this interface
type LockMetadata ¶
type LockMetadata struct { StateFileId string Username string IpAddress string DateCreated time.Time }
This structure represents useful metadata about the lock, such as who acquired it, when, and from what IP
func CreateLockMetadata ¶
func CreateLockMetadata(stateFileId string, username string) (*LockMetadata, error)
Create the LockMetadata for the given state file and user
Click to show internal directories.
Click to hide internal directories.