Documentation
¶
Index ¶
- Constants
- type App
- type AppRepository
- type AppRepositoryImpl
- func (repo AppRepositoryImpl) CheckAppExists(appNames []string) ([]*App, error)
- func (repo AppRepositoryImpl) FetchAppsByFilterV2(appNameIncludes string, appNameExcludes string, environmentId int) ([]*App, error)
- func (repo AppRepositoryImpl) FindActiveByName(appName string) (*App, error)
- func (repo AppRepositoryImpl) FindActiveListByName(appName string) ([]*App, error)
- func (repo AppRepositoryImpl) FindAll() ([]*App, error)
- func (repo AppRepositoryImpl) FindAllActiveAppsWithTeam() ([]*App, error)
- func (repo AppRepositoryImpl) FindAllMatchesByAppName(appName string) ([]*App, error)
- func (repo AppRepositoryImpl) FindAppAndProjectByAppId(appId int) (*App, error)
- func (repo AppRepositoryImpl) FindAppAndProjectByAppName(appName string) (*App, error)
- func (repo AppRepositoryImpl) FindAppsByEnvironmentId(environmentId int) ([]App, error)
- func (repo AppRepositoryImpl) FindAppsByTeamId(teamId int) ([]*App, error)
- func (repo AppRepositoryImpl) FindAppsByTeamIds(teamId []int, appType string) ([]App, error)
- func (repo AppRepositoryImpl) FindAppsByTeamName(teamName string) ([]App, error)
- func (repo AppRepositoryImpl) FindById(id int) (*App, error)
- func (repo AppRepositoryImpl) FindByIds(ids []*int) ([]*App, error)
- func (repo AppRepositoryImpl) GetConnection() *pg.DB
- func (repo AppRepositoryImpl) Save(pipelineGroup *App) error
- func (repo AppRepositoryImpl) SaveWithTxn(pipelineGroup *App, tx *pg.Tx) error
- func (repo AppRepositoryImpl) Update(app *App) error
- func (repo AppRepositoryImpl) UpdateWithTxn(app *App, tx *pg.Tx) error
Constants ¶
View Source
const DevtronApp = "DevtronApp"
View Source
const DevtronChart = "DevtronChart"
View Source
const ExternalApp = "ExternalApp"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Id int `sql:"id,pk"` AppName string `sql:"app_name,notnull"` //same as app name Active bool `sql:"active, notnull"` TeamId int `sql:"team_id"` AppStore bool `sql:"app_store, notnull"` AppOfferingMode string `sql:"app_offering_mode,notnull"` Team team.Team sql.AuditLog // contains filtered or unexported fields }
type AppRepository ¶
type AppRepository interface { Save(pipelineGroup *App) error SaveWithTxn(pipelineGroup *App, tx *pg.Tx) error Update(app *App) error UpdateWithTxn(app *App, tx *pg.Tx) error FindActiveByName(appName string) (pipelineGroup *App, err error) FindActiveListByName(appName string) ([]*App, error) FindById(id int) (pipelineGroup *App, err error) FindAppsByTeamId(teamId int) ([]*App, error) FindAppsByTeamIds(teamId []int, appType string) ([]App, error) FindAppsByTeamName(teamName string) ([]App, error) FindAll() ([]*App, error) FindAppsByEnvironmentId(environmentId int) ([]App, error) FindAllActiveAppsWithTeam() ([]*App, error) CheckAppExists(appNames []string) ([]*App, error) FindByIds(ids []*int) ([]*App, error) FetchAppsByFilterV2(appNameIncludes string, appNameExcludes string, environmentId int) ([]*App, error) FindAppAndProjectByAppId(appId int) (*App, error) FindAppAndProjectByAppName(appName string) (*App, error) GetConnection() *pg.DB FindAllMatchesByAppName(appName string) ([]*App, error) }
type AppRepositoryImpl ¶
type AppRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewAppRepositoryImpl ¶
func NewAppRepositoryImpl(dbConnection *pg.DB) *AppRepositoryImpl
func (AppRepositoryImpl) CheckAppExists ¶
func (repo AppRepositoryImpl) CheckAppExists(appNames []string) ([]*App, error)
func (AppRepositoryImpl) FetchAppsByFilterV2 ¶
func (AppRepositoryImpl) FindActiveByName ¶
func (repo AppRepositoryImpl) FindActiveByName(appName string) (*App, error)
func (AppRepositoryImpl) FindActiveListByName ¶
func (repo AppRepositoryImpl) FindActiveListByName(appName string) ([]*App, error)
func (AppRepositoryImpl) FindAll ¶
func (repo AppRepositoryImpl) FindAll() ([]*App, error)
func (AppRepositoryImpl) FindAllActiveAppsWithTeam ¶
func (repo AppRepositoryImpl) FindAllActiveAppsWithTeam() ([]*App, error)
func (AppRepositoryImpl) FindAllMatchesByAppName ¶ added in v0.4.5
func (repo AppRepositoryImpl) FindAllMatchesByAppName(appName string) ([]*App, error)
func (AppRepositoryImpl) FindAppAndProjectByAppId ¶
func (repo AppRepositoryImpl) FindAppAndProjectByAppId(appId int) (*App, error)
func (AppRepositoryImpl) FindAppAndProjectByAppName ¶
func (repo AppRepositoryImpl) FindAppAndProjectByAppName(appName string) (*App, error)
func (AppRepositoryImpl) FindAppsByEnvironmentId ¶
func (repo AppRepositoryImpl) FindAppsByEnvironmentId(environmentId int) ([]App, error)
func (AppRepositoryImpl) FindAppsByTeamId ¶
func (repo AppRepositoryImpl) FindAppsByTeamId(teamId int) ([]*App, error)
func (AppRepositoryImpl) FindAppsByTeamIds ¶
func (repo AppRepositoryImpl) FindAppsByTeamIds(teamId []int, appType string) ([]App, error)
func (AppRepositoryImpl) FindAppsByTeamName ¶
func (repo AppRepositoryImpl) FindAppsByTeamName(teamName string) ([]App, error)
func (AppRepositoryImpl) FindByIds ¶
func (repo AppRepositoryImpl) FindByIds(ids []*int) ([]*App, error)
func (AppRepositoryImpl) GetConnection ¶
func (repo AppRepositoryImpl) GetConnection() *pg.DB
func (AppRepositoryImpl) Save ¶
func (repo AppRepositoryImpl) Save(pipelineGroup *App) error
func (AppRepositoryImpl) SaveWithTxn ¶
func (repo AppRepositoryImpl) SaveWithTxn(pipelineGroup *App, tx *pg.Tx) error
func (AppRepositoryImpl) Update ¶
func (repo AppRepositoryImpl) Update(app *App) error
func (AppRepositoryImpl) UpdateWithTxn ¶
func (repo AppRepositoryImpl) UpdateWithTxn(app *App, tx *pg.Tx) error
Click to show internal directories.
Click to hide internal directories.