Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateCreateExperimentRequest(req *request.CreateExperimentRequest) error
- func ValidateDeleteExperimentRequest(req *request.DeleteExperimentRequest) error
- func ValidateGetExperimentByIDRequest(req *request.GetExperimentRequest) error
- func ValidateGetExperimentByNameRequest(req *request.GetExperimentRequest) error
- func ValidateRestoreExperimentRequest(req *request.RestoreExperimentRequest) error
- func ValidateSearchExperimentsRequest(req *request.SearchExperimentsRequest) error
- func ValidateSetExperimentTagRequest(req *request.SetExperimentTagRequest) error
- func ValidateUpdateExperimentRequest(req *request.UpdateExperimentRequest) error
- type Service
- func (s Service) CreateExperiment(ctx context.Context, ns *models.Namespace, ...) (*models.Experiment, error)
- func (s Service) DeleteExperiment(ctx context.Context, ns *models.Namespace, ...) error
- func (s Service) GetExperiment(ctx context.Context, ns *models.Namespace, req *request.GetExperimentRequest) (*models.Experiment, error)
- func (s Service) GetExperimentByName(ctx context.Context, ns *models.Namespace, req *request.GetExperimentRequest) (*models.Experiment, error)
- func (s Service) RestoreExperiment(ctx context.Context, ns *models.Namespace, ...) error
- func (s Service) SearchExperiments(ctx context.Context, ns *models.Namespace, ...) ([]models.Experiment, int, int, error)
- func (s Service) SetExperimentTag(ctx context.Context, ns *models.Namespace, ...) error
- func (s Service) UpdateExperiment(ctx context.Context, ns *models.Namespace, ...) error
Constants ¶
const ( InExpression = "IN" NotInExpression = "NOT IN" LikeExpression = "LIKE" ILikeExpression = "ILIKE" EqualExpression = "=" NotEqualExpression = "!=" LessExpression = "<" LessOrEqualExpression = "<=" GraterExpression = ">" GraterOrEqualExpression = ">=" )
supported expression list.
const (
MaxResultsPerPage = 1000000
)
Variables ¶
var ( AllowedViewTypeList = map[request.ViewType]struct{}{ "": {}, request.ViewTypeAll: {}, request.ViewTypeActiveOnly: {}, request.ViewTypeDeletedOnly: {}, } )
AllowedViewTypeList supported list of ViewType.
Functions ¶
func ValidateCreateExperimentRequest ¶
func ValidateCreateExperimentRequest(req *request.CreateExperimentRequest) error
ValidateCreateExperimentRequest validates `POST /mlflow/experiments/create` request.
func ValidateDeleteExperimentRequest ¶
func ValidateDeleteExperimentRequest(req *request.DeleteExperimentRequest) error
ValidateDeleteExperimentRequest validates `POST /mlflow/experiments/delete` request.
func ValidateGetExperimentByIDRequest ¶
func ValidateGetExperimentByIDRequest(req *request.GetExperimentRequest) error
ValidateGetExperimentByIDRequest validates `GET /mlflow/experiments/get` request.
func ValidateGetExperimentByNameRequest ¶
func ValidateGetExperimentByNameRequest(req *request.GetExperimentRequest) error
ValidateGetExperimentByNameRequest validates `GET /mlflow/experiments/get` request.
func ValidateRestoreExperimentRequest ¶
func ValidateRestoreExperimentRequest(req *request.RestoreExperimentRequest) error
ValidateRestoreExperimentRequest validates `POST /mlflow/experiments/restore` request.
func ValidateSearchExperimentsRequest ¶
func ValidateSearchExperimentsRequest(req *request.SearchExperimentsRequest) error
ValidateSearchExperimentsRequest validates `POST /mlflow/experiments/restore` request.
func ValidateSetExperimentTagRequest ¶
func ValidateSetExperimentTagRequest(req *request.SetExperimentTagRequest) error
ValidateSetExperimentTagRequest validates `POST /mlflow/experiments/set-experiment-tag` request.
func ValidateUpdateExperimentRequest ¶
func ValidateUpdateExperimentRequest(req *request.UpdateExperimentRequest) error
ValidateUpdateExperimentRequest validates `POST /mlflow/experiments/update` request.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides service layer to work with `metric` business logic.
func NewService ¶
func NewService( config *config.ServiceConfig, tagRepository repositories.TagRepositoryProvider, experimentRepository repositories.ExperimentRepositoryProvider, ) *Service
NewService creates new Service instance.
func (Service) CreateExperiment ¶
func (s Service) CreateExperiment( ctx context.Context, ns *models.Namespace, req *request.CreateExperimentRequest, ) (*models.Experiment, error)
CreateExperiment creates new Experiment entity.
func (Service) DeleteExperiment ¶
func (s Service) DeleteExperiment( ctx context.Context, ns *models.Namespace, req *request.DeleteExperimentRequest, ) error
DeleteExperiment deletes existing Experiment entity.
func (Service) GetExperiment ¶
func (s Service) GetExperiment( ctx context.Context, ns *models.Namespace, req *request.GetExperimentRequest, ) (*models.Experiment, error)
GetExperiment returns existing Experiment entity by ID.
func (Service) GetExperimentByName ¶
func (s Service) GetExperimentByName( ctx context.Context, ns *models.Namespace, req *request.GetExperimentRequest, ) (*models.Experiment, error)
GetExperimentByName returns existing Experiment entity by Name.
func (Service) RestoreExperiment ¶
func (s Service) RestoreExperiment( ctx context.Context, ns *models.Namespace, req *request.RestoreExperimentRequest, ) error
RestoreExperiment restores deleted Experiment entity.
func (Service) SearchExperiments ¶
func (s Service) SearchExperiments( ctx context.Context, ns *models.Namespace, req *request.SearchExperimentsRequest, ) ([]models.Experiment, int, int, error)
nolint: gocyclo TODO:get back and fix `gocyclo` problem.
func (Service) SetExperimentTag ¶
func (Service) UpdateExperiment ¶
func (s Service) UpdateExperiment( ctx context.Context, ns *models.Namespace, req *request.UpdateExperimentRequest, ) error
UpdateExperiment updates existing Experiment entity.