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

Documentation

Index

Constants

View Source
const (
	ModelPackagingTable = "odahu_operator_packaging"
)

Variables

View Source
var (
	MaxSize   = 500
	FirstPage = 0
)

Functions

This section is empty.

Types

type PackagingIntegrationRepository

type PackagingIntegrationRepository struct {
	DB *sql.DB
}

func (*PackagingIntegrationRepository) DeletePackagingIntegration

func (pir *PackagingIntegrationRepository) DeletePackagingIntegration(name string) error

func (*PackagingIntegrationRepository) GetPackagingIntegration

func (pir *PackagingIntegrationRepository) GetPackagingIntegration(name string) (
	*packaging.PackagingIntegration, error,
)

func (*PackagingIntegrationRepository) GetPackagingIntegrationList

func (pir *PackagingIntegrationRepository) GetPackagingIntegrationList(options ...filter.ListOption) (
	[]packaging.PackagingIntegration, error,
)

func (*PackagingIntegrationRepository) SavePackagingIntegration

func (pir *PackagingIntegrationRepository) SavePackagingIntegration(pi *packaging.PackagingIntegration) error

func (*PackagingIntegrationRepository) UpdatePackagingIntegration

func (pir *PackagingIntegrationRepository) UpdatePackagingIntegration(pi *packaging.PackagingIntegration) error

type PackagingRepo

type PackagingRepo struct {
	DB *sql.DB
}

func (PackagingRepo) BeginTransaction

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

func (PackagingRepo) DeleteModelPackaging

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

func (PackagingRepo) GetModelPackaging

func (repo PackagingRepo) GetModelPackaging(
	ctx context.Context, tx *sql.Tx, id string) (*packaging.ModelPackaging, error)

func (PackagingRepo) GetModelPackagingList

func (repo PackagingRepo) GetModelPackagingList(
	ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]packaging.ModelPackaging, error)

func (PackagingRepo) SaveModelPackaging

func (repo PackagingRepo) SaveModelPackaging(ctx context.Context, tx *sql.Tx, mp *packaging.ModelPackaging) error

func (PackagingRepo) SetDeletionMark

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

func (PackagingRepo) UpdateModelPackaging

func (repo PackagingRepo) UpdateModelPackaging(ctx context.Context, tx *sql.Tx, mp *packaging.ModelPackaging) error

func (PackagingRepo) UpdateModelPackagingStatus

func (repo PackagingRepo) UpdateModelPackagingStatus(
	ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelPackagingStatus) error

Jump to

Keyboard shortcuts

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