route

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Default []bool   `name:"is_default" postgres:"is_default"`
	MdID    []string `name:"mdId" postgres:"spec->'modelDeployments'->0->>'mdName'"`
}

type Repository

type Repository interface {
	GetModelRoute(ctx context.Context, tx *sql.Tx, name string) (*deployment.ModelRoute, error)
	GetModelRouteList(ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]deployment.ModelRoute, error)
	DeleteModelRoute(ctx context.Context, tx *sql.Tx, name string) error
	UpdateModelRoute(ctx context.Context, tx *sql.Tx, md *deployment.ModelRoute) error
	SaveModelRoute(ctx context.Context, tx *sql.Tx, r *deployment.ModelRoute) error
	UpdateModelRouteStatus(ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelRouteStatus) error
	SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error
	BeginTransaction(ctx context.Context) (*sql.Tx, error)

	DefaultExists(ctx context.Context, mdID string, qrr *sql.Tx) (bool, error)
	IsDefault(ctx context.Context, id string, tx *sql.Tx) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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