mocks

package
v0.0.0-...-b114afa Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: EPL-2.0 Imports: 13 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) 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

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

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

func (_m *PodInterface) Evict(ctx context.Context, eviction *v1beta1.Eviction) error

Evict provides a mock function with given fields: ctx, eviction

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

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

Watch provides a mock function with given fields: ctx, 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