Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client reaches a pod-local HTTP endpoint through Kubernetes port-forwarding.
func New ¶
func New( config *rest.Config, clientset kubernetes.Interface, namespace string, labelSelector string, remotePort int, ) *Client
New creates a client for ready pods matching a label selector.
func (*Client) Exec ¶
func (c *Client) Exec(ctx context.Context, pod, container string, command []string, maxBytes int64) ([]byte, error)
Exec returns stdout without exposing stderr. Zero maxBytes is unlimited.
Click to show internal directories.
Click to hide internal directories.