postgres

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelDeploymentTable = "odahu_operator_deployment"
	ModelRouteTable      = "odahu_operator_route"
)

Variables

View Source
var (
	MaxSize   = 500
	FirstPage = 0
)

Functions

This section is empty.

Types

type DeploymentRepo

type DeploymentRepo struct {
	DB *sql.DB
}

func (DeploymentRepo) BeginTransaction

func (repo DeploymentRepo) BeginTransaction(ctx context.Context) (*sql.Tx, error)

func (DeploymentRepo) DeleteModelDeployment

func (repo DeploymentRepo) DeleteModelDeployment(ctx context.Context, tx *sql.Tx, id string) error

func (DeploymentRepo) GetModelDeployment

func (repo DeploymentRepo) GetModelDeployment(
	ctx context.Context, tx *sql.Tx, id string) (*deployment.ModelDeployment, error)

func (DeploymentRepo) GetModelDeploymentList

func (repo DeploymentRepo) GetModelDeploymentList(
	ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]deployment.ModelDeployment, error)

func (DeploymentRepo) SaveModelDeployment

func (repo DeploymentRepo) SaveModelDeployment(
	ctx context.Context, tx *sql.Tx, md *deployment.ModelDeployment) error

func (DeploymentRepo) SetDeletionMark

func (repo DeploymentRepo) SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error

func (DeploymentRepo) UpdateModelDeployment

func (repo DeploymentRepo) UpdateModelDeployment(
	ctx context.Context, tx *sql.Tx, md *deployment.ModelDeployment) error

func (DeploymentRepo) UpdateModelDeploymentStatus

func (repo DeploymentRepo) UpdateModelDeploymentStatus(
	ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelDeploymentStatus) error

Jump to

Keyboard shortcuts

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