agentcli

package
v0.32.0-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 36 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, appId byte, f func(ch channel.Channel) error) error

func NewAgentChannel

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

func NewAgentClusterAdd added in v0.27.6

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

func NewAgentClusterList added in v0.27.6

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

func NewAgentClusterRemove added in v0.27.6

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

func NewAgentCmd

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

func NewAgentCtrlInit

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

func NewAgentCtrlInitFromDb added in v0.27.2

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

func NewAgentTransferLeadership added in v0.27.6

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

func NewClearChannelLogLevelCmd

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

func NewForgetLinkAgentCmd

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

func NewGetCmd

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

func NewListCmd added in v0.27.3

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

NewListCmd Pss a command object for the "list" 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 NewSimpleAgentCmd added in v0.27.3

func NewSimpleAgentCmd(name string, op byte, p common.OptionsProvider, desc string) *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 NewToggleCtrlChannelAgentCmd added in v0.27.3

func NewToggleCtrlChannelAgentCmd(p common.OptionsProvider, name string, enable bool) *cobra.Command

func NewTraceCmd

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

func NewUnrouteCmd added in v0.28.0

func NewUnrouteCmd(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 AgentClusterAddAction added in v0.27.6

type AgentClusterAddAction struct {
	AgentOptions
	Voter    bool
	MemberId string
}

type AgentClusterListAction added in v0.27.6

type AgentClusterListAction struct {
	AgentOptions
}

type AgentClusterRemoveAction added in v0.27.6

type AgentClusterRemoveAction struct {
	AgentOptions
}

type AgentCtrlInitFromDbAction added in v0.27.3

type AgentCtrlInitFromDbAction struct {
	AgentOptions
	Voter    bool
	MemberId string
}

type AgentCtrlInitOptions

type AgentCtrlInitOptions struct {
	AgentOptions
}

type AgentGetOptionsAction

type AgentGetOptionsAction struct {
	AgentOptions
	Pid string
}

func (*AgentGetOptionsAction) Run

func (self *AgentGetOptionsAction) Run() error

Run implements the command

type AgentListAction added in v0.27.3

type AgentListAction struct {
	AgentOptions
}

func (*AgentListAction) Run added in v0.27.3

func (self *AgentListAction) Run() error

type AgentOptions

type AgentOptions struct {
	common.CommonOptions
	// contains filtered or unexported fields
}

AgentOptions contains the command line options

func (*AgentOptions) AddAgentOptions added in v0.27.3

func (self *AgentOptions) AddAgentOptions(cmd *cobra.Command)

func (*AgentOptions) CopyToWriter added in v0.27.3

func (self *AgentOptions) CopyToWriter(out io.Writer) func(conn net.Conn) error

func (*AgentOptions) GetProcess added in v0.27.3

func (self *AgentOptions) GetProcess() (*agent.Process, error)

func (*AgentOptions) MakeChannelRequest added in v0.27.3

func (self *AgentOptions) MakeChannelRequest(appId byte, f func(ch channel.Channel) error) error

func (*AgentOptions) MakeRequest added in v0.27.3

func (self *AgentOptions) MakeRequest(signal byte, params []byte, f func(c net.Conn) error) error

func (*AgentOptions) RunCopyOut added in v0.27.3

func (self *AgentOptions) RunCopyOut(op byte, params []byte, out io.Writer) error

type AgentPprofCpuAction

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

func (*AgentPprofCpuAction) Run

func (self *AgentPprofCpuAction) Run() error

Run implements the command

type AgentPprofHeapAction

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

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
}

type AgentSetChannelLogLevelAction

type AgentSetChannelLogLevelAction struct {
	AgentOptions
}

func (*AgentSetChannelLogLevelAction) Run

Run implements the command

type AgentSetGcAction

type AgentSetGcAction struct {
	AgentOptions
}

func (*AgentSetGcAction) Run

func (self *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 AgentTraceAction

type AgentTraceAction struct {
	AgentOptions
}

type AgentTransferLeadershipAction added in v0.27.6

type AgentTransferLeadershipAction struct {
	AgentOptions
}

type AgentUnrouteAction added in v0.28.0

type AgentUnrouteAction struct {
	AgentOptions
}

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 SimpleChAgentCmdAction added in v0.27.3

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

func (*SimpleChAgentCmdAction) Run added in v0.27.3

func (self *SimpleChAgentCmdAction) Run(appId AgentAppId) error

Run implements the command

type ToggleCtrlChannelAgentAction added in v0.27.3

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

func (*ToggleCtrlChannelAgentAction) Run added in v0.27.3

func (self *ToggleCtrlChannelAgentAction) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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