domain

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

func New

func New(db *gorm.DB, logger *zap.Logger, wg *sync.WaitGroup) *Factory

func (*Factory) NewMLModelService

func (d *Factory) NewMLModelService() MLModelService

func (*Factory) NewMaintenanceService

func (d *Factory) NewMaintenanceService() MaintenanceService

func (*Factory) NewNamespaceService

func (d *Factory) NewNamespaceService() NamespaceService

type MLModelService

type MLModelService interface {
	Get(namespace string, name string) (*models.MLModel, error)
	Create(namespace string, name string) (*models.MLModel, error)
}

type MaintenanceService

type MaintenanceService interface {
	PreServiceStart() error
	OnServiceStart() error
}

type NamespaceService

type NamespaceService interface {
	Get(name string) (*models.Namespace, error)
	Create(name string) (*models.Namespace, error)
	Delete(name string) error
}

Jump to

Keyboard shortcuts

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