mocks

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubernetes

type Kubernetes struct {
	mock.Mock
}

Kubernetes is an autogenerated mock type for the Kubernetes type

func NewKubernetes

func NewKubernetes(t interface {
	mock.TestingT
	Cleanup(func())
}) *Kubernetes

NewKubernetes creates a new instance of Kubernetes. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Kubernetes) GetClient

func (_m *Kubernetes) GetClient() client.Client

GetClient provides a mock function with given fields:

func (*Kubernetes) GetDynamicConfigWithName

func (_m *Kubernetes) GetDynamicConfigWithName(ctx context.Context, name string) (string, error)

GetDynamicConfigWithName provides a mock function with given fields: ctx, name

func (*Kubernetes) GetLocalPods

func (_m *Kubernetes) GetLocalPods() ([]*daemon.PodInfo, error)

GetLocalPods provides a mock function with given fields:

func (*Kubernetes) GetNodeCidr

func (_m *Kubernetes) GetNodeCidr() *types.IPNetSet

GetNodeCidr provides a mock function with given fields:

func (*Kubernetes) GetNodeDynamicConfigLabel

func (_m *Kubernetes) GetNodeDynamicConfigLabel() string

GetNodeDynamicConfigLabel provides a mock function with given fields:

func (*Kubernetes) GetPod

func (_m *Kubernetes) GetPod(ctx context.Context, namespace string, name string, cache bool) (*daemon.PodInfo, error)

GetPod provides a mock function with given fields: ctx, namespace, name, cache

func (*Kubernetes) GetServiceCIDR

func (_m *Kubernetes) GetServiceCIDR() *types.IPNetSet

GetServiceCIDR provides a mock function with given fields:

func (*Kubernetes) GetTrunkID

func (_m *Kubernetes) GetTrunkID() string

GetTrunkID provides a mock function with given fields:

func (*Kubernetes) PatchNodeAnnotations

func (_m *Kubernetes) PatchNodeAnnotations(anno map[string]string) error

PatchNodeAnnotations provides a mock function with given fields: anno

func (*Kubernetes) PatchNodeIPResCondition

func (_m *Kubernetes) PatchNodeIPResCondition(status v1.ConditionStatus, reason string, message string) error

PatchNodeIPResCondition provides a mock function with given fields: status, reason, message

func (*Kubernetes) PatchPodIPInfo

func (_m *Kubernetes) PatchPodIPInfo(info *daemon.PodInfo, ips string) error

PatchPodIPInfo provides a mock function with given fields: info, ips

func (*Kubernetes) PodExist

func (_m *Kubernetes) PodExist(namespace string, name string) (bool, error)

PodExist provides a mock function with given fields: namespace, name

func (*Kubernetes) RecordNodeEvent

func (_m *Kubernetes) RecordNodeEvent(eventType string, reason string, message string)

RecordNodeEvent provides a mock function with given fields: eventType, reason, message

func (*Kubernetes) RecordPodEvent

func (_m *Kubernetes) RecordPodEvent(podName string, podNamespace string, eventType string, reason string, message string) error

RecordPodEvent provides a mock function with given fields: podName, podNamespace, eventType, reason, message

func (*Kubernetes) SetCustomStatefulWorkloadKinds

func (_m *Kubernetes) SetCustomStatefulWorkloadKinds(kinds []string) error

SetCustomStatefulWorkloadKinds provides a mock function with given fields: kinds

func (*Kubernetes) SetNodeAllocatablePod

func (_m *Kubernetes) SetNodeAllocatablePod(count int) error

SetNodeAllocatablePod provides a mock function with given fields: count

func (*Kubernetes) WaitTrunkReady

func (_m *Kubernetes) WaitTrunkReady() (string, error)

WaitTrunkReady provides a mock function with given fields:

Jump to

Keyboard shortcuts

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