artifact

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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