Documentation
¶
Index ¶
- func AESLicense(cmd *cobra.Command, args []string) error
- func AESLogin(cmd *cobra.Command, args []string) error
- func AvailableIntercepts(cmd *cobra.Command, _ []string) error
- func DaemonWorks() bool
- func Disconnect(cmd *cobra.Command, _ []string) error
- func IsServerRunning() bool
- func LaunchDaemon(ccmd *cobra.Command, _ []string) error
- func ListIntercepts(cmd *cobra.Command, _ []string) error
- func NewCmdUsage(cmd *cobra.Command, groups []CmdGroup) func(*cobra.Command) error
- func Pause(cmd *cobra.Command, _ []string) error
- func Quit(cmd *cobra.Command, _ []string) error
- func RemoveIntercept(cmd *cobra.Command, args []string) error
- func Resume(cmd *cobra.Command, _ []string) error
- func Status(cmd *cobra.Command, _ []string) error
- func Version(cmd *cobra.Command, _ []string) error
- type CmdGroup
- type ConnectInfo
- type InterceptInfo
- type Scout
- type ScoutMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableIntercepts ¶
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 ¶
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 ¶
LaunchDaemon will launch the daemon responsible for doing the intercepts. Only the root user can do this.
func ListIntercepts ¶
ListIntercepts requests a list current intercepts from the daemon
func NewCmdUsage ¶
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 RemoveIntercept ¶
RemoveIntercept tells the daemon to deactivate and remove an existent intercept
Types ¶
type ConnectInfo ¶
type ConnectInfo struct {
rpc.ConnectRequest
}
A ConnectInfo contains all information needed 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.