env

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate added in v0.2.11

func Validate(stokenv string) error

func ValidateAndParse added in v0.2.11

func ValidateAndParse(stokenv string) (namespace string, workspace string, err error)

func WriteEnvFile added in v0.2.11

func WriteEnvFile(path, content string) error

Types

type StokEnv

type StokEnv string

A string identifying a namespaced workspace, according to the format $namespace/$workspace, with helper functions to read and write the string to the file .terraform/environment

func NewStokEnv

func NewStokEnv(namespace, workspace string) StokEnv

func ReadStokEnv

func ReadStokEnv(path string) (StokEnv, error)

func WithOptionalNamespace added in v0.2.11

func WithOptionalNamespace(stokenv string) StokEnv

func (StokEnv) Namespace

func (env StokEnv) Namespace() string

func (StokEnv) Workspace

func (env StokEnv) Workspace() string

func (StokEnv) Write

func (env StokEnv) Write(path string) error

Jump to

Keyboard shortcuts

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