mocks

package
v0.0.0-...-05a06e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2021 License: EPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerShellDetector

type ContainerShellDetector struct {
	mock.Mock
}

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

type ExecInfoParser struct {
	mock.Mock
}

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

func (*ExecInfoParser) ParseUID

func (_m *ExecInfoParser) ParseUID(content string) (string, error)

ParseUID provides a mock function with given fields: content

type ExecManager

type ExecManager struct {
	mock.Mock
}

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

type InfoExec struct {
	mock.Mock
}

InfoExec is an autogenerated mock type for the InfoExec type

func (*InfoExec) GetOutput

func (_m *InfoExec) GetOutput() string

GetOutput provides a mock function with given fields:

func (*InfoExec) Start

func (_m *InfoExec) Start() error

Start provides a mock function with given fields:

type InfoExecCreator

type InfoExecCreator struct {
	mock.Mock
}

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

type PodInterface struct {
	mock.Mock
}

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) Create

func (_m *PodInterface) Create(_a0 *v1.Pod) (*v1.Pod, error)

Create provides a mock function with given fields: _a0

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) Update

func (_m *PodInterface) Update(_a0 *v1.Pod) (*v1.Pod, error)

Update provides a mock function with given fields: _a0

func (*PodInterface) UpdateStatus

func (_m *PodInterface) UpdateStatus(_a0 *v1.Pod) (*v1.Pod, error)

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

type PodsGetter struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL