Documentation ¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Index ¶
Constants ¶
View Source
const ( LEVEL_0 = iota LEVEL_1 LEVEL_2 LEVEL_3 LEVEL_4 )
Each level has 2 spaces for PrefixWriter
View Source
const PortForwardProtocolV1Name = "portforward.k8s.io"
PortForwardProtocolV1Name is the subprotocol used for port forwarding.
Variables ¶
This section is empty.
Functions ¶
func GetSpinnerPodStatus ¶
Types ¶
type LocalProxyServer ¶
type LocalProxyServer interface {
Listen() (func(), error)
}
func NewLocalProxy ¶
func NewLocalProxy( restConfig *rest.Config, podNamespace, podName string, targetPort int32) LocalProxyServer
type PrefixWriter ¶
type PrefixWriter interface { // Write writes text with the specified indentation level. Write(level int, format string, a ...interface{}) // WriteLine writes an entire line with no indentation level. WriteLine(a ...interface{}) // Flush forces indentation to be reset. Flush() }
PrefixWriter can write text at various indentation levels.
func NewPrefixWriter ¶
func NewPrefixWriter(out io.Writer) PrefixWriter
NewPrefixWriter creates a new PrefixWriter.
Click to show internal directories.
Click to hide internal directories.