{"modulePath":"github.com/redhat-developer/ODO","version":"v1.2.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debug\n\n## Constants\n\n```go\nconst (\n\t// RecommendedCommandName is the recommended debug command name\n\tRecommendedCommandName = \"debug\"\n)\n```\n\n## Variables\n\n```go\nvar DebugLongDesc = `Warning - Debug is currently in tech preview and hence is subject to change in future.\n\nDebug allows you to remotely debug your application`\n```\n\n## Functions\n\n```go\nfunc NewCmdDebug(name, fullName string) *cobra.Command\n```\n\n```go\nfunc NewCmdInfo(name, fullName string) *cobra.Command\n```\nNewCmdInfo implements the debug info odo command\n\n```go\nfunc NewCmdPortForward(name, fullName string) *cobra.Command\n```\nNewCmdPortForward implements the port-forward odo command\n\n## Types\n\n```go\ntype InfoOptions struct {\n\tNamespace     string\n\tPortForwarder *debug.DefaultPortForwarder\n\t*genericclioptions.Context\n\t// contains filtered or unexported fields\n}\n```\nInfoOptions contains all the options for running the info cli command.\n\n```go\nfunc NewInfoOptions() *InfoOptions\n```\n\n```go\nfunc (o *InfoOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)\n```\nComplete completes all the required options for port-forward cmd.\n\n```go\nfunc (o InfoOptions) Run() error\n```\nRun implements all the necessary functionality for port-forward cmd.\n\n```go\nfunc (o InfoOptions) Validate() error\n```\nValidate validates all the required options for port-forward cmd.\n\n```go\ntype PortForwardOptions struct {\n\tNamespace string\n\n\t// PortPair is the combination of local and remote port in the format \"local:remote\"\n\tPortPair string\n\n\tPortForwarder *debug.DefaultPortForwarder\n\t// StopChannel is used to stop port forwarding\n\tStopChannel chan struct{}\n\t// ReadChannel is used to receive status of port forwarding ( ready or not ready )\n\tReadyChannel chan struct{}\n\t*genericclioptions.Context\n\t// contains filtered or unexported fields\n}\n```\nPortForwardOptions contains all the options for running the port-forward cli command.\n\n```go\nfunc NewPortForwardOptions() *PortForwardOptions\n```\nNewPortForwardOptions returns the PortForwardOptions struct\n\n```go\nfunc (o *PortForwardOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)\n```\nComplete completes all the required options for port-forward cmd.\n\n```go\nfunc (o PortForwardOptions) Run() error\n```\nRun implements all the necessary functionality for port-forward cmd.\n\n```go\nfunc (o PortForwardOptions) Validate() error\n```\nValidate validates all the required options for port-forward cmd.\n\n","path":"github.com/redhat-developer/ODO/pkg/odo/cli/debug","name":"debug","synopsis":"","isRedistributable":true}
