Documentation ¶
Index ¶
- Constants
- Variables
- type RouteRepo
- func (repo RouteRepo) BeginTransaction(ctx context.Context) (*sql.Tx, error)
- func (repo RouteRepo) DefaultExists(ctx context.Context, mdID string, tx *sql.Tx) (bool, error)
- func (repo RouteRepo) DeleteModelRoute(ctx context.Context, tx *sql.Tx, id string) error
- func (repo RouteRepo) GetModelRoute(ctx context.Context, tx *sql.Tx, id string) (*route.ModelRoute, error)
- func (repo RouteRepo) GetModelRouteList(ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]route.ModelRoute, error)
- func (repo RouteRepo) IsDefault(ctx context.Context, id string, tx *sql.Tx) (bool, error)
- func (repo RouteRepo) SaveModelRoute(ctx context.Context, tx *sql.Tx, md *route.ModelRoute) error
- func (repo RouteRepo) SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error
- func (repo RouteRepo) UpdateModelRoute(ctx context.Context, tx *sql.Tx, md *route.ModelRoute) error
- func (repo RouteRepo) UpdateModelRouteStatus(ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelRouteStatus) error
Constants ¶
View Source
const ( ModelRouteTable = "odahu_operator_route" ClID = "id" ClSpec = "spec" ClStatus = "status" ClDelMark = "deletionmark" ClCreated = "created" ClUpdated = "updated" ClIsDefault = "is_default" ClFirstMDName = "spec->'modelDeployments'->0->>'mdName'" )
Variables ¶
View Source
var ( MaxSize = 500 FirstPage = 0 )
Functions ¶
This section is empty.
Types ¶
type RouteRepo ¶
func (RouteRepo) BeginTransaction ¶
func (RouteRepo) DefaultExists ¶
Check whether the default ModelRoute for ModelDeployment with id=mdID is existed
func (RouteRepo) DeleteModelRoute ¶
func (RouteRepo) GetModelRoute ¶
func (RouteRepo) GetModelRouteList ¶
func (repo RouteRepo) GetModelRouteList( ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]route.ModelRoute, error)
func (RouteRepo) SaveModelRoute ¶
func (RouteRepo) SetDeletionMark ¶
func (RouteRepo) UpdateModelRoute ¶
Click to show internal directories.
Click to hide internal directories.