dock

package
v0.0.0-...-fb17eff Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncStart

func AsyncStart()

func AsyncStop

func AsyncStop()

func Auth

func Auth(authLevel int, url *string, in map[string]interface{}, request *http.Request) bool

func EncodeToken

func EncodeToken(token string) string

func GetDiscover

func GetDiscover() string

func PraseCommandArgs

func PraseCommandArgs(cmd string) []string

func Registers

func Registers()

func SetShell

func SetShell(shell func(timeout time.Duration, nodeName string, args ...string) (string, int, error))

func SetSleepUnit

func SetSleepUnit(unit time.Duration)

func Start

func Start()

Types

type AppInfo

type AppInfo struct {
	Cpu     float32
	Memory  float32
	Min     int
	Max     int
	Args    string
	Command string
	Memo    string
	Active  bool
}

type AppStatus

type AppStatus struct {
	Name   string
	Image  string
	Id     string
	Ctx    string
	Node   string
	UpTime string
	Cpu    float32
	Memory float32
	IsBind bool
}

type ContextInfo

type ContextInfo struct {
	Name  string
	Desc  string
	Token string
	Vars  map[string]*string
	Binds map[string][]string
	Apps  map[string]*AppInfo
}

type GlobalInfo

type GlobalInfo struct {
	Nodes    map[string]*NodeInfo
	Vars     map[string]*string
	Args     string
	Registry SimpleRegistryInfo
}

type NodeInfo

type NodeInfo struct {
	Cpu    float32
	Memory float32
}

type NodeStatus

type NodeStatus struct {
	UsedCpu    float32
	UsedMemory float32
	TotalRuns  int
}

type SetResult

type SetResult struct {
	Ok    bool
	Error string
}

type SimpleRegistryInfo

type SimpleRegistryInfo struct {
	Image       string
	Domain      string
	DataPath    string
	HubDataPath string
	User        string
	Password    string
}

Jump to

Keyboard shortcuts

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