client

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESLicense

func AESLicense(cmd *cobra.Command, args []string) error

func AESLogin

func AESLogin(cmd *cobra.Command, args []string) error

func AvailableIntercepts

func AvailableIntercepts(cmd *cobra.Command, _ []string) error

AvailableIntercepts requests a list of deployments available for intercept from the daemon

func DaemonWorks

func DaemonWorks() bool

DaemonWorks returns whether the daemon can function on this platform

func Disconnect

func Disconnect(cmd *cobra.Command, _ []string) error

Disconnect asks the daemon to disconnect from the connected cluster

func IsServerRunning

func IsServerRunning() bool

IsServerRunning reports whether or not the daemon server is running.

func LaunchDaemon

func LaunchDaemon(ccmd *cobra.Command, _ []string) error

LaunchDaemon will launch the daemon responsible for doing the intercepts. Only the root user can do this.

func ListIntercepts

func ListIntercepts(cmd *cobra.Command, _ []string) error

ListIntercepts requests a list current intercepts from the daemon

func NewCmdUsage

func NewCmdUsage(cmd *cobra.Command, groups []CmdGroup) func(*cobra.Command) error

NewCmdUsage constructs a cobra UsageFunc for a command based on the command groups passed in. Requires that the command has exactly the subcommands mentioned in the groups, panicking otherwise.

func Pause

func Pause(cmd *cobra.Command, _ []string) error

Pause requests that the network overrides are turned off

func Quit

func Quit(cmd *cobra.Command, _ []string) error

Quit sends the quit message to the daemon and waits for it to exit.

func RemoveIntercept

func RemoveIntercept(cmd *cobra.Command, args []string) error

RemoveIntercept tells the daemon to deactivate and remove an existent intercept

func Resume

func Resume(cmd *cobra.Command, _ []string) error

Resume requests that the network overrides are turned back on (after using Pause)

func Status

func Status(cmd *cobra.Command, _ []string) error

Status will retrieve connectivity status from the daemon and print it on stdout.

func Version

func Version(cmd *cobra.Command, _ []string) error

Version requests version info from the daemon and prints both client and daemon version.

Types

type CmdGroup

type CmdGroup struct {
	GroupName string
	CmdNames  []string
}

CmdGroup represents a group of commands and the name of that group

type ConnectInfo

type ConnectInfo struct {
	rpc.ConnectRequest
	LegacyMode bool
}

A ConnectInfo contains all information needed to connect to a cluster.

func (*ConnectInfo) Connect

func (x *ConnectInfo) Connect(cmd *cobra.Command, args []string) error

Connect asks the daemon to connect to a cluster

type InterceptInfo

type InterceptInfo struct {
	rpc.InterceptRequest
}

An InterceptInfo contains all information needed to add a deployment intercept.

func (*InterceptInfo) AddIntercept

func (x *InterceptInfo) AddIntercept(cmd *cobra.Command, args []string) error

AddIntercept tells the daemon to add a deployment intercept.

type Scout

type Scout struct {
	Reporter *metriton.Reporter
	// contains filtered or unexported fields
}

func NewScout

func NewScout(mode string) (s *Scout)

func (*Scout) Report

func (s *Scout) Report(action string, meta ...ScoutMeta) error

func (*Scout) SetMetadatum

func (s *Scout) SetMetadatum(key string, value interface{})

type ScoutMeta

type ScoutMeta struct {
	Key   string
	Value interface{}
}

Jump to

Keyboard shortcuts

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