app

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 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 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"`
	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) ([]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
}

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 (repo AppRepositoryImpl) FetchAppsByFilterV2(appNameIncludes string, appNameExcludes string, environmentId int) ([]*App, error)

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) 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) ([]App, error)

func (AppRepositoryImpl) FindAppsByTeamName

func (repo AppRepositoryImpl) FindAppsByTeamName(teamName string) ([]App, error)

func (AppRepositoryImpl) FindById

func (repo AppRepositoryImpl) FindById(id int) (*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

Jump to

Keyboard shortcuts

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