app

package
v0.0.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applicable

type Applicable interface {
	Installer
	Controller
	Logger
}

func NewApplication

func NewApplication(installer Installer, controller Controller, logger Logger, manager appmanager.Manager) Applicable

type Application

type Application struct {
	Installer
	Controller
	Logger

	appmanager.Manager
}

type BashFS

type BashFS interface {
	Install() string
	Uninstall() string
	Reinstall() string
}

type Checker

type Checker interface {
	Check(manager appmanager.Manager) (ok bool, err error)
}

type ConfigurationCleaner

type ConfigurationCleaner interface {
	Clean() (err error)
}

type ConfigurationLoader

type ConfigurationLoader interface {
	Load(name string) (v string, err error)
}

type Configurator

type Configurator interface {
	Configure(m map[string]any) (err error)
	ConfigureFile(m map[string]string) (err error)
	ConfigurationLoader
	ConfigurationCleaner
}

type Controller

type Controller interface {
	Enable() (ok bool, err error)
	Disable() (ok bool, err error)
	Start() (ok bool, err error)
	Stop() (ok bool, err error)
	Restart() (ok bool, err error)
	Status() (st string, ok bool, err error)
}

type Installer

type Installer interface {
	Install(ver string) (ok bool, err error)
	Uninstall(ver string) (ok bool, err error)
	Reinstall(ver string) (ok bool, err error)
}

type Logger

type Logger interface {
	File() string
	Truncate() (err error)
}

type VersionInstaller

type VersionInstaller interface {
	Install() (ok bool, err error)
	Uninstall() (ok bool, err error)
	Reinstall() (ok bool, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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