mocks

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) ApplyKubeSpecFromBytes

func (m *MockClient) ApplyKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error

ApplyKubeSpecFromBytes mocks base method.

func (*MockClient) DeleteKubeSpecFromBytes

func (m *MockClient) DeleteKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error

DeleteKubeSpecFromBytes mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetDaemonSet

func (m *MockClient) GetDaemonSet(ctx context.Context, name, namespace, kubeconfig string) (*v1.DaemonSet, error)

GetDaemonSet mocks base method.

func (*MockClient) GetDeployment

func (m *MockClient) GetDeployment(ctx context.Context, name, namespace, kubeconfig string) (*v1.Deployment, error)

GetDeployment mocks base method.

func (*MockClient) RolloutRestartDaemonSet added in v0.9.1

func (m *MockClient) RolloutRestartDaemonSet(ctx context.Context, name, namespace, kubeconfig string) error

RolloutRestartDaemonSet mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) ApplyKubeSpecFromBytes

func (mr *MockClientMockRecorder) ApplyKubeSpecFromBytes(ctx, cluster, data interface{}) *gomock.Call

ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.

func (*MockClientMockRecorder) DeleteKubeSpecFromBytes

func (mr *MockClientMockRecorder) DeleteKubeSpecFromBytes(ctx, cluster, data interface{}) *gomock.Call

DeleteKubeSpecFromBytes indicates an expected call of DeleteKubeSpecFromBytes.

func (*MockClientMockRecorder) GetDaemonSet

func (mr *MockClientMockRecorder) GetDaemonSet(ctx, name, namespace, kubeconfig interface{}) *gomock.Call

GetDaemonSet indicates an expected call of GetDaemonSet.

func (*MockClientMockRecorder) GetDeployment

func (mr *MockClientMockRecorder) GetDeployment(ctx, name, namespace, kubeconfig interface{}) *gomock.Call

GetDeployment indicates an expected call of GetDeployment.

func (*MockClientMockRecorder) RolloutRestartDaemonSet added in v0.9.1

func (mr *MockClientMockRecorder) RolloutRestartDaemonSet(ctx, name, namespace, kubeconfig interface{}) *gomock.Call

RolloutRestartDaemonSet indicates an expected call of RolloutRestartDaemonSet.

type MockHelm

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

MockHelm is a mock of Helm interface.

func NewMockHelm

func NewMockHelm(ctrl *gomock.Controller) *MockHelm

NewMockHelm creates a new mock instance.

func (*MockHelm) EXPECT

func (m *MockHelm) EXPECT() *MockHelmMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHelm) RegistryLogin added in v0.12.0

func (m *MockHelm) RegistryLogin(ctx context.Context, registry, username, password string) error

RegistryLogin mocks base method.

func (*MockHelm) Template

func (m *MockHelm) Template(ctx context.Context, ociURI, version, namespace string, values interface{}, kubeVersion string) ([]byte, error)

Template mocks base method.

type MockHelmMockRecorder

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

MockHelmMockRecorder is the mock recorder for MockHelm.

func (*MockHelmMockRecorder) RegistryLogin added in v0.12.0

func (mr *MockHelmMockRecorder) RegistryLogin(ctx, registry, username, password interface{}) *gomock.Call

RegistryLogin indicates an expected call of RegistryLogin.

func (*MockHelmMockRecorder) Template

func (mr *MockHelmMockRecorder) Template(ctx, ociURI, version, namespace, values, kubeVersion interface{}) *gomock.Call

Template indicates an expected call of Template.

type MockInstallTemplater added in v0.13.0

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

MockInstallTemplater is a mock of InstallTemplater interface.

func NewMockInstallTemplater added in v0.13.0

func NewMockInstallTemplater(ctrl *gomock.Controller) *MockInstallTemplater

NewMockInstallTemplater creates a new mock instance.

func (*MockInstallTemplater) EXPECT added in v0.13.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInstallTemplater) GenerateManifest added in v0.13.0

func (m *MockInstallTemplater) GenerateManifest(ctx context.Context, spec *cluster.Spec, opts ...cilium.ManifestOpt) ([]byte, error)

GenerateManifest mocks base method.

type MockInstallTemplaterMockRecorder added in v0.13.0

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

MockInstallTemplaterMockRecorder is the mock recorder for MockInstallTemplater.

func (*MockInstallTemplaterMockRecorder) GenerateManifest added in v0.13.0

func (mr *MockInstallTemplaterMockRecorder) GenerateManifest(ctx, spec interface{}, opts ...interface{}) *gomock.Call

GenerateManifest indicates an expected call of GenerateManifest.

type MockKubernetesClient added in v0.13.0

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

MockKubernetesClient is a mock of KubernetesClient interface.

func NewMockKubernetesClient added in v0.13.0

func NewMockKubernetesClient(ctrl *gomock.Controller) *MockKubernetesClient

NewMockKubernetesClient creates a new mock instance.

func (*MockKubernetesClient) Apply added in v0.13.0

func (m *MockKubernetesClient) Apply(ctx context.Context, cluster *types.Cluster, data []byte) error

Apply mocks base method.

func (*MockKubernetesClient) Delete added in v0.13.0

func (m *MockKubernetesClient) Delete(ctx context.Context, cluster *types.Cluster, data []byte) error

Delete mocks base method.

func (*MockKubernetesClient) EXPECT added in v0.13.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKubernetesClient) RolloutRestartCiliumDaemonSet added in v0.13.0

func (m *MockKubernetesClient) RolloutRestartCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error

RolloutRestartCiliumDaemonSet mocks base method.

func (*MockKubernetesClient) WaitForCiliumDaemonSet added in v0.13.0

func (m *MockKubernetesClient) WaitForCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error

WaitForCiliumDaemonSet mocks base method.

func (*MockKubernetesClient) WaitForCiliumDeployment added in v0.13.0

func (m *MockKubernetesClient) WaitForCiliumDeployment(ctx context.Context, cluster *types.Cluster) error

WaitForCiliumDeployment mocks base method.

func (*MockKubernetesClient) WaitForPreflightDaemonSet added in v0.13.0

func (m *MockKubernetesClient) WaitForPreflightDaemonSet(ctx context.Context, cluster *types.Cluster) error

WaitForPreflightDaemonSet mocks base method.

func (*MockKubernetesClient) WaitForPreflightDeployment added in v0.13.0

func (m *MockKubernetesClient) WaitForPreflightDeployment(ctx context.Context, cluster *types.Cluster) error

WaitForPreflightDeployment mocks base method.

type MockKubernetesClientMockRecorder added in v0.13.0

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

MockKubernetesClientMockRecorder is the mock recorder for MockKubernetesClient.

func (*MockKubernetesClientMockRecorder) Apply added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) Apply(ctx, cluster, data interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockKubernetesClientMockRecorder) Delete added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) Delete(ctx, cluster, data interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKubernetesClientMockRecorder) RolloutRestartCiliumDaemonSet added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) RolloutRestartCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call

RolloutRestartCiliumDaemonSet indicates an expected call of RolloutRestartCiliumDaemonSet.

func (*MockKubernetesClientMockRecorder) WaitForCiliumDaemonSet added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) WaitForCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call

WaitForCiliumDaemonSet indicates an expected call of WaitForCiliumDaemonSet.

func (*MockKubernetesClientMockRecorder) WaitForCiliumDeployment added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) WaitForCiliumDeployment(ctx, cluster interface{}) *gomock.Call

WaitForCiliumDeployment indicates an expected call of WaitForCiliumDeployment.

func (*MockKubernetesClientMockRecorder) WaitForPreflightDaemonSet added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) WaitForPreflightDaemonSet(ctx, cluster interface{}) *gomock.Call

WaitForPreflightDaemonSet indicates an expected call of WaitForPreflightDaemonSet.

func (*MockKubernetesClientMockRecorder) WaitForPreflightDeployment added in v0.13.0

func (mr *MockKubernetesClientMockRecorder) WaitForPreflightDeployment(ctx, cluster interface{}) *gomock.Call

WaitForPreflightDeployment indicates an expected call of WaitForPreflightDeployment.

type MockUpgradeTemplater added in v0.13.0

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

MockUpgradeTemplater is a mock of UpgradeTemplater interface.

func NewMockUpgradeTemplater added in v0.13.0

func NewMockUpgradeTemplater(ctrl *gomock.Controller) *MockUpgradeTemplater

NewMockUpgradeTemplater creates a new mock instance.

func (*MockUpgradeTemplater) EXPECT added in v0.13.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUpgradeTemplater) GenerateManifest added in v0.13.0

func (m *MockUpgradeTemplater) GenerateManifest(ctx context.Context, spec *cluster.Spec, opts ...cilium.ManifestOpt) ([]byte, error)

GenerateManifest mocks base method.

func (*MockUpgradeTemplater) GenerateUpgradePreflightManifest added in v0.13.0

func (m *MockUpgradeTemplater) GenerateUpgradePreflightManifest(ctx context.Context, spec *cluster.Spec) ([]byte, error)

GenerateUpgradePreflightManifest mocks base method.

type MockUpgradeTemplaterMockRecorder added in v0.13.0

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

MockUpgradeTemplaterMockRecorder is the mock recorder for MockUpgradeTemplater.

func (*MockUpgradeTemplaterMockRecorder) GenerateManifest added in v0.13.0

func (mr *MockUpgradeTemplaterMockRecorder) GenerateManifest(ctx, spec interface{}, opts ...interface{}) *gomock.Call

GenerateManifest indicates an expected call of GenerateManifest.

func (*MockUpgradeTemplaterMockRecorder) GenerateUpgradePreflightManifest added in v0.13.0

func (mr *MockUpgradeTemplaterMockRecorder) GenerateUpgradePreflightManifest(ctx, spec interface{}) *gomock.Call

GenerateUpgradePreflightManifest indicates an expected call of GenerateUpgradePreflightManifest.

Jump to

Keyboard shortcuts

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