daemon

package
v0.0.3-0...-f5f1d69 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "Bastion"
	VER  = "0.0.3"
	DESC = "Utility for temporary access limitation to server"
)
View Source
const (
	MAIN_DURATION = "main:duration"
	MAIN_URL      = "main:url"
	MAIN_PATH     = "main:path"
	SERVER_IP     = "server:ip"
	SERVER_PORT   = "server:port"
	SERVER_NAME   = "server:name"
	LOG_DIR       = "log:dir"
	LOG_FILE      = "log:file"
	LOG_PERMS     = "log:perms"
	LOG_LEVEL     = "log:level"
	SCRIPT_BEFORE = "script:before"
	SCRIPT_IN     = "script:in"
	SCRIPT_OUT    = "script:out"
	SCRIPT_END    = "script:complete"
)

Daemon info

View Source
const (
	OPT_CONFIG   = "c:config"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"
)

Options

View Source
const BASTION_MARKER = "/root/.bastion"

BASTION_MARKER path to file with info about bastion mode

View Source
const PID_FILE = "bastion.pid"

Pid info

Variables

This section is empty.

Functions

func Init

func Init()

Main function

Types

type BastionMarker

type BastionMarker struct {
	Started int64 `json:"started"`
	Until   int64 `json:"until"`
}

Jump to

Keyboard shortcuts

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