Documentation
¶
Overview ¶
Package stack is a generated GoMock package.
Index ¶
- Constants
- func NewDeprovisionReconciler(spec DeprovisionReconcilerSpec) *deprovisionReconciler
- func NewNamespaceReconciler(spec NamespaceReconcilerSpec) *namespaceReconciler
- func NewStackWorker(spec StackWorkerSpec) worker.Worker
- type DeprovisionReconcilerSpec
- type MocknamespaceService
- type MocknamespaceServiceMockRecorder
- type MocksecretService
- type MocksecretServiceMockRecorder
- type MockstackService
- func (m *MockstackService) EXPECT() *MockstackServiceMockRecorder
- func (m *MockstackService) InternalDeleteFromDB(ctx context.Context, ID string) *errors.ServiceError
- func (m *MockstackService) InternalGetStack(ctx context.Context, ID string) (*models.Stack, *errors.ServiceError)
- func (m *MockstackService) InternalList(ctx context.Context, query string, args ...any) ([]*models.Stack, *errors.ServiceError)
- func (m *MockstackService) UpdateStackCrRevision(ctx context.Context, ID, crRevision string) *errors.ServiceError
- func (m *MockstackService) UpdateStatus(ctx context.Context, ID string, status *models.StackStatus) *errors.ServiceError
- type MockstackServiceMockRecorder
- func (mr *MockstackServiceMockRecorder) InternalDeleteFromDB(ctx, ID any) *gomock.Call
- func (mr *MockstackServiceMockRecorder) InternalGetStack(ctx, ID any) *gomock.Call
- func (mr *MockstackServiceMockRecorder) InternalList(ctx, query any, args ...any) *gomock.Call
- func (mr *MockstackServiceMockRecorder) UpdateStackCrRevision(ctx, ID, crRevision any) *gomock.Call
- func (mr *MockstackServiceMockRecorder) UpdateStatus(ctx, ID, status any) *gomock.Call
- type MocksubReconciler
- type MocksubReconcilerMockRecorder
- type MockvolumeService
- func (m *MockvolumeService) EXPECT() *MockvolumeServiceMockRecorder
- func (m *MockvolumeService) InternalDeleteVolumesUsedByStackFromDB(ctx context.Context, stackID string) *errors.ServiceError
- func (m *MockvolumeService) ListVolumesUsedByStack(ctx context.Context, stackID string) ([]*models.Volume, *errors.ServiceError)
- type MockvolumeServiceMockRecorder
- type NamespaceReconcilerSpec
- type StackWorkerSpec
Constants ¶
const (
StackWorkerName = "stack-worker"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeprovisionReconciler ¶
func NewDeprovisionReconciler(spec DeprovisionReconcilerSpec) *deprovisionReconciler
func NewNamespaceReconciler ¶
func NewNamespaceReconciler(spec NamespaceReconcilerSpec) *namespaceReconciler
func NewStackWorker ¶
func NewStackWorker(spec StackWorkerSpec) worker.Worker
Types ¶
type DeprovisionReconcilerSpec ¶
type DeprovisionReconcilerSpec struct {
StackService stackService
NamespaceService namespaceService
SecretService secretService
Logger logger.Logger
VolumeService volumeService
ClusterManager clustermanager.ClusterManager
}
type MocknamespaceService ¶
type MocknamespaceService struct {
// contains filtered or unexported fields
}
MocknamespaceService is a mock of namespaceService interface.
func NewMocknamespaceService ¶
func NewMocknamespaceService(ctrl *gomock.Controller) *MocknamespaceService
NewMocknamespaceService creates a new mock instance.
func (*MocknamespaceService) EXPECT ¶
func (m *MocknamespaceService) EXPECT() *MocknamespaceServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocknamespaceService) Get ¶
func (m *MocknamespaceService) Get(ctx context.Context, id string) (*models.Namespace, *errors.ServiceError)
Get mocks base method.
func (*MocknamespaceService) InternalDeleteFromDB ¶
func (m *MocknamespaceService) InternalDeleteFromDB(ctx context.Context, ID string) *errors.ServiceError
InternalDeleteFromDB mocks base method.
type MocknamespaceServiceMockRecorder ¶
type MocknamespaceServiceMockRecorder struct {
// contains filtered or unexported fields
}
MocknamespaceServiceMockRecorder is the mock recorder for MocknamespaceService.
func (*MocknamespaceServiceMockRecorder) Get ¶
func (mr *MocknamespaceServiceMockRecorder) Get(ctx, id any) *gomock.Call
Get indicates an expected call of Get.
func (*MocknamespaceServiceMockRecorder) InternalDeleteFromDB ¶
func (mr *MocknamespaceServiceMockRecorder) InternalDeleteFromDB(ctx, ID any) *gomock.Call
InternalDeleteFromDB indicates an expected call of InternalDeleteFromDB.
type MocksecretService ¶
type MocksecretService struct {
// contains filtered or unexported fields
}
MocksecretService is a mock of secretService interface.
func NewMocksecretService ¶
func NewMocksecretService(ctrl *gomock.Controller) *MocksecretService
NewMocksecretService creates a new mock instance.
func (*MocksecretService) EXPECT ¶
func (m *MocksecretService) EXPECT() *MocksecretServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocksecretService) InternalGetByID ¶
func (m *MocksecretService) InternalGetByID(ctx context.Context, id string) (*models.Secret, *errors.ServiceError)
InternalGetByID mocks base method.
type MocksecretServiceMockRecorder ¶
type MocksecretServiceMockRecorder struct {
// contains filtered or unexported fields
}
MocksecretServiceMockRecorder is the mock recorder for MocksecretService.
func (*MocksecretServiceMockRecorder) InternalGetByID ¶
func (mr *MocksecretServiceMockRecorder) InternalGetByID(ctx, id any) *gomock.Call
InternalGetByID indicates an expected call of InternalGetByID.
type MockstackService ¶
type MockstackService struct {
// contains filtered or unexported fields
}
MockstackService is a mock of stackService interface.
func NewMockstackService ¶
func NewMockstackService(ctrl *gomock.Controller) *MockstackService
NewMockstackService creates a new mock instance.
func (*MockstackService) EXPECT ¶
func (m *MockstackService) EXPECT() *MockstackServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockstackService) InternalDeleteFromDB ¶
func (m *MockstackService) InternalDeleteFromDB(ctx context.Context, ID string) *errors.ServiceError
InternalDeleteFromDB mocks base method.
func (*MockstackService) InternalGetStack ¶
func (m *MockstackService) InternalGetStack(ctx context.Context, ID string) (*models.Stack, *errors.ServiceError)
InternalGetStack mocks base method.
func (*MockstackService) InternalList ¶
func (m *MockstackService) InternalList(ctx context.Context, query string, args ...any) ([]*models.Stack, *errors.ServiceError)
InternalList mocks base method.
func (*MockstackService) UpdateStackCrRevision ¶
func (m *MockstackService) UpdateStackCrRevision(ctx context.Context, ID, crRevision string) *errors.ServiceError
UpdateStackCrRevision mocks base method.
func (*MockstackService) UpdateStatus ¶
func (m *MockstackService) UpdateStatus(ctx context.Context, ID string, status *models.StackStatus) *errors.ServiceError
UpdateStatus mocks base method.
type MockstackServiceMockRecorder ¶
type MockstackServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockstackServiceMockRecorder is the mock recorder for MockstackService.
func (*MockstackServiceMockRecorder) InternalDeleteFromDB ¶
func (mr *MockstackServiceMockRecorder) InternalDeleteFromDB(ctx, ID any) *gomock.Call
InternalDeleteFromDB indicates an expected call of InternalDeleteFromDB.
func (*MockstackServiceMockRecorder) InternalGetStack ¶
func (mr *MockstackServiceMockRecorder) InternalGetStack(ctx, ID any) *gomock.Call
InternalGetStack indicates an expected call of InternalGetStack.
func (*MockstackServiceMockRecorder) InternalList ¶
func (mr *MockstackServiceMockRecorder) InternalList(ctx, query any, args ...any) *gomock.Call
InternalList indicates an expected call of InternalList.
func (*MockstackServiceMockRecorder) UpdateStackCrRevision ¶
func (mr *MockstackServiceMockRecorder) UpdateStackCrRevision(ctx, ID, crRevision any) *gomock.Call
UpdateStackCrRevision indicates an expected call of UpdateStackCrRevision.
func (*MockstackServiceMockRecorder) UpdateStatus ¶
func (mr *MockstackServiceMockRecorder) UpdateStatus(ctx, ID, status any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
type MocksubReconciler ¶
type MocksubReconciler struct {
// contains filtered or unexported fields
}
MocksubReconciler is a mock of subReconciler interface.
func NewMocksubReconciler ¶
func NewMocksubReconciler(ctrl *gomock.Controller) *MocksubReconciler
NewMocksubReconciler creates a new mock instance.
func (*MocksubReconciler) EXPECT ¶
func (m *MocksubReconciler) EXPECT() *MocksubReconcilerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocksubReconcilerMockRecorder ¶
type MocksubReconcilerMockRecorder struct {
// contains filtered or unexported fields
}
MocksubReconcilerMockRecorder is the mock recorder for MocksubReconciler.
func (*MocksubReconcilerMockRecorder) Name ¶
func (mr *MocksubReconcilerMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
type MockvolumeService ¶
type MockvolumeService struct {
// contains filtered or unexported fields
}
MockvolumeService is a mock of volumeService interface.
func NewMockvolumeService ¶
func NewMockvolumeService(ctrl *gomock.Controller) *MockvolumeService
NewMockvolumeService creates a new mock instance.
func (*MockvolumeService) EXPECT ¶
func (m *MockvolumeService) EXPECT() *MockvolumeServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockvolumeService) InternalDeleteVolumesUsedByStackFromDB ¶
func (m *MockvolumeService) InternalDeleteVolumesUsedByStackFromDB(ctx context.Context, stackID string) *errors.ServiceError
InternalDeleteVolumesUsedByStackFromDB mocks base method.
func (*MockvolumeService) ListVolumesUsedByStack ¶
func (m *MockvolumeService) ListVolumesUsedByStack(ctx context.Context, stackID string) ([]*models.Volume, *errors.ServiceError)
ListVolumesUsedByStack mocks base method.
type MockvolumeServiceMockRecorder ¶
type MockvolumeServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockvolumeServiceMockRecorder is the mock recorder for MockvolumeService.
func (*MockvolumeServiceMockRecorder) InternalDeleteVolumesUsedByStackFromDB ¶
func (mr *MockvolumeServiceMockRecorder) InternalDeleteVolumesUsedByStackFromDB(ctx, stackID any) *gomock.Call
InternalDeleteVolumesUsedByStackFromDB indicates an expected call of InternalDeleteVolumesUsedByStackFromDB.
func (*MockvolumeServiceMockRecorder) ListVolumesUsedByStack ¶
func (mr *MockvolumeServiceMockRecorder) ListVolumesUsedByStack(ctx, stackID any) *gomock.Call
ListVolumesUsedByStack indicates an expected call of ListVolumesUsedByStack.
type NamespaceReconcilerSpec ¶
type NamespaceReconcilerSpec struct {
ClusterManager clustermanager.ClusterManager
NamespaceService namespaceService
Logger logger.Logger
}
type StackWorkerSpec ¶
type StackWorkerSpec struct {
StackService stackService
SecretService secretService
VolumeService volumeService
NamespaceService namespaceService
Env string
ClusterManager clustermanager.ClusterManager
}