service

package
v0.0.0-...-e5f8ed5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriterService

type LogWriterService interface {
	// InstallOrUpgrade creates a new log writer deployment
	InstallOrUpgrade(projectName string, logWriter *model.LogWriter) (*model.LogWriter, error)
	// Uninstall uninstalls an existing log writer deployment
	Uninstall(projectName string, logWriter *model.LogWriter) (*model.LogWriter, error)
}

LogWriterService provides a set of methods for controlling the log writer's deployment

func NewLogWriterService

func NewLogWriterService(commonDeployConfig *config.CommonDeploymentConfig, logWriterConfig *config.LogWriterConfig) (LogWriterService, error)

NewLogWriterService create a new instance of log writer service

type ObservationService

type ObservationService interface {
	// InstallOrUpgrade install or update an existing Observation Service
	InstallOrUpgrade(projectName string, svc *model.ObservationService) (*model.ObservationService, error)
	// Uninstall uninstalls existing Observation Service Helm release
	Uninstall(projectName string, svc *model.ObservationService) (*model.ObservationService, error)
}

ObservationService provides a set of methods for controlling observation log's deployment

func NewObservationService

func NewObservationService(
	commonDeployConfig *config.CommonDeploymentConfig,
	observationServiceConfig *config.ObservationServiceConfig,
) (ObservationService, error)

NewObservationService instantiates ObservationService

type Services

type Services struct {
	MLPService         mlp.Client
	ObservationService ObservationService
	LogWriterService   LogWriterService
}

Services contain all instantiated Service layer interfaces

func NewServices

func NewServices(
	mlpSvc mlp.Client,
	obsSvc ObservationService,
	logWriterSvc LogWriterService,
) Services

NewServices instantiates Services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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