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 ¶
- type MockClient
- func (m *MockClient) ApplyKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error
- func (m *MockClient) DeleteKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetDaemonSet(ctx context.Context, name, namespace, kubeconfig string) (*v1.DaemonSet, error)
- func (m *MockClient) GetDeployment(ctx context.Context, name, namespace, kubeconfig string) (*v1.Deployment, error)
- func (m *MockClient) RolloutRestartDaemonSet(ctx context.Context, name, namespace, kubeconfig string) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) ApplyKubeSpecFromBytes(ctx, cluster, data interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteKubeSpecFromBytes(ctx, cluster, data interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDaemonSet(ctx, name, namespace, kubeconfig interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDeployment(ctx, name, namespace, kubeconfig interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RolloutRestartDaemonSet(ctx, name, namespace, kubeconfig interface{}) *gomock.Call
- type MockHelmClientFactory
- type MockHelmClientFactoryMockRecorder
- type MockInstallTemplater
- type MockInstallTemplaterMockRecorder
- type MockKubernetesClient
- func (m *MockKubernetesClient) Apply(ctx context.Context, cluster *types.Cluster, data []byte) error
- func (m *MockKubernetesClient) Delete(ctx context.Context, cluster *types.Cluster, data []byte) error
- func (m *MockKubernetesClient) EXPECT() *MockKubernetesClientMockRecorder
- func (m *MockKubernetesClient) RolloutRestartCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error
- func (m *MockKubernetesClient) WaitForCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error
- func (m *MockKubernetesClient) WaitForCiliumDeployment(ctx context.Context, cluster *types.Cluster) error
- func (m *MockKubernetesClient) WaitForPreflightDaemonSet(ctx context.Context, cluster *types.Cluster) error
- func (m *MockKubernetesClient) WaitForPreflightDeployment(ctx context.Context, cluster *types.Cluster) error
- type MockKubernetesClientMockRecorder
- func (mr *MockKubernetesClientMockRecorder) Apply(ctx, cluster, data interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) Delete(ctx, cluster, data interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) RolloutRestartCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) WaitForCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) WaitForCiliumDeployment(ctx, cluster interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) WaitForPreflightDaemonSet(ctx, cluster interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) WaitForPreflightDeployment(ctx, cluster interface{}) *gomock.Call
- type MockUpgradeTemplater
- func (m *MockUpgradeTemplater) EXPECT() *MockUpgradeTemplaterMockRecorder
- func (m *MockUpgradeTemplater) GenerateManifest(ctx context.Context, spec *cluster.Spec, opts ...cilium.ManifestOpt) ([]byte, error)
- func (m *MockUpgradeTemplater) GenerateUpgradePreflightManifest(ctx context.Context, spec *cluster.Spec) ([]byte, error)
- type MockUpgradeTemplaterMockRecorder
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 MockHelmClientFactory ¶ added in v0.17.6
type MockHelmClientFactory struct {
// contains filtered or unexported fields
}
MockHelmClientFactory is a mock of HelmClientFactory interface.
func NewMockHelmClientFactory ¶ added in v0.17.6
func NewMockHelmClientFactory(ctrl *gomock.Controller) *MockHelmClientFactory
NewMockHelmClientFactory creates a new mock instance.
func (*MockHelmClientFactory) EXPECT ¶ added in v0.17.6
func (m *MockHelmClientFactory) EXPECT() *MockHelmClientFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHelmClientFactoryMockRecorder ¶ added in v0.17.6
type MockHelmClientFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockHelmClientFactoryMockRecorder is the mock recorder for MockHelmClientFactory.
func (*MockHelmClientFactoryMockRecorder) Get ¶ added in v0.17.6
func (mr *MockHelmClientFactoryMockRecorder) Get(ctx, clus interface{}) *gomock.Call
Get indicates an expected call of Get.
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
func (m *MockInstallTemplater) EXPECT() *MockInstallTemplaterMockRecorder
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
func (m *MockKubernetesClient) EXPECT() *MockKubernetesClientMockRecorder
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
func (m *MockUpgradeTemplater) EXPECT() *MockUpgradeTemplaterMockRecorder
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.