controllers

package
v0.0.0-...-82f30a9 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Redis store.RedisStore
	S3    s3.ObjectStore
}

func (*Controller) AddArtifactToRegistry

func (c *Controller) AddArtifactToRegistry(ctx context.Context, registryName string, runID string,
	artifactID string, tags ...string,
) error

func (*Controller) AddArtifacts

func (c *Controller) AddArtifacts(ctx context.Context, runID string, as []types.Artifact) error

func (*Controller) AddMetrics

func (c *Controller) AddMetrics(ctx context.Context, runID string, m []types.Metric) error

func (*Controller) AddModelEntry

func (c *Controller) AddModelEntry(ctx context.Context, registryName string, url string, tags ...string) error

func (*Controller) Artifact

func (c *Controller) Artifact(ctx context.Context, runID string,
	artifact string,
) (*types.SavedArtifact, io.ReadCloser, error)

Artifact fetches an artifact and returns a Reader to its content.

func (*Controller) Artifacts

func (c *Controller) Artifacts(ctx context.Context,
	runIds []string,
) (map[string][]string, error)

func (*Controller) CreateModelRegistry

func (c *Controller) CreateModelRegistry(ctx context.Context, name string) error

func (*Controller) CreateRun

func (c *Controller) CreateRun(ctx context.Context, run types.Run) error

func (*Controller) Exp

func (c *Controller) Exp(ctx context.Context, expID string) (*types.Experiment, error)

func (*Controller) ExpRuns

func (c *Controller) ExpRuns(ctx context.Context, expID string) ([]string, error)

func (*Controller) Exps

func (c *Controller) Exps(ctx context.Context) ([]string, error)

func (*Controller) LastModelEntry

func (c *Controller) LastModelEntry(ctx context.Context, registryName string) (types.ModelEntry, error)

func (*Controller) ModelRegistry

func (c *Controller) ModelRegistry(ctx context.Context, name string) (*types.ModelRegistry, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, runID string) (*types.Run, error)

func (*Controller) Runs

func (c *Controller) Runs(ctx context.Context, ids []string) ([]*types.Run, error)

func (*Controller) RunsFromExp

func (c *Controller) RunsFromExp(ctx context.Context, expID string) ([]*types.Run, error)

func (*Controller) TagModel

func (c *Controller) TagModel(ctx context.Context, registryName string, version int, tags ...string) error

func (*Controller) TaggedModel

func (c *Controller) TaggedModel(ctx context.Context, registryName string, tag string) (types.ModelEntry, error)

Jump to

Keyboard shortcuts

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