github.com/nais/knorten@v0.0.0-20240104110906-55926958e361/pkg/database/mock.go (about) 1 package database 2 3 import ( 4 "context" 5 6 "github.com/google/uuid" 7 "github.com/nais/knorten/pkg/database/gensql" 8 ) 9 10 type RepoMock struct{} 11 12 func (r *RepoMock) EventSetStatus(ctx context.Context, id uuid.UUID, status EventStatus) error { 13 return nil 14 } 15 16 func (r *RepoMock) EventSetPendingStatus(ctx context.Context, id uuid.UUID) error { 17 return nil 18 } 19 20 func (r *RepoMock) DispatcherEventsGet(ctx context.Context) ([]gensql.Event, error) { 21 return nil, nil 22 } 23 24 func (r *RepoMock) DispatchableEventsGet(ctx context.Context) ([]gensql.Event, error) { 25 return nil, nil 26 } 27 28 func (r *RepoMock) EventLogCreate(ctx context.Context, id uuid.UUID, message string, logType LogType) error { 29 return nil 30 } 31 32 func (r *RepoMock) RegisterHelmInstallOrUpgradeEvent(ctx context.Context, teamID string, helmEvent any) error { 33 return nil 34 } 35 36 func (r *RepoMock) RegisterHelmRollbackEvent(ctx context.Context, helmEvent any) error { 37 return nil 38 } 39 40 func (r *RepoMock) RegisterHelmUninstallEvent(ctx context.Context, helmEvent any) bool { 41 return false 42 }