stack

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stack is a generated GoMock package.

Index

Constants

View Source
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

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

func (*MocknamespaceService) Get

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

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

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

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

func (*MocksubReconciler) Name

func (m *MocksubReconciler) Name() string

Name mocks base method.

func (*MocksubReconciler) Reconcile

func (m *MocksubReconciler) Reconcile(ctx context.Context, stack *models.Stack) (subReconcilerResult, error)

Reconcile mocks base method.

type MocksubReconcilerMockRecorder

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

MocksubReconcilerMockRecorder is the mock recorder for MocksubReconciler.

func (*MocksubReconcilerMockRecorder) Name

Name indicates an expected call of Name.

func (*MocksubReconcilerMockRecorder) Reconcile

func (mr *MocksubReconcilerMockRecorder) Reconcile(ctx, stack any) *gomock.Call

Reconcile indicates an expected call of Reconcile.

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

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
}

Jump to

Keyboard shortcuts

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