config

package
v0.0.0-...-c0ffb5f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PlatformerDir is the filepath to the .platformer directory
	PlatformerDir string

	// ConfigPath is the filepath to the Configuration (yaml) file
	ConfigPath string

	// LogFile is the filepath to debug-logs
	LogFile string
)

Functions

func GetDefaultContextURL

func GetDefaultContextURL() string

func GetDefaultOrg

func GetDefaultOrg() string

GetDefaultOrg retrieves the saved default org name from the local config. Returns an empty string if the value is not set.

func GetDefaultProject

func GetDefaultProject() string

GetDefaultProject retrieves the saved default project name from the local config. Returns an empty string if the value is not set.

func GetToken

func GetToken() string

GetToken retrieves the locally stored perm.token Returns an empty string if the value is not set.

func InitDebugLogFile

func InitDebugLogFile() (*os.File, error)

InitDebugLogFile initializes the debug-log file (create/append) and returns a pointer to the file.

func InitPlatformerDirectory

func InitPlatformerDirectory() error

InitPlatformerDirectory prepares the .platformer directory structure required by the CLI. Creates new folders and files if they do not exist.

func RemoveToken

func RemoveToken()

RemoveToken removes the locally saved token

func SaveToken

func SaveToken(token string)

SaveToken saves the given permanent token to the local config

func SetDefaultContextURL

func SetDefaultContextURL(url string)

func SetDefaultOrg

func SetDefaultOrg(orgName string)

SetDefaultOrg saves a given organization name to the local config

func SetDefaultProject

func SetDefaultProject(projectName string)

SetDefaultProject saves a given project name to the local config

Types

This section is empty.

Jump to

Keyboard shortcuts

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