appStatus

package
v0.6.18-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStatusContainer

type AppStatusContainer struct {
	AppId          int       `json:"app_id"`
	AppName        string    `json:"app_name"`
	EnvIdentifier  string    `json:"env_identifier"`
	InstalledAppId int       `json:"installed_app_id"`
	EnvId          int       `json:"env_id"`
	Status         string    `json:"status"`
	AppType        int       `json:"app_type"`
	UpdatedOn      time.Time `json:"updated_on"`
}

type AppStatusDto

type AppStatusDto struct {
	TableName struct{}  `sql:"app_status" pg:",discard_unknown_columns"`
	AppId     int       `sql:"app_id,pk"`
	EnvId     int       `sql:"env_id,pk"`
	Status    string    `sql:"status"`
	UpdatedOn time.Time `sql:"updated_on"`
}

type AppStatusRepository

type AppStatusRepository interface {
	Create(container AppStatusContainer) error
	Update(container AppStatusContainer) error
	Delete(tx *pg.Tx, appId, envId int) error
	DeleteWithEnvId(tx *pg.Tx, envId int) error
	Get(appId, envId int) (AppStatusContainer, error)
	GetConnection() *pg.DB
}

type AppStatusRepositoryImpl

type AppStatusRepositoryImpl struct {
	// contains filtered or unexported fields
}

func NewAppStatusRepositoryImpl

func NewAppStatusRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *AppStatusRepositoryImpl

func (*AppStatusRepositoryImpl) Create

func (repo *AppStatusRepositoryImpl) Create(container AppStatusContainer) error

func (*AppStatusRepositoryImpl) Delete

func (repo *AppStatusRepositoryImpl) Delete(tx *pg.Tx, appId, envId int) error

func (*AppStatusRepositoryImpl) DeleteWithEnvId

func (repo *AppStatusRepositoryImpl) DeleteWithEnvId(tx *pg.Tx, envId int) error

func (*AppStatusRepositoryImpl) Get

func (repo *AppStatusRepositoryImpl) Get(appId, envId int) (AppStatusContainer, error)

func (*AppStatusRepositoryImpl) GetConnection

func (repo *AppStatusRepositoryImpl) GetConnection() *pg.DB

func (*AppStatusRepositoryImpl) Update

func (repo *AppStatusRepositoryImpl) Update(container AppStatusContainer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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