gcs

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MPL-2.0 Imports: 26 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

Types

type Backend

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

func (b *Backend) DeleteWorkspace(name string, _ bool) error

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

func (*Backend) StateMgr

func (b *Backend) StateMgr(name string) (statemgr.Full, 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

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