Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FakeNew ¶
func FakeNew() (*Client, *FakeClientset)
FakeNew creates new fake client for testing returns Client that is filled with fake clients and FakeClientSet that holds fake Clientsets to access Actions, Reactors etc... in fake client
Types ¶
type Client ¶
type Client struct { KubeClient kubernetes.Interface KubeConfig clientcmd.ClientConfig KubeClientConfig *rest.Config Namespace string }
Client is a collection of fields used for client configuration and interaction
func (*Client) ExecCMDInContainer ¶
func (c *Client) ExecCMDInContainer(podName, containerName string, cmd []string, stdout io.Writer, stderr io.Writer, stdin io.Reader, tty bool) error
ExecCMDInContainer execute command in the container of a pod, pass an empty string for containerName to execute in the first container of the pod
type FakeClientset ¶
type FakeClientset struct {
Kubernetes *fakeKubeClientset.Clientset
}
FakeClientset holds fake ClientSets this is returned by FakeNew to access methods of fake client sets
Click to show internal directories.
Click to hide internal directories.