gcs

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package gcs implements remote storage of state on Google Cloud Storage (GCS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() backend.Backend

Types

type Backend added in v0.11.8

type Backend struct {
	*schema.Backend
	// contains filtered or unexported fields
}

Backend implements "backend".Backend for GCS. Input(), Validate() and Configure() are implemented by embedding *schema.Backend. State(), DeleteState() and States() are implemented explicitly.

func (*Backend) DeleteState added in v0.11.8

func (b *Backend) DeleteState(name string) error

DeleteState deletes the named state. The "default" state cannot be deleted.

func (*Backend) State added in v0.11.8

func (b *Backend) State(name string) (state.State, error)

State reads and returns the named state from GCS. If the named state does not yet exist, a new state file is created.

func (*Backend) States added in v0.11.8

func (b *Backend) States() ([]string, error)

States returns a list of names for the states found on GCS. The default state is always returned as the first element in the slice.

Jump to

Keyboard shortcuts

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