agentcli

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentAppController = AgentAppId(controller.AgentAppId)
	AgentAppRouter     = AgentAppId(router.AgentAppId)
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func MakeAgentChannelRequest

func MakeAgentChannelRequest(addr string, signal byte, params []byte, f func(ch channel.Channel) error) error

func NewAgentChannel

func NewAgentChannel(conn net.Conn) (channel.Channel, error)

func NewAgentCmd

func NewAgentCmd(p common.OptionsProvider) *cobra.Command

func NewAgentCtrlInit

func NewAgentCtrlInit(p common.OptionsProvider) *cobra.Command

func NewAgentCtrlRaftJoin

func NewAgentCtrlRaftJoin(p common.OptionsProvider) *cobra.Command

func NewAgentCtrlRaftList

func NewAgentCtrlRaftList(p common.OptionsProvider) *cobra.Command

func NewClearChannelLogLevelCmd

func NewClearChannelLogLevelCmd(p common.OptionsProvider) *cobra.Command

func NewForgetLinkAgentCmd

func NewForgetLinkAgentCmd(p common.OptionsProvider) *cobra.Command

func NewGcCmd

func NewGcCmd(p common.OptionsProvider) *cobra.Command

func NewGetCmd

func NewGetCmd(p common.OptionsProvider) *cobra.Command

func NewGoVersionCmd

func NewGoVersionCmd(p common.OptionsProvider) *cobra.Command

func NewMemstatsCmd

func NewMemstatsCmd(p common.OptionsProvider) *cobra.Command

func NewPprofCpuCmd

func NewPprofCpuCmd(p common.OptionsProvider) *cobra.Command

func NewPprofHeapCmd

func NewPprofHeapCmd(p common.OptionsProvider) *cobra.Command

func NewPsCmd

func NewPsCmd(p common.OptionsProvider) *cobra.Command

NewPsCmd Pss a command object for the "Ps" command

func NewRouteCmd

func NewRouteCmd(p common.OptionsProvider) *cobra.Command

func NewSetChannelLogLevelCmd

func NewSetChannelLogLevelCmd(p common.OptionsProvider) *cobra.Command

func NewSetGcCmd

func NewSetGcCmd(p common.OptionsProvider) *cobra.Command

func NewSetLogLevelCmd

func NewSetLogLevelCmd(p common.OptionsProvider) *cobra.Command

func NewSimpleAgentCustomCmd

func NewSimpleAgentCustomCmd(name string, appId AgentAppId, op byte, p common.OptionsProvider) *cobra.Command

func NewSimpleChAgentCustomCmd

func NewSimpleChAgentCustomCmd(name string, appId AgentAppId, op int32, p common.OptionsProvider) *cobra.Command

func NewStackCmd

func NewStackCmd(p common.OptionsProvider) *cobra.Command

func NewStatsCmd

func NewStatsCmd(p common.OptionsProvider) *cobra.Command

func NewTraceCmd

func NewTraceCmd(p common.OptionsProvider) *cobra.Command

func PIDFile

func PIDFile(pid int) (string, error)

Types

type AgentAppId

type AgentAppId byte

type AgentClearChannelLogLevelAction

type AgentClearChannelLogLevelAction struct {
	AgentOptions
}

func (*AgentClearChannelLogLevelAction) Run

Run implements the command

type AgentCtrlInitOptions

type AgentCtrlInitOptions struct {
	AgentOptions
}

func (*AgentCtrlInitOptions) Run

func (o *AgentCtrlInitOptions) Run() error

Run implements the command

type AgentCtrlRaftJoinOptions

type AgentCtrlRaftJoinOptions struct {
	AgentOptions
	Voter    bool
	MemberId string
}

func (*AgentCtrlRaftJoinOptions) Run

Run implements the command

type AgentCtrlRaftListOptions

type AgentCtrlRaftListOptions struct {
	AgentOptions
}

func (*AgentCtrlRaftListOptions) Run

Run implements the command

type AgentGcAction

type AgentGcAction struct {
	AgentOptions
}

func (*AgentGcAction) Run

func (self *AgentGcAction) Run() error

Run implements the command

type AgentGetOptionsAction

type AgentGetOptionsAction struct {
	AgentOptions
	Pid string
}

func (*AgentGetOptionsAction) Run

func (self *AgentGetOptionsAction) Run() error

Run implements the command

type AgentGoVersionAction

type AgentGoVersionAction struct {
	AgentOptions
	CtrlListener string
}

func (*AgentGoVersionAction) Run

func (self *AgentGoVersionAction) Run() error

Run implements the command

type AgentMemstatsAction

type AgentMemstatsAction struct {
	AgentOptions
	CtrlListener string
}

func (*AgentMemstatsAction) Run

func (o *AgentMemstatsAction) Run() error

Run implements the command

type AgentOptions

type AgentOptions struct {
	common.CommonOptions
}

AgentOptions contains the command line options

type AgentPprofCpuAction

type AgentPprofCpuAction struct {
	AgentOptions
}

func (*AgentPprofCpuAction) Run

func (self *AgentPprofCpuAction) Run() error

Run implements the command

type AgentPprofHeapAction

type AgentPprofHeapAction struct {
	AgentOptions
}

func (*AgentPprofHeapAction) Run

func (self *AgentPprofHeapAction) Run() error

Run implements the command

type AgentPsAction

type AgentPsAction struct {
	AgentOptions
}

func (*AgentPsAction) Run

func (self *AgentPsAction) Run() error

Run implements this command

type AgentRouteAction

type AgentRouteAction struct {
	AgentOptions
	CtrlListener string
}

func (*AgentRouteAction) Run

func (self *AgentRouteAction) Run() error

Run implements the command

type AgentSetChannelLogLevelAction

type AgentSetChannelLogLevelAction struct {
	AgentOptions
}

func (*AgentSetChannelLogLevelAction) Run

Run implements the command

type AgentSetGcAction

type AgentSetGcAction struct {
	AgentOptions
}

func (*AgentSetGcAction) Run

func (o *AgentSetGcAction) Run() error

Run implements the command

type AgentSetLogLevelAction

type AgentSetLogLevelAction struct {
	AgentOptions
}

func (*AgentSetLogLevelAction) Run

func (self *AgentSetLogLevelAction) Run() error

Run implements the command

type AgentStackAction

type AgentStackAction struct {
	AgentOptions
	StackTimeout time.Duration
}

func (*AgentStackAction) Run

func (o *AgentStackAction) Run() error

Run implements the command

type AgentStatsAction

type AgentStatsAction struct {
	AgentOptions
}

func (*AgentStatsAction) Run

func (self *AgentStatsAction) Run() error

Run implements the command

type AgentTraceAction

type AgentTraceAction struct {
	AgentOptions
}

func (*AgentTraceAction) Run

func (self *AgentTraceAction) Run() error

Run implements the command

type ForgetLinkAgentAction

type ForgetLinkAgentAction struct {
	AgentOptions
}

func (*ForgetLinkAgentAction) Run

func (self *ForgetLinkAgentAction) Run() error

Run implements the command

type P

type P struct {
	PID          int
	PPID         int
	Exec         string
	Path         string
	BuildVersion string
	Agent        bool
}

P represents a Go process.

func FindAll

func FindAll() []P

FindAll returns all the Ziti processes currently running on this host.

type SimpleAgentAction

type SimpleAgentAction struct {
	AgentOptions
}

func (*SimpleAgentAction) Run

func (self *SimpleAgentAction) Run(appId AgentAppId, op byte) error

Run implements the command

type SimpleChAgentCmdOptions

type SimpleChAgentCmdOptions struct {
	AgentOptions
	// contains filtered or unexported fields
}

func (*SimpleChAgentCmdOptions) Run

Run implements the command

Jump to

Keyboard shortcuts

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