Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateGetArtifactRequest ¶
func ValidateGetArtifactRequest(req *request.GetArtifactRequest) error
ValidateGetArtifactRequest validates `GET /artifacts/get` request.
func ValidateListArtifactsRequest ¶
func ValidateListArtifactsRequest(req *request.ListArtifactsRequest) error
ValidateListArtifactsRequest validates `GET /mlflow/artifacts/list` request.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides service layer to work with `artifact` business logic.
func NewService ¶
func NewService( runRepository repositories.RunRepositoryProvider, artifactStorageFactory storage.ArtifactStorageFactoryProvider, ) *Service
NewService creates new Service instance.
func (Service) GetArtifact ¶
func (s Service) GetArtifact( ctx context.Context, namespace *models.Namespace, req *request.GetArtifactRequest, ) (io.ReadCloser, error)
GetArtifact handles business logic of `GET /artifacts/get` endpoint.
func (Service) ListArtifacts ¶
func (s Service) ListArtifacts( ctx context.Context, namespace *models.Namespace, req *request.ListArtifactsRequest, ) (string, []storage.ArtifactObject, error)
ListArtifacts handles business logic of `GET /artifacts/list` endpoint.
Click to show internal directories.
Click to hide internal directories.