github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/operations_manager/interfaces.go (about)

     1  package operationsmanager
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/kyma-incubator/compass/components/director/internal/model"
     7  )
     8  
     9  // OperationService is responsible for the service-layer Operation operations.
    10  //
    11  //go:generate mockery --name=OperationService --output=automock --outpkg=automock --case=underscore --disable-version-string
    12  type OperationService interface {
    13  	CreateMultiple(ctx context.Context, in []*model.OperationInput) error
    14  	DeleteOlderThan(ctx context.Context, opType string, status model.OperationStatus, days int) error
    15  }
    16  
    17  // WebhookService is responsible for the service-layer Webhook operations.
    18  //
    19  //go:generate mockery --name=WebhookService --output=automock --outpkg=automock --case=underscore --disable-version-string
    20  type WebhookService interface {
    21  	ListByWebhookType(ctx context.Context, webhookType model.WebhookType) ([]*model.Webhook, error)
    22  }
    23  
    24  // ApplicationService is responsible for the service-layer Application operations.
    25  //
    26  //go:generate mockery --name=ApplicationService --output=automock --outpkg=automock --case=underscore --disable-version-string
    27  type ApplicationService interface {
    28  	ListAllByApplicationTemplateID(ctx context.Context, applicationTemplateID string) ([]*model.Application, error)
    29  }