Skip to content

Commit

Permalink
#7 fix stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-dammeier committed Dec 19, 2023
1 parent c039846 commit 020ab85
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/application/doguInstallationUseCase.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package application

import (
"context"
"fmt"
"github.com/cloudogu/k8s-blueprint-operator/pkg/domainservice"
)
Expand All @@ -10,21 +11,22 @@ type DoguInstallationUseCase struct {
doguDomainUseCase domainservice.DoguInstallationDomainUseCase
}

func (useCase *DoguInstallationUseCase) validateDoguHealth() error {
installedDogus, err := useCase.doguRepo.GetAll()
func (useCase *DoguInstallationUseCase) validateDoguHealth(ctx context.Context) error {
//TODO: this is only a stub to get an idea of the upcoming implementation
installedDogus, err := useCase.doguRepo.GetAllByName(ctx, []string{})
if err != nil {
return fmt.Errorf("cannot evaluate dogu health states: %w", err)
}

return useCase.doguDomainUseCase.ValidateDoguHealth(installedDogus)
}

func (useCase *DoguInstallationUseCase) installDogu(dogu string, version string) error {
func (useCase *DoguInstallationUseCase) installDogu(ctx context.Context, doguName string, version string) error {
//TODO
return nil
}

func (useCase *DoguInstallationUseCase) uninstallDogu(qualifiedDoguName string) error {
func (useCase *DoguInstallationUseCase) uninstallDogu(ctx context.Context, doguName string) error {
//TODO
return nil
}

0 comments on commit 020ab85

Please sign in to comment.