postgres

package
v0.0.0-...-a5f9e11 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 11 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) CreateModelDeployment

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

func (DeploymentRepo) CreateModelRoute

func (repo DeploymentRepo) CreateModelRoute(mr *deployment.ModelRoute) error

func (DeploymentRepo) DeleteModelDeployment

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

func (DeploymentRepo) DeleteModelRoute

func (repo DeploymentRepo) DeleteModelRoute(name 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) GetModelRoute

func (repo DeploymentRepo) GetModelRoute(name string) (*deployment.ModelRoute, error)

func (DeploymentRepo) GetModelRouteList

func (repo DeploymentRepo) GetModelRouteList(options ...filter.ListOption) (
	[]deployment.ModelRoute, 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

func (DeploymentRepo) UpdateModelRoute

func (repo DeploymentRepo) UpdateModelRoute(mr *deployment.ModelRoute) error

Jump to

Keyboard shortcuts

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