Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v0.87.9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HomeDir         = os.Getenv("SLING_HOME_DIR")
	DbNetDir        = os.Getenv("DBNET_HOME_DIR")
	HomeDirEnvFile  = ""
	DbNetDirEnvFile = ""
	Env             = &EnvFile{}
)

Functions

func FlattenEnvFile

func FlattenEnvFile(filePath string) (env map[string]string, err error)

func InitLogger

func InitLogger()

InitLogger initializes the g Logger

func NormalizeEnvFile

func NormalizeEnvFile(filePath string) (env map[string]interface{}, err error)

func WriteEnvFile added in v0.86.114

func WriteEnvFile(path string, ef EnvFile) (err error)

func WriteSlingEnvFile added in v0.86.114

func WriteSlingEnvFile(ef EnvFile) (err error)

Types

type Conn

type Conn struct {
	Name        string
	Description string
	Source      string
	Connection  connection.Connection
}

func GetLocalConns

func GetLocalConns() []Conn

type EnvFile added in v0.86.56

type EnvFile struct {
	Connections map[string]map[string]interface{} `json:"connections,omitempty" yaml:"connections,omitempty"`
	Variables   map[string]interface{}            `json:"variables,omitempty" yaml:"variables,omitempty"`
	Worker      map[string]string                 `json:"worker,omitempty" yaml:"worker,omitempty"`
}

func LoadEnvFile added in v0.86.56

func LoadEnvFile(path string) (ef EnvFile)

func LoadSlingEnvFile added in v0.86.56

func LoadSlingEnvFile() (ef EnvFile)

Jump to

Keyboard shortcuts

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