debug

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RecommendedCommandName = "debug"

RecommendedCommandName is the recommended debug command name

Variables

View Source
var DebugLongDesc = `` /* 139-byte string literal not displayed */

Functions

func NewCmdDebug

func NewCmdDebug(name, fullName string) *cobra.Command

func NewCmdInfo added in v1.1.1

func NewCmdInfo(name, fullName string) *cobra.Command

NewCmdInfo implements the debug info odo command

func NewCmdPortForward

func NewCmdPortForward(name, fullName string) *cobra.Command

NewCmdPortForward implements the port-forward odo command

Types

type InfoOptions added in v1.1.1

type InfoOptions struct {
	Namespace     string
	PortForwarder *debug.DefaultPortForwarder
	*genericclioptions.Context
	// contains filtered or unexported fields
}

PortForwardOptions contains all the options for running the port-forward cli command.

func NewInfoOptions added in v1.1.1

func NewInfoOptions() *InfoOptions

func (*InfoOptions) Complete added in v1.1.1

func (o *InfoOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes all the required options for port-forward cmd.

func (InfoOptions) Run added in v1.1.1

func (o InfoOptions) Run() error

Run implements all the necessary functionality for port-forward cmd.

func (InfoOptions) Validate added in v1.1.1

func (o InfoOptions) Validate() error

Validate validates all the required options for port-forward cmd.

type PortForwardOptions

type PortForwardOptions struct {
	Namespace string
	// PortPair is the combination of local and remote port in the format "local:remote"
	PortPair string

	PortForwarder *debug.DefaultPortForwarder
	// StopChannel is used to stop port forwarding
	StopChannel chan struct{}
	// ReadChannel is used to receive status of port forwarding ( ready or not ready )
	ReadyChannel chan struct{}
	*genericclioptions.Context
	// contains filtered or unexported fields
}

PortForwardOptions contains all the options for running the port-forward cli command.

func NewPortForwardOptions

func NewPortForwardOptions() *PortForwardOptions

func (*PortForwardOptions) Complete

func (o *PortForwardOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

Complete completes all the required options for port-forward cmd.

func (PortForwardOptions) Run

func (o PortForwardOptions) Run() error

Run implements all the necessary functionality for port-forward cmd.

func (PortForwardOptions) Validate

func (o PortForwardOptions) Validate() error

Validate validates all the required options for port-forward cmd.

Jump to

Keyboard shortcuts

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