zitilab

package
v0.0.0-...-021caac Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RouterActionsCreateAndEnroll = "createAndEnroll"
	RouterActionsReEnroll        = "reEnroll"
)
View Source
const (
	ControllerActionInitStandalone = "initStandalone"
)
View Source
const (
	ZrokControllerActionPreCreateAccounts = "preCreateAccounts"
)

Variables

This section is empty.

Functions

func GetZitiBinaryPath

func GetZitiBinaryPath(c *model.Component, version string) string

Types

type ControllerType

type ControllerType struct {
	ConfigSourceFS fs.FS
	ConfigSource   string
	ConfigName     string
	Version        string
	LocalPath      string
	DNSNames       []string
}

func (*ControllerType) Dump

func (self *ControllerType) Dump() any

func (*ControllerType) GetActions

func (self *ControllerType) GetActions() map[string]model.ComponentAction

func (*ControllerType) GetBinaryPath

func (self *ControllerType) GetBinaryPath(c *model.Component) string

func (*ControllerType) GetVersion

func (self *ControllerType) GetVersion() string

func (*ControllerType) InitRaft

func (self *ControllerType) InitRaft(run model.Run, c *model.Component) error

func (*ControllerType) InitStandalone

func (self *ControllerType) InitStandalone(run model.Run, c *model.Component) error

func (*ControllerType) InitType

func (self *ControllerType) InitType(*model.Component)

func (*ControllerType) IsRunning

func (self *ControllerType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ControllerType) Label

func (self *ControllerType) Label() string

func (*ControllerType) StageFiles

func (self *ControllerType) StageFiles(r model.Run, c *model.Component) error

func (*ControllerType) Start

func (self *ControllerType) Start(r model.Run, c *model.Component) error

func (*ControllerType) Stop

func (self *ControllerType) Stop(_ model.Run, c *model.Component) error

type EchoServerMode

type EchoServerMode int

type EchoServerType

type EchoServerType struct {
	Version     string
	LocalPath   string
	Port        uint16
	BindService string
}

func (*EchoServerType) Dump

func (self *EchoServerType) Dump() any

func (*EchoServerType) GetVersion

func (self *EchoServerType) GetVersion() string

func (*EchoServerType) InitType

func (self *EchoServerType) InitType(*model.Component)

func (*EchoServerType) IsRunning

func (self *EchoServerType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*EchoServerType) Label

func (self *EchoServerType) Label() string

func (*EchoServerType) StageFiles

func (self *EchoServerType) StageFiles(r model.Run, c *model.Component) error

func (*EchoServerType) Start

func (self *EchoServerType) Start(run model.Run, c *model.Component) error

func (*EchoServerType) Stop

func (self *EchoServerType) Stop(_ model.Run, c *model.Component) error

type IPerfServerType

type IPerfServerType struct {
	Port uint16
}

func (*IPerfServerType) Dump

func (self *IPerfServerType) Dump() any

func (*IPerfServerType) GetPort

func (self *IPerfServerType) GetPort() uint16

func (*IPerfServerType) GetVersion

func (self *IPerfServerType) GetVersion() string

func (*IPerfServerType) IsRunning

func (self *IPerfServerType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*IPerfServerType) Label

func (self *IPerfServerType) Label() string

func (*IPerfServerType) Start

func (self *IPerfServerType) Start(_ model.Run, c *model.Component) error

func (*IPerfServerType) Stop

func (self *IPerfServerType) Stop(_ model.Run, c *model.Component) error

type RouterType

type RouterType struct {
	ConfigSourceFS fs.FS
	ConfigSource   string
	ConfigName     string
	Version        string
	LocalPath      string
}

func (*RouterType) CreateAndEnroll

func (self *RouterType) CreateAndEnroll(run model.Run, c *model.Component) error

func (*RouterType) Dump

func (self *RouterType) Dump() any

func (*RouterType) GetActions

func (self *RouterType) GetActions() map[string]model.ComponentAction

func (*RouterType) GetConfigName

func (self *RouterType) GetConfigName(c *model.Component) string

func (*RouterType) GetVersion

func (self *RouterType) GetVersion() string

func (*RouterType) InitType

func (self *RouterType) InitType(*model.Component)

func (*RouterType) InitializeHost

func (self *RouterType) InitializeHost(run model.Run, c *model.Component) error

func (*RouterType) IsRunning

func (self *RouterType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*RouterType) Label

func (self *RouterType) Label() string

func (*RouterType) ReEnroll

func (self *RouterType) ReEnroll(run model.Run, c *model.Component) error

func (*RouterType) StageFiles

func (self *RouterType) StageFiles(r model.Run, c *model.Component) error

func (*RouterType) Start

func (self *RouterType) Start(r model.Run, c *model.Component) error

func (*RouterType) Stop

func (self *RouterType) Stop(run model.Run, c *model.Component) error

type SimpleSimType

type SimpleSimType struct {
	LocalPath  string
	ConfigPath string
}

func (*SimpleSimType) Dump

func (self *SimpleSimType) Dump() any

func (*SimpleSimType) GetVersion

func (self *SimpleSimType) GetVersion() string

func (*SimpleSimType) IsRunning

func (self *SimpleSimType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*SimpleSimType) Label

func (self *SimpleSimType) Label() string

func (*SimpleSimType) StageFiles

func (self *SimpleSimType) StageFiles(r model.Run, c *model.Component) error

func (*SimpleSimType) Start

func (self *SimpleSimType) Start(_ model.Run, c *model.Component) error

func (*SimpleSimType) Stop

func (self *SimpleSimType) Stop(_ model.Run, c *model.Component) error

type ZCatMode

type ZCatMode int

type ZCatType

type ZCatType struct {
	Version   string
	LocalPath string
}

func (*ZCatType) Dump

func (self *ZCatType) Dump() any

func (*ZCatType) GetVersion

func (self *ZCatType) GetVersion() string

func (*ZCatType) InitType

func (self *ZCatType) InitType(*model.Component)

func (*ZCatType) IsRunning

func (self *ZCatType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ZCatType) Label

func (self *ZCatType) Label() string

func (*ZCatType) StageFiles

func (self *ZCatType) StageFiles(r model.Run, c *model.Component) error

func (*ZCatType) Stop

func (self *ZCatType) Stop(_ model.Run, c *model.Component) error

type ZitiEdgeTunnelType

type ZitiEdgeTunnelType struct {
	Version        string
	ZitiVersion    string
	LocalPath      string
	LogConfig      string
	VerbosityLevel uint16
	ConfigPathF    func(c *model.Component) string
}

func (*ZitiEdgeTunnelType) Dump

func (self *ZitiEdgeTunnelType) Dump() any

func (*ZitiEdgeTunnelType) GetActions

func (self *ZitiEdgeTunnelType) GetActions() map[string]model.ComponentAction

func (*ZitiEdgeTunnelType) GetConfigPath

func (self *ZitiEdgeTunnelType) GetConfigPath(c *model.Component) string

func (*ZitiEdgeTunnelType) GetVersion

func (self *ZitiEdgeTunnelType) GetVersion() string

func (*ZitiEdgeTunnelType) InitType

func (self *ZitiEdgeTunnelType) InitType(*model.Component)

func (*ZitiEdgeTunnelType) IsRunning

func (self *ZitiEdgeTunnelType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ZitiEdgeTunnelType) Label

func (self *ZitiEdgeTunnelType) Label() string

func (*ZitiEdgeTunnelType) ReEnroll

func (self *ZitiEdgeTunnelType) ReEnroll(run model.Run, c *model.Component) error

func (*ZitiEdgeTunnelType) StageFiles

func (self *ZitiEdgeTunnelType) StageFiles(r model.Run, c *model.Component) error

func (*ZitiEdgeTunnelType) Start

func (self *ZitiEdgeTunnelType) Start(_ model.Run, c *model.Component) error

func (*ZitiEdgeTunnelType) Stop

func (self *ZitiEdgeTunnelType) Stop(_ model.Run, c *model.Component) error

type ZitiTunnelMode

type ZitiTunnelMode int
const (
	ZitiTunnelModeTproxy ZitiTunnelMode = 0
	ZitiTunnelModeProxy  ZitiTunnelMode = 1
	ZitiTunnelModeHost   ZitiTunnelMode = 2

	ZitiTunnelActionsReEnroll = "reEnroll"
)

func (ZitiTunnelMode) String

func (self ZitiTunnelMode) String() string

type ZitiTunnelType

type ZitiTunnelType struct {
	Mode        ZitiTunnelMode
	Version     string
	LocalPath   string
	ConfigPathF func(c *model.Component) string
	HA          bool
}

func (*ZitiTunnelType) Dump

func (self *ZitiTunnelType) Dump() any

func (*ZitiTunnelType) GetActions

func (self *ZitiTunnelType) GetActions() map[string]model.ComponentAction

func (*ZitiTunnelType) GetConfigPath

func (self *ZitiTunnelType) GetConfigPath(c *model.Component) string

func (*ZitiTunnelType) GetVersion

func (self *ZitiTunnelType) GetVersion() string

func (*ZitiTunnelType) InitType

func (self *ZitiTunnelType) InitType(*model.Component)

func (*ZitiTunnelType) InitializeHost

func (self *ZitiTunnelType) InitializeHost(_ model.Run, c *model.Component) error

func (*ZitiTunnelType) IsRunning

func (self *ZitiTunnelType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ZitiTunnelType) Label

func (self *ZitiTunnelType) Label() string

func (*ZitiTunnelType) ReEnroll

func (self *ZitiTunnelType) ReEnroll(run model.Run, c *model.Component) error

func (*ZitiTunnelType) StageFiles

func (self *ZitiTunnelType) StageFiles(r model.Run, c *model.Component) error

func (*ZitiTunnelType) Start

func (self *ZitiTunnelType) Start(_ model.Run, c *model.Component) error

func (*ZitiTunnelType) Stop

func (self *ZitiTunnelType) Stop(_ model.Run, c *model.Component) error

type ZrokControllerType

type ZrokControllerType struct {
	ConfigSourceFS   fs.FS
	ConfigSource     string
	ConfigName       string
	Version          string
	LocalPath        string
	PreCreateClients string
}

func (*ZrokControllerType) Dump

func (self *ZrokControllerType) Dump() any

func (*ZrokControllerType) GetActions

func (self *ZrokControllerType) GetActions() map[string]model.ComponentAction

func (*ZrokControllerType) GetVersion

func (self *ZrokControllerType) GetVersion() string

func (*ZrokControllerType) Init

func (self *ZrokControllerType) Init(run model.Run, c *model.Component) error

func (*ZrokControllerType) InitType

func (self *ZrokControllerType) InitType(*model.Component)

func (*ZrokControllerType) IsRunning

func (self *ZrokControllerType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ZrokControllerType) Label

func (self *ZrokControllerType) Label() string

func (*ZrokControllerType) PreCreateAccounts

func (self *ZrokControllerType) PreCreateAccounts(run model.Run, c *model.Component) error

func (*ZrokControllerType) StageFiles

func (self *ZrokControllerType) StageFiles(r model.Run, c *model.Component) error

func (*ZrokControllerType) Start

func (self *ZrokControllerType) Start(_ model.Run, c *model.Component) error

func (*ZrokControllerType) Stop

func (self *ZrokControllerType) Stop(_ model.Run, c *model.Component) error

type ZrokFrontendType

type ZrokFrontendType struct {
	ConfigSourceFS   fs.FS
	ConfigSource     string
	ConfigName       string
	Version          string
	LocalPath        string
	DNS              string
	ZrokCtrlSelector string
}

func (*ZrokFrontendType) Dump

func (self *ZrokFrontendType) Dump() any

func (*ZrokFrontendType) GetVersion

func (self *ZrokFrontendType) GetVersion() string

func (*ZrokFrontendType) Init

func (self *ZrokFrontendType) Init(run model.Run, c *model.Component) error

func (*ZrokFrontendType) InitType

func (self *ZrokFrontendType) InitType(*model.Component)

func (*ZrokFrontendType) IsRunning

func (self *ZrokFrontendType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ZrokFrontendType) Label

func (self *ZrokFrontendType) Label() string

func (*ZrokFrontendType) StageFiles

func (self *ZrokFrontendType) StageFiles(r model.Run, c *model.Component) error

func (*ZrokFrontendType) Start

func (self *ZrokFrontendType) Start(_ model.Run, c *model.Component) error

func (*ZrokFrontendType) Stop

func (self *ZrokFrontendType) Stop(_ model.Run, c *model.Component) error

type ZrokLoopTestType

type ZrokLoopTestType struct {
	Version    string
	LocalPath  string
	Iterations uint32
	Loopers    uint8
	Pacing     time.Duration
}

func (*ZrokLoopTestType) Dump

func (self *ZrokLoopTestType) Dump() any

func (*ZrokLoopTestType) GetVersion

func (self *ZrokLoopTestType) GetVersion() string

func (*ZrokLoopTestType) Init

func (self *ZrokLoopTestType) Init(run model.Run, c *model.Component) error

func (*ZrokLoopTestType) InitType

func (self *ZrokLoopTestType) InitType(*model.Component)

func (*ZrokLoopTestType) InitializeHost

func (self *ZrokLoopTestType) InitializeHost(_ model.Run, c *model.Component) error

func (*ZrokLoopTestType) IsRunning

func (self *ZrokLoopTestType) IsRunning(_ model.Run, c *model.Component) (bool, error)

func (*ZrokLoopTestType) Label

func (self *ZrokLoopTestType) Label() string

func (*ZrokLoopTestType) StageFiles

func (self *ZrokLoopTestType) StageFiles(r model.Run, c *model.Component) error

func (*ZrokLoopTestType) Start

func (self *ZrokLoopTestType) Start(_ model.Run, c *model.Component) error

func (*ZrokLoopTestType) Stop

func (self *ZrokLoopTestType) Stop(_ model.Run, c *model.Component) error

Directories

Path Synopsis
runlevel

Jump to

Keyboard shortcuts

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