Documentation ¶
Index ¶
- Constants
- Variables
- func Executable(str string) string
- func GetAssetsCachePath() (string, error)
- func GetAssetsPath() (string, error)
- func GetDeviceConfig() (*viper.Viper, error)
- func GetDeviceConfigPath() (string, error)
- func GetEnvelopesCachePath(version string) (string, error)
- func GetEsptoolPath() (string, error)
- func GetJaguarSnapshotPath() (string, error)
- func GetRepoPath() (string, bool)
- func GetSDKCachePath() (string, error)
- func GetSDKPath() (string, error)
- func GetSnapshotsCachePath() (string, error)
- func GetToitUserConfigPath() (string, error)
- func GetUserConfig() (*viper.Viper, error)
- func GetUserConfigPath() (string, error)
- func WriteConfig(cfg *viper.Viper) error
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 GetAssetsCachePath ¶ added in v1.6.9
func GetAssetsPath ¶ added in v1.6.9
func GetDeviceConfig ¶ added in v1.4.0
func GetDeviceConfigPath ¶ added in v1.4.0
func GetEnvelopesCachePath ¶ added in v1.10.4
func GetEsptoolPath ¶
func GetJaguarSnapshotPath ¶ added in v1.1.0
func GetRepoPath ¶ added in v1.10.4
func GetSDKCachePath ¶
func GetSDKPath ¶ added in v1.1.1
func GetSnapshotsCachePath ¶
func GetToitUserConfigPath ¶ added in v1.10.1
func GetUserConfig ¶
func GetUserConfigPath ¶
func WriteConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.