config

package
v0.0.0-...-d36d0e1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertsExist

func CertsExist() bool

CertsExist checks if the certs have already been generated

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

func SetInstallCertsIni(filename string, value string) error

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.

Jump to

Keyboard shortcuts

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