setup

package
v13.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package setup provides methods to install/unistall application as a service on the system

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name       string   // Application name
	Options    []string // List of options
	DocsURL    string   // Documentation URL
	User       string   // Service user
	Identifier string   // Syslog identifier
	WorkingDir string   // Working dir

	StopSignal   string // Stop signal
	ReloadSignal string // Reload signal

	WithLog            bool // Create directory for logs
	WithoutPrivateTemp bool // Disable private temp

	Configs []Config // Configuration files
}

App contains basic application configuration

func (App) Install

func (app App) Install() error

Install installs or reinstalls application on the system

func (App) Uninstall

func (app App) Uninstall(full bool) error

Uninstall uninstall unistalls application from the system

type Config

type Config struct {
	Name string      // File name
	Data []byte      // Data
	Mode os.FileMode // File mode
}

Config contains configuration file data

Note that all configurations are stored in /etc

Jump to

Keyboard shortcuts

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