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 MockHelm
- type MockHelmMockRecorder
- type MockupgraderClient
- func (m *MockupgraderClient) Apply(ctx context.Context, cluster *types.Cluster, data []byte) error
- func (m *MockupgraderClient) Delete(ctx context.Context, cluster *types.Cluster, data []byte) error
- func (m *MockupgraderClient) EXPECT() *MockupgraderClientMockRecorder
- func (m *MockupgraderClient) RolloutRestartCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error
- func (m *MockupgraderClient) WaitForCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error
- func (m *MockupgraderClient) WaitForCiliumDeployment(ctx context.Context, cluster *types.Cluster) error
- func (m *MockupgraderClient) WaitForPreflightDaemonSet(ctx context.Context, cluster *types.Cluster) error
- func (m *MockupgraderClient) WaitForPreflightDeployment(ctx context.Context, cluster *types.Cluster) error
- type MockupgraderClientMockRecorder
- func (mr *MockupgraderClientMockRecorder) Apply(ctx, cluster, data interface{}) *gomock.Call
- func (mr *MockupgraderClientMockRecorder) Delete(ctx, cluster, data interface{}) *gomock.Call
- func (mr *MockupgraderClientMockRecorder) RolloutRestartCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call
- func (mr *MockupgraderClientMockRecorder) WaitForCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call
- func (mr *MockupgraderClientMockRecorder) WaitForCiliumDeployment(ctx, cluster interface{}) *gomock.Call
- func (mr *MockupgraderClientMockRecorder) WaitForPreflightDaemonSet(ctx, cluster interface{}) *gomock.Call
- func (mr *MockupgraderClientMockRecorder) WaitForPreflightDeployment(ctx, cluster interface{}) *gomock.Call
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
RegistryLogin 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 MockupgraderClient ¶
type MockupgraderClient struct {
// contains filtered or unexported fields
}
MockupgraderClient is a mock of upgraderClient interface.
func NewMockupgraderClient ¶
func NewMockupgraderClient(ctrl *gomock.Controller) *MockupgraderClient
NewMockupgraderClient creates a new mock instance.
func (*MockupgraderClient) EXPECT ¶
func (m *MockupgraderClient) EXPECT() *MockupgraderClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockupgraderClient) RolloutRestartCiliumDaemonSet ¶ added in v0.9.1
func (m *MockupgraderClient) RolloutRestartCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error
RolloutRestartCiliumDaemonSet mocks base method.
func (*MockupgraderClient) WaitForCiliumDaemonSet ¶
func (m *MockupgraderClient) WaitForCiliumDaemonSet(ctx context.Context, cluster *types.Cluster) error
WaitForCiliumDaemonSet mocks base method.
func (*MockupgraderClient) WaitForCiliumDeployment ¶
func (m *MockupgraderClient) WaitForCiliumDeployment(ctx context.Context, cluster *types.Cluster) error
WaitForCiliumDeployment mocks base method.
func (*MockupgraderClient) WaitForPreflightDaemonSet ¶
func (m *MockupgraderClient) WaitForPreflightDaemonSet(ctx context.Context, cluster *types.Cluster) error
WaitForPreflightDaemonSet mocks base method.
func (*MockupgraderClient) WaitForPreflightDeployment ¶
func (m *MockupgraderClient) WaitForPreflightDeployment(ctx context.Context, cluster *types.Cluster) error
WaitForPreflightDeployment mocks base method.
type MockupgraderClientMockRecorder ¶
type MockupgraderClientMockRecorder struct {
// contains filtered or unexported fields
}
MockupgraderClientMockRecorder is the mock recorder for MockupgraderClient.
func (*MockupgraderClientMockRecorder) Apply ¶
func (mr *MockupgraderClientMockRecorder) Apply(ctx, cluster, data interface{}) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockupgraderClientMockRecorder) Delete ¶
func (mr *MockupgraderClientMockRecorder) Delete(ctx, cluster, data interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockupgraderClientMockRecorder) RolloutRestartCiliumDaemonSet ¶ added in v0.9.1
func (mr *MockupgraderClientMockRecorder) RolloutRestartCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call
RolloutRestartCiliumDaemonSet indicates an expected call of RolloutRestartCiliumDaemonSet.
func (*MockupgraderClientMockRecorder) WaitForCiliumDaemonSet ¶
func (mr *MockupgraderClientMockRecorder) WaitForCiliumDaemonSet(ctx, cluster interface{}) *gomock.Call
WaitForCiliumDaemonSet indicates an expected call of WaitForCiliumDaemonSet.
func (*MockupgraderClientMockRecorder) WaitForCiliumDeployment ¶
func (mr *MockupgraderClientMockRecorder) WaitForCiliumDeployment(ctx, cluster interface{}) *gomock.Call
WaitForCiliumDeployment indicates an expected call of WaitForCiliumDeployment.
func (*MockupgraderClientMockRecorder) WaitForPreflightDaemonSet ¶
func (mr *MockupgraderClientMockRecorder) WaitForPreflightDaemonSet(ctx, cluster interface{}) *gomock.Call
WaitForPreflightDaemonSet indicates an expected call of WaitForPreflightDaemonSet.
func (*MockupgraderClientMockRecorder) WaitForPreflightDeployment ¶
func (mr *MockupgraderClientMockRecorder) WaitForPreflightDeployment(ctx, cluster interface{}) *gomock.Call
WaitForPreflightDeployment indicates an expected call of WaitForPreflightDeployment.