Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Forwarding = regexp.MustCompile(`^\d+(?::\d+)?$`)
Forwarding defines the format for port forwarding input.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Find tries to find pods suitable by the pattern. Find(string) (Pods, error) // Forward initiates the port forwarding process. Forward(Pod, Mapping) error }
Interface defines a top-level behavior of Kubernetes provider (API or CLI).
type Mapping ¶
Mapping specifies port forwarding rules.
func NewMapping ¶
NewMapping returns port forwarding rules.
type Pod ¶
type Pod string
Pod specifies a fully-qualified pod name.
type Pods ¶
type Pods []Pod
Pods is a list of fully-qualified pod names.
Click to show internal directories.
Click to hide internal directories.