models

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SortOrderAsc  = entity.SortOrderAsc
	SortOrderDesc = entity.SortOrderDesc
	OrderByID     = entity.OrderByID
)
View Source
const DataSetType = "dataset-artifact"
View Source
const DocArtifactType = "doc-artifact"
View Source
const MetricHistoryType = "metric-history"
View Source
const MetricType = "metric"
View Source
const ModelArtifactType = "model-artifact"
View Source
const ParameterType = "parameter"

Variables

View Source
var (
	// Use centralized state mappings from constants package
	Artifact_State_name  = constants.ArtifactStateNames
	Artifact_State_value = constants.ArtifactStateMapping
)
View Source
var (
	DefaultSortOrder = entity.DefaultSortOrder
	DefaultPageSize  = entity.DefaultPageSize
	DefaultOrderBy   = entity.DefaultOrderBy
)
View Source
var (
	// Use centralized state mappings from constants package
	Execution_State_name  = constants.ExecutionStateNames
	Execution_State_value = constants.ExecutionStateMapping
)
View Source
var NewBoolProperty = entity.NewBoolProperty
View Source
var NewByteProperty = entity.NewByteProperty
View Source
var NewDoubleProperty = entity.NewDoubleProperty
View Source
var NewIntProperty = entity.NewIntProperty
View Source
var NewStringProperty = entity.NewStringProperty

Re-export constructor functions

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ModelArtifact *ModelArtifact
	DocArtifact   *DocArtifact
	DataSet       *DataSet
	Metric        *Metric
	Parameter     *Parameter
}

type ArtifactListOptions

type ArtifactListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
	ArtifactType     *string
}

func (*ArtifactListOptions) GetRestEntityType

func (a *ArtifactListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface This enables advanced filtering support for artifacts

type ArtifactRepository

type ArtifactRepository interface {
	GetByID(id int32) (Artifact, error)
	List(listOptions ArtifactListOptions) (*ListWrapper[Artifact], error)
}

type BaseEntity

type BaseEntity[T any] = entity.BaseEntity[T]

type DataSet

type DataSet interface {
	Entity[DataSetAttributes]
}

type DataSetAttributes

type DataSetAttributes struct {
	Name                     *string
	URI                      *string
	State                    *string
	ArtifactType             *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type DataSetImpl

type DataSetImpl = BaseEntity[DataSetAttributes]

type DataSetListOptions

type DataSetListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
}

type DataSetRepository

type DataSetRepository interface {
	GetByID(id int32) (DataSet, error)
	List(listOptions DataSetListOptions) (*ListWrapper[DataSet], error)
	Save(dataSet DataSet, parentResourceID *int32) (DataSet, error)
}

type DocArtifact

type DocArtifact interface {
	Entity[DocArtifactAttributes]
}

type DocArtifactAttributes

type DocArtifactAttributes struct {
	Name                     *string
	URI                      *string
	State                    *string
	ArtifactType             *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type DocArtifactImpl

type DocArtifactImpl = BaseEntity[DocArtifactAttributes]

type DocArtifactListOptions

type DocArtifactListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
}

type DocArtifactRepository

type DocArtifactRepository interface {
	GetByID(id int32) (DocArtifact, error)
	List(listOptions DocArtifactListOptions) (*ListWrapper[DocArtifact], error)
	Save(docArtifact DocArtifact, parentResourceID *int32) (DocArtifact, error)
}

type Entity

type Entity[T any] = entity.Entity[T]

type Experiment

type Experiment interface {
	Entity[ExperimentAttributes]
}

type ExperimentAttributes

type ExperimentAttributes struct {
	Name                     *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ExperimentImpl

type ExperimentImpl = BaseEntity[ExperimentAttributes]

type ExperimentListOptions

type ExperimentListOptions struct {
	Pagination
	Name       *string
	ExternalID *string
}

func (*ExperimentListOptions) GetRestEntityType

func (e *ExperimentListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface

type ExperimentRepository

type ExperimentRepository interface {
	GetByID(id int32) (Experiment, error)
	List(listOptions ExperimentListOptions) (*ListWrapper[Experiment], error)
	Save(experiment Experiment) (Experiment, error)
}

type ExperimentRun

type ExperimentRun interface {
	Entity[ExperimentRunAttributes]
}

type ExperimentRunAttributes

type ExperimentRunAttributes struct {
	Name                     *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ExperimentRunImpl

type ExperimentRunImpl = BaseEntity[ExperimentRunAttributes]

type ExperimentRunListOptions

type ExperimentRunListOptions struct {
	Pagination
	Name         *string
	ExternalID   *string
	ExperimentID *int32
}

func (*ExperimentRunListOptions) GetRestEntityType

func (e *ExperimentRunListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface

type ExperimentRunRepository

type ExperimentRunRepository interface {
	GetByID(id int32) (ExperimentRun, error)
	List(listOptions ExperimentRunListOptions) (*ListWrapper[ExperimentRun], error)
	Save(experimentRun ExperimentRun, experimentID *int32) (ExperimentRun, error)
}

type InferenceService

type InferenceService interface {
	Entity[InferenceServiceAttributes]
}

type InferenceServiceAttributes

type InferenceServiceAttributes struct {
	Name                     *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type InferenceServiceImpl

type InferenceServiceImpl = BaseEntity[InferenceServiceAttributes]

type InferenceServiceListOptions

type InferenceServiceListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
	Runtime          *string
}

type InferenceServiceRepository

type InferenceServiceRepository interface {
	GetByID(id int32) (InferenceService, error)
	List(listOptions InferenceServiceListOptions) (*ListWrapper[InferenceService], error)
	Save(model InferenceService) (InferenceService, error)
}

type ListWrapper

type ListWrapper[T any] = entity.ListWrapper[T]

type Metric

type Metric interface {
	Entity[MetricAttributes]
}

type MetricAttributes

type MetricAttributes struct {
	Name                     *string
	URI                      *string
	State                    *string
	ArtifactType             *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type MetricHistory

type MetricHistory interface {
	Entity[MetricHistoryAttributes]
}

type MetricHistoryAttributes

type MetricHistoryAttributes struct {
	Name                     *string
	URI                      *string
	State                    *string
	ArtifactType             *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type MetricHistoryImpl

type MetricHistoryImpl = BaseEntity[MetricHistoryAttributes]

type MetricHistoryListOptions

type MetricHistoryListOptions struct {
	Pagination
	Name            *string
	ExternalID      *string
	ExperimentRunID *int32
	StepIds         *string
}

func (*MetricHistoryListOptions) GetRestEntityType

func (m *MetricHistoryListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface

type MetricHistoryRepository

type MetricHistoryRepository interface {
	GetByID(id int32) (MetricHistory, error)
	List(listOptions MetricHistoryListOptions) (*ListWrapper[MetricHistory], error)
	Save(metricHistory MetricHistory, experimentRunID *int32) (MetricHistory, error)
}

type MetricImpl

type MetricImpl = BaseEntity[MetricAttributes]

type MetricListOptions

type MetricListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
}

type MetricRepository

type MetricRepository interface {
	GetByID(id int32) (Metric, error)
	List(listOptions MetricListOptions) (*ListWrapper[Metric], error)
	Save(metric Metric, parentResourceID *int32) (Metric, error)
}

type ModelArtifact

type ModelArtifact interface {
	Entity[ModelArtifactAttributes]
}

type ModelArtifactAttributes

type ModelArtifactAttributes struct {
	Name                     *string
	URI                      *string
	State                    *string
	ArtifactType             *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ModelArtifactImpl

type ModelArtifactImpl = BaseEntity[ModelArtifactAttributes]

type ModelArtifactListOptions

type ModelArtifactListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
}

func (*ModelArtifactListOptions) GetRestEntityType

func (m *ModelArtifactListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface

type ModelArtifactRepository

type ModelArtifactRepository interface {
	GetByID(id int32) (ModelArtifact, error)
	List(listOptions ModelArtifactListOptions) (*ListWrapper[ModelArtifact], error)
	Save(modelArtifact ModelArtifact, parentResourceID *int32) (ModelArtifact, error)
}

type ModelVersion

type ModelVersion interface {
	Entity[ModelVersionAttributes]
}

type ModelVersionAttributes

type ModelVersionAttributes struct {
	Name                     *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ModelVersionImpl

type ModelVersionImpl = BaseEntity[ModelVersionAttributes]

type ModelVersionListOptions

type ModelVersionListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
}

func (*ModelVersionListOptions) GetRestEntityType

func (m *ModelVersionListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface

type ModelVersionRepository

type ModelVersionRepository interface {
	GetByID(id int32) (ModelVersion, error)
	List(listOptions ModelVersionListOptions) (*ListWrapper[ModelVersion], error)
	Save(model ModelVersion) (ModelVersion, error)
}

type Pagination

type Pagination = entity.Pagination

type Parameter

type Parameter interface {
	Entity[ParameterAttributes]
}

type ParameterAttributes

type ParameterAttributes struct {
	Name                     *string
	URI                      *string
	State                    *string
	ArtifactType             *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ParameterImpl

type ParameterImpl = BaseEntity[ParameterAttributes]

type ParameterListOptions

type ParameterListOptions struct {
	Pagination
	Name             *string
	ExternalID       *string
	ParentResourceID *int32
}

type ParameterRepository

type ParameterRepository interface {
	GetByID(id int32) (Parameter, error)
	List(listOptions ParameterListOptions) (*ListWrapper[Parameter], error)
	Save(parameter Parameter, parentResourceID *int32) (Parameter, error)
}

type Properties

type Properties = entity.Properties

Properties is a type alias for entity.Properties

type RegisteredModel

type RegisteredModel interface {
	Entity[RegisteredModelAttributes]
}

type RegisteredModelAttributes

type RegisteredModelAttributes struct {
	Name                     *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type RegisteredModelImpl

type RegisteredModelImpl = BaseEntity[RegisteredModelAttributes]

type RegisteredModelListOptions

type RegisteredModelListOptions struct {
	Pagination
	Name       *string
	ExternalID *string
}

func (*RegisteredModelListOptions) GetRestEntityType

func (r *RegisteredModelListOptions) GetRestEntityType() filter.RestEntityType

type RegisteredModelRepository

type RegisteredModelRepository interface {
	GetByID(id int32) (RegisteredModel, error)
	List(listOptions RegisteredModelListOptions) (*ListWrapper[RegisteredModel], error)
	Save(model RegisteredModel) (RegisteredModel, error)
}

type ServeModel

type ServeModel interface {
	Entity[ServeModelAttributes]
}

type ServeModelAttributes

type ServeModelAttributes struct {
	Name                     *string
	ExternalID               *string
	LastKnownState           *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ServeModelImpl

type ServeModelImpl = BaseEntity[ServeModelAttributes]

type ServeModelListOptions

type ServeModelListOptions struct {
	Pagination
	Name               *string
	ExternalID         *string
	InferenceServiceID *int32
}

func (*ServeModelListOptions) GetRestEntityType

func (s *ServeModelListOptions) GetRestEntityType() filter.RestEntityType

GetRestEntityType implements the FilterApplier interface

type ServeModelRepository

type ServeModelRepository interface {
	GetByID(id int32) (ServeModel, error)
	List(listOptions ServeModelListOptions) (*ListWrapper[ServeModel], error)
	Save(serveModel ServeModel, inferenceServiceID *int32) (ServeModel, error)
}

type ServingEnvironment

type ServingEnvironment interface {
	Entity[ServingEnvironmentAttributes]
}

type ServingEnvironmentAttributes

type ServingEnvironmentAttributes struct {
	Name                     *string
	ExternalID               *string
	CreateTimeSinceEpoch     *int64
	LastUpdateTimeSinceEpoch *int64
}

type ServingEnvironmentListOptions

type ServingEnvironmentListOptions struct {
	Pagination
	Name       *string
	ExternalID *string
}

type ServingEnvironmentRepository

type ServingEnvironmentRepository interface {
	GetByID(id int32) (ServingEnvironment, error)
	List(listOptions ServingEnvironmentListOptions) (*ListWrapper[ServingEnvironment], error)
	Save(model ServingEnvironment) (ServingEnvironment, error)
}

type Type

type Type = entity.Type

type TypeAttributes

type TypeAttributes = entity.TypeAttributes

type TypeImpl

type TypeImpl = entity.TypeImpl

type TypeProperty

type TypeProperty = entity.TypeProperty

type TypePropertyImpl

type TypePropertyImpl = entity.TypePropertyImpl

type TypePropertyRepository

type TypePropertyRepository = entity.TypePropertyRepository

type TypeRepository

type TypeRepository = entity.TypeRepository

Jump to

Keyboard shortcuts

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