mocks

package
v0.0.0-...-7d312d8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t testing.TB) *Client

NewClient creates a new instance of Client. It also registers a cleanup function to assert the mocks expectations.

func (*Client) DeletePod

func (_m *Client) DeletePod(ctx context.Context, namespace string, name string, opts v1.DeleteOptions) error

DeletePod provides a mock function with given fields: ctx, namespace, name, opts

func (*Client) GetStatefulSet

func (_m *Client) GetStatefulSet(ctx context.Context, namespace string, name string, opts v1.GetOptions) (*appsv1.StatefulSet, error)

GetStatefulSet provides a mock function with given fields: ctx, namespace, name, opts

func (*Client) ListNamespaces

func (_m *Client) ListNamespaces(ctx context.Context, opts v1.ListOptions) ([]corev1.Namespace, error)

ListNamespaces provides a mock function with given fields: ctx, opts

func (*Client) ListPods

func (_m *Client) ListPods(ctx context.Context, namespace string, opts v1.ListOptions) ([]corev1.Pod, error)

ListPods provides a mock function with given fields: ctx, namespace, opts

func (*Client) ListStatefulSets

func (_m *Client) ListStatefulSets(ctx context.Context, namespace string, opts v1.ListOptions) ([]appsv1.StatefulSet, error)

ListStatefulSets provides a mock function with given fields: ctx, namespace, opts

type CoreV1Interface

type CoreV1Interface struct {
	mock.Mock
}

CoreV1Interface is an autogenerated mock type for the CoreV1Interface type

func NewCoreV1Interface

func NewCoreV1Interface(t mockConstructorTestingTNewCoreV1Interface) *CoreV1Interface

NewCoreV1Interface creates a new instance of CoreV1Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CoreV1Interface) ComponentStatuses

func (_m *CoreV1Interface) ComponentStatuses() v1.ComponentStatusInterface

ComponentStatuses provides a mock function with given fields:

func (*CoreV1Interface) ConfigMaps

func (_m *CoreV1Interface) ConfigMaps(namespace string) v1.ConfigMapInterface

ConfigMaps provides a mock function with given fields: namespace

func (*CoreV1Interface) EXPECT

func (*CoreV1Interface) Endpoints

func (_m *CoreV1Interface) Endpoints(namespace string) v1.EndpointsInterface

Endpoints provides a mock function with given fields: namespace

func (*CoreV1Interface) Events

func (_m *CoreV1Interface) Events(namespace string) v1.EventInterface

Events provides a mock function with given fields: namespace

func (*CoreV1Interface) LimitRanges

func (_m *CoreV1Interface) LimitRanges(namespace string) v1.LimitRangeInterface

LimitRanges provides a mock function with given fields: namespace

func (*CoreV1Interface) Namespaces

func (_m *CoreV1Interface) Namespaces() v1.NamespaceInterface

Namespaces provides a mock function with given fields:

func (*CoreV1Interface) Nodes

func (_m *CoreV1Interface) Nodes() v1.NodeInterface

Nodes provides a mock function with given fields:

func (*CoreV1Interface) PersistentVolumeClaims

func (_m *CoreV1Interface) PersistentVolumeClaims(namespace string) v1.PersistentVolumeClaimInterface

PersistentVolumeClaims provides a mock function with given fields: namespace

func (*CoreV1Interface) PersistentVolumes

func (_m *CoreV1Interface) PersistentVolumes() v1.PersistentVolumeInterface

PersistentVolumes provides a mock function with given fields:

func (*CoreV1Interface) PodTemplates

func (_m *CoreV1Interface) PodTemplates(namespace string) v1.PodTemplateInterface

PodTemplates provides a mock function with given fields: namespace

func (*CoreV1Interface) Pods

func (_m *CoreV1Interface) Pods(namespace string) v1.PodInterface

Pods provides a mock function with given fields: namespace

func (*CoreV1Interface) RESTClient

func (_m *CoreV1Interface) RESTClient() rest.Interface

RESTClient provides a mock function with given fields:

func (*CoreV1Interface) ReplicationControllers

func (_m *CoreV1Interface) ReplicationControllers(namespace string) v1.ReplicationControllerInterface

ReplicationControllers provides a mock function with given fields: namespace

func (*CoreV1Interface) ResourceQuotas

func (_m *CoreV1Interface) ResourceQuotas(namespace string) v1.ResourceQuotaInterface

ResourceQuotas provides a mock function with given fields: namespace

func (*CoreV1Interface) Secrets

func (_m *CoreV1Interface) Secrets(namespace string) v1.SecretInterface

Secrets provides a mock function with given fields: namespace

func (*CoreV1Interface) ServiceAccounts

func (_m *CoreV1Interface) ServiceAccounts(namespace string) v1.ServiceAccountInterface

ServiceAccounts provides a mock function with given fields: namespace

func (*CoreV1Interface) Services

func (_m *CoreV1Interface) Services(namespace string) v1.ServiceInterface

Services provides a mock function with given fields: namespace

type CoreV1Interface_ComponentStatuses_Call

type CoreV1Interface_ComponentStatuses_Call struct {
	*mock.Call
}

CoreV1Interface_ComponentStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComponentStatuses'

func (*CoreV1Interface_ComponentStatuses_Call) Return

func (*CoreV1Interface_ComponentStatuses_Call) Run

func (*CoreV1Interface_ComponentStatuses_Call) RunAndReturn

type CoreV1Interface_ConfigMaps_Call

type CoreV1Interface_ConfigMaps_Call struct {
	*mock.Call
}

CoreV1Interface_ConfigMaps_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigMaps'

func (*CoreV1Interface_ConfigMaps_Call) Return

func (*CoreV1Interface_ConfigMaps_Call) Run

func (*CoreV1Interface_ConfigMaps_Call) RunAndReturn

type CoreV1Interface_Endpoints_Call

type CoreV1Interface_Endpoints_Call struct {
	*mock.Call
}

CoreV1Interface_Endpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Endpoints'

func (*CoreV1Interface_Endpoints_Call) Return

func (*CoreV1Interface_Endpoints_Call) Run

func (*CoreV1Interface_Endpoints_Call) RunAndReturn

type CoreV1Interface_Events_Call

type CoreV1Interface_Events_Call struct {
	*mock.Call
}

CoreV1Interface_Events_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Events'

func (*CoreV1Interface_Events_Call) Return

func (*CoreV1Interface_Events_Call) Run

func (_c *CoreV1Interface_Events_Call) Run(run func(namespace string)) *CoreV1Interface_Events_Call

func (*CoreV1Interface_Events_Call) RunAndReturn

type CoreV1Interface_Expecter

type CoreV1Interface_Expecter struct {
	// contains filtered or unexported fields
}

func (*CoreV1Interface_Expecter) ComponentStatuses

ComponentStatuses is a helper method to define mock.On call

func (*CoreV1Interface_Expecter) ConfigMaps

func (_e *CoreV1Interface_Expecter) ConfigMaps(namespace interface{}) *CoreV1Interface_ConfigMaps_Call

ConfigMaps is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) Endpoints

func (_e *CoreV1Interface_Expecter) Endpoints(namespace interface{}) *CoreV1Interface_Endpoints_Call

Endpoints is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) Events

func (_e *CoreV1Interface_Expecter) Events(namespace interface{}) *CoreV1Interface_Events_Call

Events is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) LimitRanges

func (_e *CoreV1Interface_Expecter) LimitRanges(namespace interface{}) *CoreV1Interface_LimitRanges_Call

LimitRanges is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) Namespaces

Namespaces is a helper method to define mock.On call

func (*CoreV1Interface_Expecter) Nodes

Nodes is a helper method to define mock.On call

func (*CoreV1Interface_Expecter) PersistentVolumeClaims

func (_e *CoreV1Interface_Expecter) PersistentVolumeClaims(namespace interface{}) *CoreV1Interface_PersistentVolumeClaims_Call

PersistentVolumeClaims is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) PersistentVolumes

PersistentVolumes is a helper method to define mock.On call

func (*CoreV1Interface_Expecter) PodTemplates

func (_e *CoreV1Interface_Expecter) PodTemplates(namespace interface{}) *CoreV1Interface_PodTemplates_Call

PodTemplates is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) Pods

func (_e *CoreV1Interface_Expecter) Pods(namespace interface{}) *CoreV1Interface_Pods_Call

Pods is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) RESTClient

RESTClient is a helper method to define mock.On call

func (*CoreV1Interface_Expecter) ReplicationControllers

func (_e *CoreV1Interface_Expecter) ReplicationControllers(namespace interface{}) *CoreV1Interface_ReplicationControllers_Call

ReplicationControllers is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) ResourceQuotas

func (_e *CoreV1Interface_Expecter) ResourceQuotas(namespace interface{}) *CoreV1Interface_ResourceQuotas_Call

ResourceQuotas is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) Secrets

func (_e *CoreV1Interface_Expecter) Secrets(namespace interface{}) *CoreV1Interface_Secrets_Call

Secrets is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) ServiceAccounts

func (_e *CoreV1Interface_Expecter) ServiceAccounts(namespace interface{}) *CoreV1Interface_ServiceAccounts_Call

ServiceAccounts is a helper method to define mock.On call

  • namespace string

func (*CoreV1Interface_Expecter) Services

func (_e *CoreV1Interface_Expecter) Services(namespace interface{}) *CoreV1Interface_Services_Call

Services is a helper method to define mock.On call

  • namespace string

type CoreV1Interface_LimitRanges_Call

type CoreV1Interface_LimitRanges_Call struct {
	*mock.Call
}

CoreV1Interface_LimitRanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LimitRanges'

func (*CoreV1Interface_LimitRanges_Call) Return

func (*CoreV1Interface_LimitRanges_Call) Run

func (*CoreV1Interface_LimitRanges_Call) RunAndReturn

type CoreV1Interface_Namespaces_Call

type CoreV1Interface_Namespaces_Call struct {
	*mock.Call
}

CoreV1Interface_Namespaces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Namespaces'

func (*CoreV1Interface_Namespaces_Call) Return

func (*CoreV1Interface_Namespaces_Call) Run

func (*CoreV1Interface_Namespaces_Call) RunAndReturn

type CoreV1Interface_Nodes_Call

type CoreV1Interface_Nodes_Call struct {
	*mock.Call
}

CoreV1Interface_Nodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Nodes'

func (*CoreV1Interface_Nodes_Call) Return

func (*CoreV1Interface_Nodes_Call) Run

func (*CoreV1Interface_Nodes_Call) RunAndReturn

type CoreV1Interface_PersistentVolumeClaims_Call

type CoreV1Interface_PersistentVolumeClaims_Call struct {
	*mock.Call
}

CoreV1Interface_PersistentVolumeClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PersistentVolumeClaims'

func (*CoreV1Interface_PersistentVolumeClaims_Call) Run

func (*CoreV1Interface_PersistentVolumeClaims_Call) RunAndReturn

type CoreV1Interface_PersistentVolumes_Call

type CoreV1Interface_PersistentVolumes_Call struct {
	*mock.Call
}

CoreV1Interface_PersistentVolumes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PersistentVolumes'

func (*CoreV1Interface_PersistentVolumes_Call) Return

func (*CoreV1Interface_PersistentVolumes_Call) Run

func (*CoreV1Interface_PersistentVolumes_Call) RunAndReturn

type CoreV1Interface_PodTemplates_Call

type CoreV1Interface_PodTemplates_Call struct {
	*mock.Call
}

CoreV1Interface_PodTemplates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodTemplates'

func (*CoreV1Interface_PodTemplates_Call) Return

func (*CoreV1Interface_PodTemplates_Call) Run

func (*CoreV1Interface_PodTemplates_Call) RunAndReturn

type CoreV1Interface_Pods_Call

type CoreV1Interface_Pods_Call struct {
	*mock.Call
}

CoreV1Interface_Pods_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pods'

func (*CoreV1Interface_Pods_Call) Return

func (*CoreV1Interface_Pods_Call) Run

func (_c *CoreV1Interface_Pods_Call) Run(run func(namespace string)) *CoreV1Interface_Pods_Call

func (*CoreV1Interface_Pods_Call) RunAndReturn

type CoreV1Interface_RESTClient_Call

type CoreV1Interface_RESTClient_Call struct {
	*mock.Call
}

CoreV1Interface_RESTClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTClient'

func (*CoreV1Interface_RESTClient_Call) Return

func (*CoreV1Interface_RESTClient_Call) Run

func (*CoreV1Interface_RESTClient_Call) RunAndReturn

type CoreV1Interface_ReplicationControllers_Call

type CoreV1Interface_ReplicationControllers_Call struct {
	*mock.Call
}

CoreV1Interface_ReplicationControllers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplicationControllers'

func (*CoreV1Interface_ReplicationControllers_Call) Run

func (*CoreV1Interface_ReplicationControllers_Call) RunAndReturn

type CoreV1Interface_ResourceQuotas_Call

type CoreV1Interface_ResourceQuotas_Call struct {
	*mock.Call
}

CoreV1Interface_ResourceQuotas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceQuotas'

func (*CoreV1Interface_ResourceQuotas_Call) Return

func (*CoreV1Interface_ResourceQuotas_Call) Run

func (*CoreV1Interface_ResourceQuotas_Call) RunAndReturn

type CoreV1Interface_Secrets_Call

type CoreV1Interface_Secrets_Call struct {
	*mock.Call
}

CoreV1Interface_Secrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Secrets'

func (*CoreV1Interface_Secrets_Call) Return

func (*CoreV1Interface_Secrets_Call) Run

func (*CoreV1Interface_Secrets_Call) RunAndReturn

type CoreV1Interface_ServiceAccounts_Call

type CoreV1Interface_ServiceAccounts_Call struct {
	*mock.Call
}

CoreV1Interface_ServiceAccounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServiceAccounts'

func (*CoreV1Interface_ServiceAccounts_Call) Return

func (*CoreV1Interface_ServiceAccounts_Call) Run

func (*CoreV1Interface_ServiceAccounts_Call) RunAndReturn

type CoreV1Interface_Services_Call

type CoreV1Interface_Services_Call struct {
	*mock.Call
}

CoreV1Interface_Services_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Services'

func (*CoreV1Interface_Services_Call) Return

func (*CoreV1Interface_Services_Call) Run

func (*CoreV1Interface_Services_Call) RunAndReturn

type Interface

type Interface struct {
	mock.Mock
}

Interface is an autogenerated mock type for the Interface type

func NewInterface

func NewInterface(t testing.TB) *Interface

NewInterface creates a new instance of Interface. It also registers a cleanup function to assert the mocks expectations.

func (*Interface) AdmissionregistrationV1

func (_m *Interface) AdmissionregistrationV1() v1.AdmissionregistrationV1Interface

AdmissionregistrationV1 provides a mock function with given fields:

func (*Interface) AdmissionregistrationV1beta1

func (_m *Interface) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface

AdmissionregistrationV1beta1 provides a mock function with given fields:

func (*Interface) AppsV1

func (_m *Interface) AppsV1() appsv1.AppsV1Interface

AppsV1 provides a mock function with given fields:

func (*Interface) AppsV1beta1

func (_m *Interface) AppsV1beta1() appsv1beta1.AppsV1beta1Interface

AppsV1beta1 provides a mock function with given fields:

func (*Interface) AppsV1beta2

func (_m *Interface) AppsV1beta2() v1beta2.AppsV1beta2Interface

AppsV1beta2 provides a mock function with given fields:

func (*Interface) AuthenticationV1

func (_m *Interface) AuthenticationV1() authenticationv1.AuthenticationV1Interface

AuthenticationV1 provides a mock function with given fields:

func (*Interface) AuthenticationV1beta1

AuthenticationV1beta1 provides a mock function with given fields:

func (*Interface) AuthorizationV1

func (_m *Interface) AuthorizationV1() authorizationv1.AuthorizationV1Interface

AuthorizationV1 provides a mock function with given fields:

func (*Interface) AuthorizationV1beta1

AuthorizationV1beta1 provides a mock function with given fields:

func (*Interface) AutoscalingV1

func (_m *Interface) AutoscalingV1() autoscalingv1.AutoscalingV1Interface

AutoscalingV1 provides a mock function with given fields:

func (*Interface) AutoscalingV2beta1

func (_m *Interface) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface

AutoscalingV2beta1 provides a mock function with given fields:

func (*Interface) AutoscalingV2beta2

func (_m *Interface) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface

AutoscalingV2beta2 provides a mock function with given fields:

func (*Interface) BatchV1

func (_m *Interface) BatchV1() batchv1.BatchV1Interface

BatchV1 provides a mock function with given fields:

func (*Interface) BatchV1beta1

func (_m *Interface) BatchV1beta1() batchv1beta1.BatchV1beta1Interface

BatchV1beta1 provides a mock function with given fields:

func (*Interface) CertificatesV1

func (_m *Interface) CertificatesV1() certificatesv1.CertificatesV1Interface

CertificatesV1 provides a mock function with given fields:

func (*Interface) CertificatesV1beta1

CertificatesV1beta1 provides a mock function with given fields:

func (*Interface) CoordinationV1

func (_m *Interface) CoordinationV1() coordinationv1.CoordinationV1Interface

CoordinationV1 provides a mock function with given fields:

func (*Interface) CoordinationV1beta1

CoordinationV1beta1 provides a mock function with given fields:

func (*Interface) CoreV1

func (_m *Interface) CoreV1() corev1.CoreV1Interface

CoreV1 provides a mock function with given fields:

func (*Interface) Discovery

func (_m *Interface) Discovery() discovery.DiscoveryInterface

Discovery provides a mock function with given fields:

func (*Interface) DiscoveryV1

func (_m *Interface) DiscoveryV1() discoveryv1.DiscoveryV1Interface

DiscoveryV1 provides a mock function with given fields:

func (*Interface) DiscoveryV1beta1

func (_m *Interface) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface

DiscoveryV1beta1 provides a mock function with given fields:

func (*Interface) EventsV1

func (_m *Interface) EventsV1() eventsv1.EventsV1Interface

EventsV1 provides a mock function with given fields:

func (*Interface) EventsV1beta1

func (_m *Interface) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface

EventsV1beta1 provides a mock function with given fields:

func (*Interface) ExtensionsV1beta1

func (_m *Interface) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface

ExtensionsV1beta1 provides a mock function with given fields:

func (*Interface) FlowcontrolV1alpha1

func (_m *Interface) FlowcontrolV1alpha1() v1alpha1.FlowcontrolV1alpha1Interface

FlowcontrolV1alpha1 provides a mock function with given fields:

func (*Interface) FlowcontrolV1beta1

func (_m *Interface) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface

FlowcontrolV1beta1 provides a mock function with given fields:

func (*Interface) InternalV1alpha1

InternalV1alpha1 provides a mock function with given fields:

func (*Interface) NetworkingV1

func (_m *Interface) NetworkingV1() networkingv1.NetworkingV1Interface

NetworkingV1 provides a mock function with given fields:

func (*Interface) NetworkingV1beta1

func (_m *Interface) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface

NetworkingV1beta1 provides a mock function with given fields:

func (*Interface) NodeV1

func (_m *Interface) NodeV1() nodev1.NodeV1Interface

NodeV1 provides a mock function with given fields:

func (*Interface) NodeV1alpha1

func (_m *Interface) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface

NodeV1alpha1 provides a mock function with given fields:

func (*Interface) NodeV1beta1

func (_m *Interface) NodeV1beta1() nodev1beta1.NodeV1beta1Interface

NodeV1beta1 provides a mock function with given fields:

func (*Interface) PolicyV1

func (_m *Interface) PolicyV1() policyv1.PolicyV1Interface

PolicyV1 provides a mock function with given fields:

func (*Interface) PolicyV1beta1

func (_m *Interface) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface

PolicyV1beta1 provides a mock function with given fields:

func (*Interface) RbacV1

func (_m *Interface) RbacV1() rbacv1.RbacV1Interface

RbacV1 provides a mock function with given fields:

func (*Interface) RbacV1alpha1

func (_m *Interface) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface

RbacV1alpha1 provides a mock function with given fields:

func (*Interface) RbacV1beta1

func (_m *Interface) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface

RbacV1beta1 provides a mock function with given fields:

func (*Interface) SchedulingV1

func (_m *Interface) SchedulingV1() schedulingv1.SchedulingV1Interface

SchedulingV1 provides a mock function with given fields:

func (*Interface) SchedulingV1alpha1

func (_m *Interface) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface

SchedulingV1alpha1 provides a mock function with given fields:

func (*Interface) SchedulingV1beta1

func (_m *Interface) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface

SchedulingV1beta1 provides a mock function with given fields:

func (*Interface) StorageV1

func (_m *Interface) StorageV1() storagev1.StorageV1Interface

StorageV1 provides a mock function with given fields:

func (*Interface) StorageV1alpha1

func (_m *Interface) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface

StorageV1alpha1 provides a mock function with given fields:

func (*Interface) StorageV1beta1

func (_m *Interface) StorageV1beta1() storagev1beta1.StorageV1beta1Interface

StorageV1beta1 provides a mock function with given fields:

type PodInterface

type PodInterface struct {
	mock.Mock
}

PodInterface is an autogenerated mock type for the PodInterface type

func NewPodInterface

func NewPodInterface(t mockConstructorTestingTNewPodInterface) *PodInterface

NewPodInterface creates a new instance of PodInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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

func (_m *PodInterface) EXPECT() *PodInterface_Expecter

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

func (_m *PodInterface) EvictV1(ctx context.Context, eviction *policyv1.Eviction) error

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

func (*PodInterface) EvictV1beta1

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

EvictV1beta1 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) 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, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)

UpdateEphemeralContainers provides a mock function with given fields: ctx, podName, pod, 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 PodInterface_ApplyStatus_Call

type PodInterface_ApplyStatus_Call struct {
	*mock.Call
}

PodInterface_ApplyStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyStatus'

func (*PodInterface_ApplyStatus_Call) Return

func (*PodInterface_ApplyStatus_Call) Run

func (*PodInterface_ApplyStatus_Call) RunAndReturn

type PodInterface_Apply_Call

type PodInterface_Apply_Call struct {
	*mock.Call
}

PodInterface_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'

func (*PodInterface_Apply_Call) Return

func (*PodInterface_Apply_Call) Run

func (*PodInterface_Apply_Call) RunAndReturn

type PodInterface_Bind_Call

type PodInterface_Bind_Call struct {
	*mock.Call
}

PodInterface_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'

func (*PodInterface_Bind_Call) Return

func (*PodInterface_Bind_Call) Run

func (*PodInterface_Bind_Call) RunAndReturn

type PodInterface_Create_Call

type PodInterface_Create_Call struct {
	*mock.Call
}

PodInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*PodInterface_Create_Call) Return

func (*PodInterface_Create_Call) Run

func (*PodInterface_Create_Call) RunAndReturn

type PodInterface_DeleteCollection_Call

type PodInterface_DeleteCollection_Call struct {
	*mock.Call
}

PodInterface_DeleteCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCollection'

func (*PodInterface_DeleteCollection_Call) Return

func (*PodInterface_DeleteCollection_Call) Run

func (*PodInterface_DeleteCollection_Call) RunAndReturn

type PodInterface_Delete_Call

type PodInterface_Delete_Call struct {
	*mock.Call
}

PodInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*PodInterface_Delete_Call) Return

func (*PodInterface_Delete_Call) Run

func (*PodInterface_Delete_Call) RunAndReturn

type PodInterface_EvictV1_Call

type PodInterface_EvictV1_Call struct {
	*mock.Call
}

PodInterface_EvictV1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvictV1'

func (*PodInterface_EvictV1_Call) Return

func (*PodInterface_EvictV1_Call) Run

func (*PodInterface_EvictV1_Call) RunAndReturn

type PodInterface_EvictV1beta1_Call

type PodInterface_EvictV1beta1_Call struct {
	*mock.Call
}

PodInterface_EvictV1beta1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvictV1beta1'

func (*PodInterface_EvictV1beta1_Call) Return

func (*PodInterface_EvictV1beta1_Call) Run

func (*PodInterface_EvictV1beta1_Call) RunAndReturn

type PodInterface_Evict_Call

type PodInterface_Evict_Call struct {
	*mock.Call
}

PodInterface_Evict_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Evict'

func (*PodInterface_Evict_Call) Return

func (*PodInterface_Evict_Call) Run

func (*PodInterface_Evict_Call) RunAndReturn

type PodInterface_Expecter

type PodInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*PodInterface_Expecter) Apply

func (_e *PodInterface_Expecter) Apply(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_Apply_Call

Apply is a helper method to define mock.On call

  • ctx context.Context
  • pod *v1.PodApplyConfiguration
  • opts metav1.ApplyOptions

func (*PodInterface_Expecter) ApplyStatus

func (_e *PodInterface_Expecter) ApplyStatus(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_ApplyStatus_Call

ApplyStatus is a helper method to define mock.On call

  • ctx context.Context
  • pod *v1.PodApplyConfiguration
  • opts metav1.ApplyOptions

func (*PodInterface_Expecter) Bind

func (_e *PodInterface_Expecter) Bind(ctx interface{}, binding interface{}, opts interface{}) *PodInterface_Bind_Call

Bind is a helper method to define mock.On call

  • ctx context.Context
  • binding *corev1.Binding
  • opts metav1.CreateOptions

func (*PodInterface_Expecter) Create

func (_e *PodInterface_Expecter) Create(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • pod *corev1.Pod
  • opts metav1.CreateOptions

func (*PodInterface_Expecter) Delete

func (_e *PodInterface_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *PodInterface_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts metav1.DeleteOptions

func (*PodInterface_Expecter) DeleteCollection

func (_e *PodInterface_Expecter) DeleteCollection(ctx interface{}, opts interface{}, listOpts interface{}) *PodInterface_DeleteCollection_Call

DeleteCollection is a helper method to define mock.On call

  • ctx context.Context
  • opts metav1.DeleteOptions
  • listOpts metav1.ListOptions

func (*PodInterface_Expecter) Evict

func (_e *PodInterface_Expecter) Evict(ctx interface{}, eviction interface{}) *PodInterface_Evict_Call

Evict is a helper method to define mock.On call

  • ctx context.Context
  • eviction *v1beta1.Eviction

func (*PodInterface_Expecter) EvictV1

func (_e *PodInterface_Expecter) EvictV1(ctx interface{}, eviction interface{}) *PodInterface_EvictV1_Call

EvictV1 is a helper method to define mock.On call

  • ctx context.Context
  • eviction *policyv1.Eviction

func (*PodInterface_Expecter) EvictV1beta1

func (_e *PodInterface_Expecter) EvictV1beta1(ctx interface{}, eviction interface{}) *PodInterface_EvictV1beta1_Call

EvictV1beta1 is a helper method to define mock.On call

  • ctx context.Context
  • eviction *v1beta1.Eviction

func (*PodInterface_Expecter) Get

func (_e *PodInterface_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *PodInterface_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts metav1.GetOptions

func (*PodInterface_Expecter) GetLogs

func (_e *PodInterface_Expecter) GetLogs(name interface{}, opts interface{}) *PodInterface_GetLogs_Call

GetLogs is a helper method to define mock.On call

  • name string
  • opts *corev1.PodLogOptions

func (*PodInterface_Expecter) List

func (_e *PodInterface_Expecter) List(ctx interface{}, opts interface{}) *PodInterface_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • opts metav1.ListOptions

func (*PodInterface_Expecter) Patch

func (_e *PodInterface_Expecter) Patch(ctx interface{}, name interface{}, pt interface{}, data interface{}, opts interface{}, subresources ...interface{}) *PodInterface_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • pt types.PatchType
  • data []byte
  • opts metav1.PatchOptions
  • subresources ...string

func (*PodInterface_Expecter) ProxyGet

func (_e *PodInterface_Expecter) ProxyGet(scheme interface{}, name interface{}, port interface{}, path interface{}, params interface{}) *PodInterface_ProxyGet_Call

ProxyGet is a helper method to define mock.On call

  • scheme string
  • name string
  • port string
  • path string
  • params map[string]string

func (*PodInterface_Expecter) Update

func (_e *PodInterface_Expecter) Update(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • pod *corev1.Pod
  • opts metav1.UpdateOptions

func (*PodInterface_Expecter) UpdateEphemeralContainers

func (_e *PodInterface_Expecter) UpdateEphemeralContainers(ctx interface{}, podName interface{}, pod interface{}, opts interface{}) *PodInterface_UpdateEphemeralContainers_Call

UpdateEphemeralContainers is a helper method to define mock.On call

  • ctx context.Context
  • podName string
  • pod *corev1.Pod
  • opts metav1.UpdateOptions

func (*PodInterface_Expecter) UpdateStatus

func (_e *PodInterface_Expecter) UpdateStatus(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_UpdateStatus_Call

UpdateStatus is a helper method to define mock.On call

  • ctx context.Context
  • pod *corev1.Pod
  • opts metav1.UpdateOptions

func (*PodInterface_Expecter) Watch

func (_e *PodInterface_Expecter) Watch(ctx interface{}, opts interface{}) *PodInterface_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • opts metav1.ListOptions

type PodInterface_GetLogs_Call

type PodInterface_GetLogs_Call struct {
	*mock.Call
}

PodInterface_GetLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogs'

func (*PodInterface_GetLogs_Call) Return

func (*PodInterface_GetLogs_Call) Run

func (*PodInterface_GetLogs_Call) RunAndReturn

type PodInterface_Get_Call

type PodInterface_Get_Call struct {
	*mock.Call
}

PodInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*PodInterface_Get_Call) Return

func (*PodInterface_Get_Call) Run

func (*PodInterface_Get_Call) RunAndReturn

type PodInterface_List_Call

type PodInterface_List_Call struct {
	*mock.Call
}

PodInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*PodInterface_List_Call) Return

func (*PodInterface_List_Call) Run

func (*PodInterface_List_Call) RunAndReturn

type PodInterface_Patch_Call

type PodInterface_Patch_Call struct {
	*mock.Call
}

PodInterface_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*PodInterface_Patch_Call) Return

func (*PodInterface_Patch_Call) Run

func (_c *PodInterface_Patch_Call) Run(run func(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string)) *PodInterface_Patch_Call

func (*PodInterface_Patch_Call) RunAndReturn

type PodInterface_ProxyGet_Call

type PodInterface_ProxyGet_Call struct {
	*mock.Call
}

PodInterface_ProxyGet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProxyGet'

func (*PodInterface_ProxyGet_Call) Return

func (*PodInterface_ProxyGet_Call) Run

func (_c *PodInterface_ProxyGet_Call) Run(run func(scheme string, name string, port string, path string, params map[string]string)) *PodInterface_ProxyGet_Call

func (*PodInterface_ProxyGet_Call) RunAndReturn

type PodInterface_UpdateEphemeralContainers_Call

type PodInterface_UpdateEphemeralContainers_Call struct {
	*mock.Call
}

PodInterface_UpdateEphemeralContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEphemeralContainers'

func (*PodInterface_UpdateEphemeralContainers_Call) Return

func (*PodInterface_UpdateEphemeralContainers_Call) Run

func (*PodInterface_UpdateEphemeralContainers_Call) RunAndReturn

type PodInterface_UpdateStatus_Call

type PodInterface_UpdateStatus_Call struct {
	*mock.Call
}

PodInterface_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'

func (*PodInterface_UpdateStatus_Call) Return

func (*PodInterface_UpdateStatus_Call) Run

func (*PodInterface_UpdateStatus_Call) RunAndReturn

type PodInterface_Update_Call

type PodInterface_Update_Call struct {
	*mock.Call
}

PodInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*PodInterface_Update_Call) Return

func (*PodInterface_Update_Call) Run

func (*PodInterface_Update_Call) RunAndReturn

type PodInterface_Watch_Call

type PodInterface_Watch_Call struct {
	*mock.Call
}

PodInterface_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'

func (*PodInterface_Watch_Call) Return

func (*PodInterface_Watch_Call) Run

func (*PodInterface_Watch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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