Documentation
¶
Index ¶
- type FakeCommandExecutor
- type FakeFactory
- func (f *FakeFactory) GetClientSet() (kubernetes.Interface, error)
- func (f *FakeFactory) GetCommandExecutor(pod *corev1.Pod, container string, command []string, stdout io.Writer, ...) (remotecommand.Executor, error)
- func (f *FakeFactory) GetHelmClient(namespace string) (helm.Client, error)
- func (f *FakeFactory) GetK8sClientset() (kubernetes.Interface, error)
- func (f *FakeFactory) GetK8sDynamicClient() (dynamic.Interface, error)
- func (f *FakeFactory) GetRestConfig() (*rest.Config, error)
- func (f *FakeFactory) GetRuntimeClient(scheme *runtime.Scheme) (client.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCommandExecutor ¶
FakeCommandExecutor - fake command executor
func GetFakeCommandExecutor ¶
func GetFakeCommandExecutor() *FakeCommandExecutor
GetFakeCommandExecutor - get fake command executor
func (*FakeCommandExecutor) Stream ¶
func (f *FakeCommandExecutor) Stream(options remotecommand.StreamOptions) error
Stream - stream command result
type FakeFactory ¶
type FakeFactory struct {
// contains filtered or unexported fields
}
FakeFactory - fake factory
func GetFakeFactory ¶
func GetFakeFactory(helmReleases []*release.Release, objs []runtime.Object, gvrToListKind map[schema.GroupVersionResource]string, resources []*metav1.APIResourceList) *FakeFactory
GetFakeFactory - get fake factory
func (*FakeFactory) GetClientSet ¶
func (f *FakeFactory) GetClientSet() (kubernetes.Interface, error)
GetClientSet - get clientset
func (*FakeFactory) GetCommandExecutor ¶
func (f *FakeFactory) GetCommandExecutor(pod *corev1.Pod, container string, command []string, stdout io.Writer, stderr io.Writer) (remotecommand.Executor, error)
GetCommandExecutor - execute command in a Pod
func (*FakeFactory) GetHelmClient ¶
func (f *FakeFactory) GetHelmClient(namespace string) (helm.Client, error)
GetHelmClient - get helm client
func (*FakeFactory) GetK8sClientset ¶
func (f *FakeFactory) GetK8sClientset() (kubernetes.Interface, error)
GetK8sClientset - get k8s clientset
func (*FakeFactory) GetK8sDynamicClient ¶
func (f *FakeFactory) GetK8sDynamicClient() (dynamic.Interface, error)
GetK8sDynamicClient - get k8s dynamic client
func (*FakeFactory) GetRestConfig ¶
func (f *FakeFactory) GetRestConfig() (*rest.Config, error)
GetRestConfig - get rest config
func (*FakeFactory) GetRuntimeClient ¶
GetRuntimeClient - get runtime client
Click to show internal directories.
Click to hide internal directories.