directory

package
v1.36.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserConfigPathEnv if set, will load the user config from that path.
	UserConfigPathEnv    = "JAG_USER_CONFIG_PATH"
	DeviceConfigPathEnv  = "JAG_DEVICE_CONFIG_PATH"
	SnapshotCachePathEnv = "JAG_SNAPSHOT_CACHE_PATH"

	ToitUserConfigPathEnv = "TOIT_CONFIG_FILE"

	// ToitPathEnv: Path to the Toit SDK build.
	ToitRepoPathEnv = "JAG_TOIT_REPO_PATH"
	// WifiSSIDEnv if set will use this wifi ssid.
	WifiSSIDEnv = "JAG_WIFI_SSID"
	// WifiPasswordEnv if set will use this wifi password.
	WifiPasswordEnv = "JAG_WIFI_PASSWORD"
)

Variables

View Source
var IsReleaseBuild = false

Hackishly set by main.go.

Functions

func Executable

func Executable(str string) string

func GetAssetsCachePath added in v1.6.9

func GetAssetsCachePath() (string, error)

func GetAssetsPath added in v1.6.9

func GetAssetsPath() (string, error)

func GetDeviceConfig added in v1.4.0

func GetDeviceConfig() (*viper.Viper, error)

func GetDeviceConfigPath added in v1.4.0

func GetDeviceConfigPath() (string, error)

func GetEnvelopesCachePath added in v1.10.4

func GetEnvelopesCachePath(version string) (string, error)

func GetEsptoolPath

func GetEsptoolPath() (string, error)

func GetJaguarSnapshotPath added in v1.1.0

func GetJaguarSnapshotPath() (string, error)

func GetRepoPath added in v1.10.4

func GetRepoPath() (string, bool)

func GetSDKCachePath

func GetSDKCachePath() (string, error)

func GetSDKPath added in v1.1.1

func GetSDKPath() (string, error)

func GetSnapshotsCachePath

func GetSnapshotsCachePath() (string, error)

func GetToitUserConfigPath added in v1.10.1

func GetToitUserConfigPath() (string, error)

func GetUserConfig

func GetUserConfig() (*viper.Viper, error)

func GetUserConfigPath

func GetUserConfigPath() (string, error)

func WriteConfig

func WriteConfig(cfg *viper.Viper) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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