env

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpaceWorkingDir      = "SPACE_APP_DIR"
	LogLevel             = "LOG_LEVEL"
	IpfsAddr             = "IPFS_ADDR"
	IpfsNode             = "IPFS_NODE"
	IpfsNodeAddr         = "IPFS_NODE_ADDR"
	IpfsNodePath         = "IPFS_NODE_PATH"
	ServicesAPIURL       = "SERVICES_API_URL"
	VaultAPIURL          = "VAULT_API_URL"
	VaultSaltSecret      = "VAULT_SALT_SECRET"
	ServicesHubAuthURL   = "SERVICES_HUB_AUTH_URL"
	SpaceStorageSiteUrl  = "SPACE_STORAGE_SITE_URL"
	TextileHubTarget     = "TXL_HUB_TARGET"
	TextileHubMa         = "TXL_HUB_MA"
	TextileThreadsTarget = "TXL_THREADS_TARGET"
	TextileHubGatewayUrl = "TXL_HUB_GATEWAY_URL"
	TextileUserKey       = "TXL_USER_KEY"
	TextileUserSecret    = "TXL_USER_SECRET"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpaceEnv

type SpaceEnv interface {
	CurrentFolder() (string, error)
	WorkingFolder() string
	LogLevel() string
}

func New

func New() SpaceEnv

Loads environment from .env file for dev mode

func NewDefault

func NewDefault() SpaceEnv

TODO: use this one after figuring textile keys

Jump to

Keyboard shortcuts

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