Documentation
¶
Overview ¶
Package fake provides a fake implementation of clientcmd.Client for use in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
ExecFunc func(ctx context.Context, pod *corev1.Pod, containerName string, command []string, stdin io.Reader, stdout, stderr io.Writer, tty bool) error
RESTFunc func() restclient.Interface
}
Client is a fake clientcmd.Client. Set ExecFunc and RESTFunc to control behavior; unset functions fall back to no-op defaults (Exec returns nil, REST returns nil).
func (*Client) REST ¶
func (c *Client) REST() restclient.Interface
Click to show internal directories.
Click to hide internal directories.