Versions in this module Expand all Collapse all v0 v0.1.0 Jun 28, 2026 Changes in this version + func IsNotFound(err error) bool + type APIError struct + Code string + HTTPStatus int + Message string + func (e *APIError) Error() string + type Client struct + func NewClient(trackingURI string, opts ...Option) (*Client, error) + func (c *Client) CreateExperiment(ctx context.Context, name string, tags ...ExperimentTag) (string, error) + func (c *Client) CreateModelVersion(ctx context.Context, name, source string, runID string, ...) (*ModelVersion, error) + func (c *Client) CreateRegisteredModel(ctx context.Context, name string, tags ...RegisteredModelTag) (*RegisteredModel, error) + func (c *Client) CreateRun(ctx context.Context, experimentID string, opts ...RunOption) (*Run, error) + func (c *Client) DeleteExperiment(ctx context.Context, id string) error + func (c *Client) DeleteModelVersion(ctx context.Context, name, version string) error + func (c *Client) DeleteModelVersionTag(ctx context.Context, name, version, key string) error + func (c *Client) DeleteRegisteredModel(ctx context.Context, name string) error + func (c *Client) DeleteRegisteredModelAlias(ctx context.Context, name, alias string) error + func (c *Client) DeleteRegisteredModelTag(ctx context.Context, name, key string) error + func (c *Client) DeleteRun(ctx context.Context, runID string) error + func (c *Client) DeleteRunTag(ctx context.Context, runID, key string) error + func (c *Client) DownloadArtifact(ctx context.Context, runID, path string) ([]byte, error) + func (c *Client) GetExperimentByName(ctx context.Context, name string) (*Experiment, error) + func (c *Client) GetLatestVersions(ctx context.Context, name string, stages ...string) ([]ModelVersion, error) + func (c *Client) GetMetricHistory(ctx context.Context, runID, metricKey string) ([]Metric, error) + func (c *Client) GetModelVersion(ctx context.Context, name, version string) (*ModelVersion, error) + func (c *Client) GetModelVersionByAlias(ctx context.Context, name, alias string) (*ModelVersion, error) + func (c *Client) GetModelVersionDownloadURI(ctx context.Context, name, version string) (string, error) + func (c *Client) GetOrCreateExperiment(ctx context.Context, name string) (string, error) + func (c *Client) GetRegisteredModel(ctx context.Context, name string) (*RegisteredModel, error) + func (c *Client) GetRun(ctx context.Context, runID string) (*Run, error) + func (c *Client) ListArtifacts(ctx context.Context, runID, path string) (files []FileInfo, nextPageToken string, err error) + func (c *Client) LogBatch(ctx context.Context, runID string, metrics []Metric, params []Param, ...) error + func (c *Client) LogInputs(ctx context.Context, runID string, datasets []DatasetInput) error + func (c *Client) LogMetric(ctx context.Context, runID, key string, value float64, timestampMs, step int64) error + func (c *Client) LogParam(ctx context.Context, runID, key, value string) error + func (c *Client) RenameRegisteredModel(ctx context.Context, name, newName string) (*RegisteredModel, error) + func (c *Client) RestoreExperiment(ctx context.Context, id string) error + func (c *Client) RestoreRun(ctx context.Context, runID string) error + func (c *Client) SearchExperiments(ctx context.Context, req SearchExperimentsRequest) ([]Experiment, string, error) + func (c *Client) SearchModelVersions(ctx context.Context, filter string, maxResults int64, orderBy []string, ...) ([]ModelVersion, string, error) + func (c *Client) SearchRegisteredModels(ctx context.Context, filter string, maxResults int64, orderBy []string, ...) ([]RegisteredModel, string, error) + func (c *Client) SearchRuns(ctx context.Context, req SearchRunsRequest) ([]Run, string, error) + func (c *Client) SetExperimentTag(ctx context.Context, id, key, value string) error + func (c *Client) SetModelVersionTag(ctx context.Context, name, version, key, value string) error + func (c *Client) SetRegisteredModelAlias(ctx context.Context, name, alias, version string) error + func (c *Client) SetRegisteredModelTag(ctx context.Context, name, key, value string) error + func (c *Client) SetRunTag(ctx context.Context, runID, key, value string) error + func (c *Client) SetTag(ctx context.Context, runID, key, value string) error + func (c *Client) TransitionModelVersionStage(ctx context.Context, name, version, stage string, archiveExisting bool) (*ModelVersion, error) + func (c *Client) UpdateExperiment(ctx context.Context, id, newName string) error + func (c *Client) UpdateModelVersion(ctx context.Context, name, version, description string) (*ModelVersion, error) + func (c *Client) UpdateRegisteredModel(ctx context.Context, name, description string) (*RegisteredModel, error) + func (c *Client) UpdateRun(ctx context.Context, runID string, status RunStatus, endTime int64) error + type Dataset struct + Digest string + Name string + Profile string + Schema string + Source string + SourceType string + type DatasetInput struct + Dataset Dataset + Tags []RunTag + type Experiment struct + ArtifactLocation string + ExperimentID string + LifecycleStage string + Name string + Tags []ExperimentTag + type ExperimentTag struct + Key string + Value string + type FileInfo struct + FileSize int64 + IsDir bool + Path string + type Metric struct + Key string + Step int64 + Timestamp int64 + Value float64 + type ModelVersion struct + Aliases []string + CreationTimestamp int64 + CurrentStage string + Description string + LastUpdatedTimestamp int64 + Name string + RunID string + Source string + Status string + Tags []ModelVersionTag + Version string + type ModelVersionTag struct + Key string + Value string + type Option func(*config) + func WithBasicAuth(u, p string) Option + func WithBearerToken(tok string) Option + func WithHTTPClient(h *http.Client) Option + func WithMaxRetries(n int) Option + type Param struct + Key string + Value string + type RegisteredModel struct + Aliases []RegisteredModelAlias + CreationTimestamp int64 + Description string + LastUpdatedTimestamp int64 + LatestVersions []ModelVersion + Name string + Tags []RegisteredModelTag + type RegisteredModelAlias struct + Alias string + Version string + type RegisteredModelTag struct + Key string + Value string + type Run struct + Data RunData + Info RunInfo + type RunData struct + Metrics []Metric + Params []Param + Tags []RunTag + type RunInfo struct + ArtifactURI string + EndTime int64 + ExperimentID string + LifecycleStage string + RunID string + RunName string + StartTime int64 + Status RunStatus + type RunOption func(*runCreate) + func WithRunName(name string) RunOption + func WithRunTags(tags ...RunTag) RunOption + func WithStartTime(unixMs int64) RunOption + type RunStatus string + const StatusFailed + const StatusFinished + const StatusKilled + const StatusRunning + const StatusScheduled + type RunTag struct + Key string + Value string + type SearchExperimentsRequest struct + Filter string + MaxResults int64 + OrderBy []string + PageToken string + ViewType string + type SearchRunsRequest struct + ExperimentIDs []string + Filter string + MaxResults int32 + OrderBy []string + PageToken string + RunViewType string