Documentation ¶
Index ¶
- func CertsExist() bool
- func GenerateConfig(destDir *paths.Path) *paths.Path
- func GetCertificatesDir() *paths.Path
- func GetDataDir() *paths.Path
- func GetDefaultConfigDir() *paths.Path
- func GetDefaultHomeDir() *paths.Path
- func GetLogsDir() *paths.Path
- func InstallPlistFile()
- func LogsIsEmpty() bool
- func SetInstallCertsIni(filename string, value string) error
- func UninstallPlistFile()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConfig ¶
func GenerateConfig(destDir *paths.Path) *paths.Path
GenerateConfig function will take a directory path as an input and will write the default config,ini file to that directory, it will panic if something goes wrong
func GetCertificatesDir ¶
func GetCertificatesDir() *paths.Path
GetCertificatesDir return the directory where SSL certificates are saved
func GetDataDir ¶
func GetDataDir() *paths.Path
GetDataDir returns the full path to the default Arduino Create Agent data directory.
func GetDefaultConfigDir ¶
func GetDefaultConfigDir() *paths.Path
GetDefaultConfigDir returns the full path to the default Arduino Create Agent configuration directory.
func GetDefaultHomeDir ¶
func GetDefaultHomeDir() *paths.Path
GetDefaultHomeDir returns the full path to the user's home directory.
func GetLogsDir ¶
func GetLogsDir() *paths.Path
GetLogsDir return the directory where logs are saved
func InstallPlistFile ¶
func InstallPlistFile()
InstallPlistFile will handle the process of creating the plist file required for the autostart and loading it using launchd
func LogsIsEmpty ¶
func LogsIsEmpty() bool
LogsIsEmpty checks if the folder containing crash-reports is empty
func SetInstallCertsIni ¶
SetInstallCertsIni sets installCerts value to true in the config
func UninstallPlistFile ¶
func UninstallPlistFile()
UninstallPlistFile will handle the process of unloading (unsing launchd) the file required for the autostart and removing the file
Types ¶
This section is empty.