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) 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) Bind(binding *v1.Binding) error
- func (_m *PodInterface) Create(_a0 *v1.Pod) (*v1.Pod, error)
- func (_m *PodInterface) Delete(name string, options *metav1.DeleteOptions) error
- func (_m *PodInterface) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
- func (_m *PodInterface) Evict(eviction *v1beta1.Eviction) error
- func (_m *PodInterface) Get(name string, options metav1.GetOptions) (*v1.Pod, error)
- func (_m *PodInterface) GetLogs(name string, opts *v1.PodLogOptions) *rest.Request
- func (_m *PodInterface) List(opts metav1.ListOptions) (*v1.PodList, error)
- func (_m *PodInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1.Pod, error)
- func (_m *PodInterface) Update(_a0 *v1.Pod) (*v1.Pod, error)
- func (_m *PodInterface) UpdateStatus(_a0 *v1.Pod) (*v1.Pod, error)
- func (_m *PodInterface) Watch(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) 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) Bind ¶
func (_m *PodInterface) Bind(binding *v1.Binding) error
Bind provides a mock function with given fields: binding
func (*PodInterface) Delete ¶
func (_m *PodInterface) Delete(name string, options *metav1.DeleteOptions) error
Delete provides a mock function with given fields: name, options
func (*PodInterface) DeleteCollection ¶
func (_m *PodInterface) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
DeleteCollection provides a mock function with given fields: options, listOptions
func (*PodInterface) Evict ¶
func (_m *PodInterface) Evict(eviction *v1beta1.Eviction) error
Evict provides a mock function with given fields: eviction
func (*PodInterface) Get ¶
func (_m *PodInterface) Get(name string, options metav1.GetOptions) (*v1.Pod, error)
Get provides a mock function with given fields: name, options
func (*PodInterface) GetLogs ¶
func (_m *PodInterface) GetLogs(name string, opts *v1.PodLogOptions) *rest.Request
GetLogs provides a mock function with given fields: name, opts
func (*PodInterface) List ¶
func (_m *PodInterface) List(opts metav1.ListOptions) (*v1.PodList, error)
List provides a mock function with given fields: opts
func (*PodInterface) Patch ¶
func (_m *PodInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1.Pod, error)
Patch provides a mock function with given fields: name, pt, data, subresources
func (*PodInterface) UpdateStatus ¶
UpdateStatus provides a mock function with given fields: _a0
func (*PodInterface) Watch ¶
func (_m *PodInterface) Watch(opts metav1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: 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