s3

package
v0.0.0-...-3de1da0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocks

func GetLocks() (locks map[string]LockInfo, err error)

GetLocks returns a map of locks by State path

func GetState

func GetState(st, versionID string) (state *terraform.State, err error)

GetState retrieves a single State from the S3 bucket

func GetStates

func GetStates() (states []string, err error)

GetStates returns a slice of State files in the S3 bucket

func GetVersions

func GetVersions(prefix string) (versions []*s3.ObjectVersion, err error)

GetVersions returns a slice of AWS S3 Versions in the bucket

func Setup

func Setup(c *config.Config)

Setup sets up AWS S3 connection

Types

type Lock

type Lock struct {
	LockID string
	Info   string
}

Lock is a single State Lock

type LockInfo

type LockInfo struct {
	ID        string
	Operation string
	Info      string
	Who       string
	Version   string
	Created   *time.Time
	Path      string
}

LockInfo stores information on a State Lock

Jump to

Keyboard shortcuts

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