installer_utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_NAME                = "CoCo Captive Portal"
	COMMAND_INSTALL_TYPE    = "install"
	COMMAND_IMPORT_KEY_TYPE = "import-key"
	COMMAND_UPDATE_TYPE     = "update"
	COMMAND_UPGRADE_TYPE    = "upgrade"
	COMMAND_PURGE_TYPE      = "purge"
	COMMAND_EXEC_TYPE       = "exec"
	DOING_STATE             = "doing"
	FAILED_STATE            = "failed"
	DONE_STATE              = "done"
)

Variables

View Source
var (
	APP_DIR       = "/var/coco-captive-portal"
	IGNORE_VERIFY bool
	OS_SUPPORT    = map[string][]string{
		"ubuntu": {"18.04", "20.04"},
		"debian": {"10", "11"},
	}
)

Functions

func Purge

func Purge()

func Replace added in v1.0.1

func Replace(t ReplaceWordInFileType) (err error)

func UpInstaller

func UpInstaller()

Types

type CommandType

type CommandType struct {
	Type    string
	Name    string
	Command exec.Cmd
}

type DownloadType

type DownloadType struct {
	Name            string
	URL             string
	DestinationFile string
}

type ReplaceWordInFileType added in v1.0.1

type ReplaceWordInFileType struct {
	OldWord string
	NewWord string
	File    string
}

Jump to

Keyboard shortcuts

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