debug

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDebugInfoFile added in v1.1.1

func CreateDebugInfoFile(f *DefaultPortForwarder, portPair string) error

func GetDebugInfoFilePath added in v1.1.1

func GetDebugInfoFilePath(componentName, appName string, projectName string) string

GetDebugInfoFilePath gets the file path of the debug info file

Types

type DefaultPortForwarder

type DefaultPortForwarder struct {
	k8sgenclioptions.IOStreams
	// contains filtered or unexported fields
}

DefaultPortForwarder implements the SPDY based port forwarder

func NewDefaultPortForwarder

func NewDefaultPortForwarder(componentName, appName string, projectName string, client *occlient.Client, kClient *kclient.Client, streams k8sgenclioptions.IOStreams) *DefaultPortForwarder

func (*DefaultPortForwarder) ForwardPorts

func (f *DefaultPortForwarder) ForwardPorts(portPair string, stopChan, readyChan chan struct{}, isExperimental bool) error

ForwardPorts forwards the port using the url for the remote pod. portPair is a pair of port in format "localPort:RemotePort" that is to be forwarded stop Chan is used to stop port forwarding ready Chan is used to signal failure to the channel receiver

type OdoDebugFile added in v1.1.1

type OdoDebugFile struct {
	metav1.TypeMeta
	metav1.ObjectMeta `json:"metadata"`
	Spec              OdoDebugFileSpec `json:"spec"`
}

func GetDebugInfo added in v1.1.1

func GetDebugInfo(f *DefaultPortForwarder) (OdoDebugFile, bool)

GetDebugInfo gathers the information with regards to debugging information

type OdoDebugFileSpec added in v1.2.1

type OdoDebugFileSpec struct {
	App            string `json:"app,omitempty"`
	DebugProcessID int    `json:"debugProcessID"`
	RemotePort     int    `json:"remotePort"`
	LocalPort      int    `json:"localPort"`
}

Jump to

Keyboard shortcuts

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