Documentation ¶
Index ¶
- type ContainerShellDetector
- type ExecInfoParser
- type ExecManager
- func (_m *ExecManager) Attach(id int, conn *websocket.Conn) error
- func (_m *ExecManager) Check(id int) (int, error)
- func (_m *ExecManager) Create(machineExec *model.MachineExec) (int, error)
- func (_m *ExecManager) CreateKubeConfig(kubeConfigParams *model.KubeConfigParams, containerInfo *model.ContainerInfo) error
- func (_m *ExecManager) ListAvailableContainers(machineExec *model.MachineExec) ([]*model.ContainerInfo, error)
- func (_m *ExecManager) Remove(execId int)
- func (_m *ExecManager) Resize(id int, cols uint, rows uint) error
- func (_m *ExecManager) Resolve(container string, token string) (*model.ResolvedExec, error)
- type InfoExec
- type InfoExecCreator
- type PodInterface
- func (_m *PodInterface) Apply(ctx context.Context, pod *v1.PodApplyConfiguration, opts metav1.ApplyOptions) (*corev1.Pod, error)
- func (_m *PodInterface) ApplyStatus(ctx context.Context, pod *v1.PodApplyConfiguration, opts metav1.ApplyOptions) (*corev1.Pod, error)
- func (_m *PodInterface) Bind(ctx context.Context, binding *corev1.Binding, opts metav1.CreateOptions) error
- func (_m *PodInterface) Create(ctx context.Context, pod *corev1.Pod, opts metav1.CreateOptions) (*corev1.Pod, error)
- func (_m *PodInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (_m *PodInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (_m *PodInterface) Evict(ctx context.Context, eviction *v1beta1.Eviction) error
- func (_m *PodInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Pod, error)
- func (_m *PodInterface) GetEphemeralContainers(ctx context.Context, podName string, options metav1.GetOptions) (*corev1.EphemeralContainers, error)
- func (_m *PodInterface) GetLogs(name string, opts *corev1.PodLogOptions) *rest.Request
- func (_m *PodInterface) List(ctx context.Context, opts metav1.ListOptions) (*corev1.PodList, error)
- func (_m *PodInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*corev1.Pod, error)
- func (_m *PodInterface) ProxyGet(scheme string, name string, port string, path string, params map[string]string) rest.ResponseWrapper
- func (_m *PodInterface) Update(ctx context.Context, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)
- func (_m *PodInterface) UpdateEphemeralContainers(ctx context.Context, podName string, ...) (*corev1.EphemeralContainers, error)
- func (_m *PodInterface) UpdateStatus(ctx context.Context, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)
- func (_m *PodInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type PodsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerShellDetector ¶
ContainerShellDetector is an autogenerated mock type for the ContainerShellDetector type
func (*ContainerShellDetector) DetectShell ¶
func (_m *ContainerShellDetector) DetectShell(containerInfo *model.ContainerInfo) (string, error)
DetectShell provides a mock function with given fields: containerInfo
type ExecInfoParser ¶
ExecInfoParser is an autogenerated mock type for the ExecInfoParser type
func (*ExecInfoParser) ParseShellFromEtcPassWd ¶
func (_m *ExecInfoParser) ParseShellFromEtcPassWd(etcPassWdContent string, userId string) (string, error)
ParseShellFromEtcPassWd provides a mock function with given fields: etcPassWdContent, userId
type ExecManager ¶
ExecManager is an autogenerated mock type for the ExecManager type
func (*ExecManager) Attach ¶
func (_m *ExecManager) Attach(id int, conn *websocket.Conn) error
Attach provides a mock function with given fields: id, conn
func (*ExecManager) Check ¶
func (_m *ExecManager) Check(id int) (int, error)
Check provides a mock function with given fields: id
func (*ExecManager) Create ¶
func (_m *ExecManager) Create(machineExec *model.MachineExec) (int, error)
Create provides a mock function with given fields: machineExec
func (*ExecManager) CreateKubeConfig ¶
func (_m *ExecManager) CreateKubeConfig(kubeConfigParams *model.KubeConfigParams, containerInfo *model.ContainerInfo) error
CreateKubeConfig provides a mock function with given fields: kubeConfigParams, containerInfo
func (*ExecManager) ListAvailableContainers ¶
func (_m *ExecManager) ListAvailableContainers(machineExec *model.MachineExec) ([]*model.ContainerInfo, error)
ListAvailableContainers provides a mock function with given fields: machineExec
func (*ExecManager) Remove ¶
func (_m *ExecManager) Remove(execId int)
Remove provides a mock function with given fields: execId
func (*ExecManager) Resize ¶
func (_m *ExecManager) Resize(id int, cols uint, rows uint) error
Resize provides a mock function with given fields: id, cols, rows
func (*ExecManager) Resolve ¶
func (_m *ExecManager) Resolve(container string, token string) (*model.ResolvedExec, error)
Resolve provides a mock function with given fields: container, token
type InfoExec ¶
InfoExec is an autogenerated mock type for the InfoExec type
type InfoExecCreator ¶
InfoExecCreator is an autogenerated mock type for the InfoExecCreator type
func (*InfoExecCreator) CreateInfoExec ¶
func (_m *InfoExecCreator) CreateInfoExec(command []string, containerInfo *model.ContainerInfo) exec_info.InfoExec
CreateInfoExec provides a mock function with given fields: command, containerInfo
type PodInterface ¶
PodInterface is an autogenerated mock type for the PodInterface type
func (*PodInterface) Apply ¶
func (_m *PodInterface) Apply(ctx context.Context, pod *v1.PodApplyConfiguration, opts metav1.ApplyOptions) (*corev1.Pod, error)
Apply provides a mock function with given fields: ctx, pod, opts
func (*PodInterface) ApplyStatus ¶
func (_m *PodInterface) ApplyStatus(ctx context.Context, pod *v1.PodApplyConfiguration, opts metav1.ApplyOptions) (*corev1.Pod, error)
ApplyStatus provides a mock function with given fields: ctx, pod, opts
func (*PodInterface) Bind ¶
func (_m *PodInterface) Bind(ctx context.Context, binding *corev1.Binding, opts metav1.CreateOptions) error
Bind provides a mock function with given fields: ctx, binding, opts
func (*PodInterface) Create ¶
func (_m *PodInterface) Create(ctx context.Context, pod *corev1.Pod, opts metav1.CreateOptions) (*corev1.Pod, error)
Create provides a mock function with given fields: ctx, pod, opts
func (*PodInterface) Delete ¶
func (_m *PodInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*PodInterface) DeleteCollection ¶
func (_m *PodInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection provides a mock function with given fields: ctx, opts, listOpts
func (*PodInterface) Get ¶
func (_m *PodInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Pod, error)
Get provides a mock function with given fields: ctx, name, opts
func (*PodInterface) GetEphemeralContainers ¶
func (_m *PodInterface) GetEphemeralContainers(ctx context.Context, podName string, options metav1.GetOptions) (*corev1.EphemeralContainers, error)
GetEphemeralContainers provides a mock function with given fields: ctx, podName, options
func (*PodInterface) GetLogs ¶
func (_m *PodInterface) GetLogs(name string, opts *corev1.PodLogOptions) *rest.Request
GetLogs provides a mock function with given fields: name, opts
func (*PodInterface) List ¶
func (_m *PodInterface) List(ctx context.Context, opts metav1.ListOptions) (*corev1.PodList, error)
List provides a mock function with given fields: ctx, opts
func (*PodInterface) Patch ¶
func (_m *PodInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*corev1.Pod, error)
Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources
func (*PodInterface) ProxyGet ¶
func (_m *PodInterface) ProxyGet(scheme string, name string, port string, path string, params map[string]string) rest.ResponseWrapper
ProxyGet provides a mock function with given fields: scheme, name, port, path, params
func (*PodInterface) Update ¶
func (_m *PodInterface) Update(ctx context.Context, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)
Update provides a mock function with given fields: ctx, pod, opts
func (*PodInterface) UpdateEphemeralContainers ¶
func (_m *PodInterface) UpdateEphemeralContainers(ctx context.Context, podName string, ephemeralContainers *corev1.EphemeralContainers, opts metav1.UpdateOptions) (*corev1.EphemeralContainers, error)
UpdateEphemeralContainers provides a mock function with given fields: ctx, podName, ephemeralContainers, opts
func (*PodInterface) UpdateStatus ¶
func (_m *PodInterface) UpdateStatus(ctx context.Context, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)
UpdateStatus provides a mock function with given fields: ctx, pod, opts
func (*PodInterface) Watch ¶
func (_m *PodInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
type PodsGetter ¶
PodsGetter is an autogenerated mock type for the PodsGetter type
func (*PodsGetter) Pods ¶
func (_m *PodsGetter) Pods(namespace string) v1.PodInterface
Pods provides a mock function with given fields: namespace