Documentation
¶
Index ¶
- type AppStatusContainer
- type AppStatusDto
- type AppStatusRepository
- type AppStatusRepositoryImpl
- func (repo *AppStatusRepositoryImpl) Create(container AppStatusContainer) error
- func (repo *AppStatusRepositoryImpl) Delete(tx *pg.Tx, appId, envId int) error
- func (repo *AppStatusRepositoryImpl) DeleteWithEnvId(tx *pg.Tx, envId int) error
- func (repo *AppStatusRepositoryImpl) Get(appId, envId int) (AppStatusContainer, error)
- func (repo *AppStatusRepositoryImpl) GetByEnvId(envId int) ([]*AppStatusDto, error)
- func (repo *AppStatusRepositoryImpl) GetConnection() *pg.DB
- func (repo *AppStatusRepositoryImpl) Update(container AppStatusContainer) error
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 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
GetByEnvId(envId int) ([]*AppStatusDto, error)
}
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) GetByEnvId ¶ added in v0.6.26
func (repo *AppStatusRepositoryImpl) GetByEnvId(envId int) ([]*AppStatusDto, error)
func (*AppStatusRepositoryImpl) GetConnection ¶
func (repo *AppStatusRepositoryImpl) GetConnection() *pg.DB
func (*AppStatusRepositoryImpl) Update ¶
func (repo *AppStatusRepositoryImpl) Update(container AppStatusContainer) error
Click to show internal directories.
Click to hide internal directories.