Documentation
¶
Index ¶
- func Click(cc ClickConfig) error
- func DownloadFile(fromUrl string, toFile string, progressCb func(current, total int64)) error
- func ExtractArchive(archive *zip.ReadCloser, target string) error
- func ExtractEmbedded(fs embed.FS, e Embedded, progressCb ProgressCb) error
- func ExtractEmbeddedPackage(fs embed.FS, e Embedded, dir string, progressCb ProgressCb) error
- func ExtractZip(path string, target string) error
- func FileExists(path string) bool
- func InstallService(name, display, user, password string) error
- func Main(make MakeInstallerFunc, config InstallerConfig) error
- func MakeShortcut(path string, name string) error
- func MustCatchup(node *algomgr.Node, algodUrl string, algodToken string, catchpointUrl string, ...)
- func MustCatchupAndWaitForSync(node *algomgr.Node, algodUrl string, algodToken string, catchpointUrl string, ...)
- func MustExtractEmbedded(fs embed.FS, path Embedded, progressCb ProgressCb)
- func MustExtractEmbeddedPackage(fs embed.FS, e Embedded, dir string, progressCb ProgressCb)
- func MustInstallService(name, display, user, password string)
- func MustMakeShortcut(path string, name string)
- func MustRunCommand(path string, args []string, dir string)
- func MustRunTemplate(fs embed.FS, path string, data interface{}, target string)
- func MustStartCommand(path string, args []string, dir string)
- func MustWaitForSync(node *algomgr.Node, algodUrl string, algodToken string, catchpointUrl string, ...)
- func MustWriteConfig(config Config)
- func MustWriteFile(path string, value string)
- func RunCommand(path string, args []string, dir string) error
- func RunTemplate(fs embed.FS, path string, data interface{}, target string) error
- func StartCommand(path string, args []string, dir string) error
- func WriteConfig(config Config) error
- type ClickBoot
- type ClickConfig
- type Config
- type Embedded
- type Installer
- type InstallerConfig
- type InstallerStep
- type MakeInstallerFunc
- type ProgressCb
- type USER_INFO_1
- type Update
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Click ¶
func Click(cc ClickConfig) error
func DownloadFile ¶
func ExtractArchive ¶
func ExtractArchive(archive *zip.ReadCloser, target string) error
func ExtractEmbedded ¶
func ExtractEmbedded(fs embed.FS, e Embedded, progressCb ProgressCb) error
func ExtractEmbeddedPackage ¶
func ExtractZip ¶
func FileExists ¶
func InstallService ¶
func Main ¶
func Main(make MakeInstallerFunc, config InstallerConfig) error
func MakeShortcut ¶
func MustCatchup ¶
func MustExtractEmbedded ¶
func MustExtractEmbedded(fs embed.FS, path Embedded, progressCb ProgressCb)
func MustExtractEmbeddedPackage ¶
func MustExtractEmbeddedPackage(fs embed.FS, e Embedded, dir string, progressCb ProgressCb)
func MustInstallService ¶
func MustInstallService(name, display, user, password string)
func MustMakeShortcut ¶
func MustRunCommand ¶
func MustRunTemplate ¶
func MustStartCommand ¶
func MustWaitForSync ¶
func MustWriteConfig ¶
func MustWriteConfig(config Config)
func MustWriteFile ¶
func RunTemplate ¶
func WriteConfig ¶
Types ¶
type ClickBoot ¶
type ClickBoot struct { Bin embed.FS Make MakeInstallerFunc }
type ClickConfig ¶
type ClickConfig struct { ClickBoot Update bool Elevated bool Updater UpdateFunc }
type InstallerConfig ¶
type InstallerConfig struct { Bin embed.FS Update bool UpdateCb UpdateFunc Self string }
type InstallerStep ¶
type InstallerStep struct {
Cb func() error
}
type MakeInstallerFunc ¶
type MakeInstallerFunc func(InstallerConfig) (Installer, error)
type ProgressCb ¶
type ProgressCb func(current, total int64)
type USER_INFO_1 ¶
type USER_INFO_1 struct {
// contains filtered or unexported fields
}
type UpdateFunc ¶
Click to show internal directories.
Click to hide internal directories.