operation

package
v0.0.0-...-ee95d54 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOperationService

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

func NewOperationService

func NewOperationService(operationRepo operation.OperationRepo) *BaseOperationService

func (*BaseOperationService) DeleteOperation

func (s *BaseOperationService) DeleteOperation(operation *types.Operation) error

func (*BaseOperationService) GetOperationByID

func (s *BaseOperationService) GetOperationByID(operationID string) (*types.Operation, error)

func (*BaseOperationService) GetOperations

func (s *BaseOperationService) GetOperations() (map[string]*types.Operation, error)

GetOperations returns available operations for current state

func (*BaseOperationService) PutOperation

func (s *BaseOperationService) PutOperation(operation *types.Operation) error

type OperationService

type OperationService interface {
	GetOperations() (map[string]*types.Operation, error)
	GetOperationByID(operationID string) (*types.Operation, error)
	PutOperation(operation *types.Operation) error
	DeleteOperation(operation *types.Operation) error
}

Jump to

Keyboard shortcuts

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