env

package
v0.86.104 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: GPL-3.0 Imports: 14 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)

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]interface{} `json:"connections,omitempty" yaml:"connections,omitempty"`
	Variables   map[string]string      `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