Documentation
¶
Index ¶
- func New(config Config) (progressmanager.Adapter, error)
- func NewNoop() progressmanager.Adapter
- type Config
- type MockProgressManager
- func (m *MockProgressManager) DeleteProgressByRuntimeID(ctx context.Context, runtimeID string) error
- func (m *MockProgressManager) GetProgress(ctx context.Context, input progressmanagerentity.GetProgressInput) (*progressmanagerentity.Progress, error)
- func (m *MockProgressManager) UpsertProgress(ctx context.Context, input progressmanagerentity.UpsertProgressInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoop ¶
func NewNoop() progressmanager.Adapter
NewNoop creates a no-operation adapter that implements the progressmanager.Adapter interface but performs no actual operations. This is useful for testing or when progress tracking is disabled.
Types ¶
type MockProgressManager ¶
MockProgressManager is a mock for the ProgressManager
func NewMockProgressManager ¶
func NewMockProgressManager() *MockProgressManager
func (*MockProgressManager) DeleteProgressByRuntimeID ¶
func (m *MockProgressManager) DeleteProgressByRuntimeID(ctx context.Context, runtimeID string) error
func (*MockProgressManager) GetProgress ¶
func (m *MockProgressManager) GetProgress(ctx context.Context, input progressmanagerentity.GetProgressInput) (*progressmanagerentity.Progress, error)
func (*MockProgressManager) UpsertProgress ¶
func (m *MockProgressManager) UpsertProgress(ctx context.Context, input progressmanagerentity.UpsertProgressInput) error
Click to show internal directories.
Click to hide internal directories.