gcs

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: MPL-2.0 Imports: 24 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) DeleteWorkspace added in v0.12.0

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

DeleteWorkspace deletes the named workspaces. The "default" state cannot be deleted.

func (*Backend) StateMgr added in v0.12.0

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

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

func (*Backend) Workspaces added in v0.12.0

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

Workspaces returns a list of names for the workspaces 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