Help us shape the future of Go! Take the 2026 Go Developer Survey

appGroup

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 AppGroup

type AppGroup struct {
	Id            int    `sql:"id,pk"`
	Name          string `sql:"name,notnull"`
	Description   string `sql:"description,notnull"`
	Active        bool   `sql:"active, notnull"`
	EnvironmentId int    `sql:"environment_id,notnull"`
	sql.AuditLog
	// contains filtered or unexported fields
}

type AppGroupMapping

type AppGroupMapping struct {
	Id         int `sql:"id,pk"`
	AppGroupId int `sql:"app_group_id,notnull"`
	AppId      int `sql:"app_id,notnull"`
	AppGroup   *AppGroup
	App        *app.App
	sql.AuditLog
	// contains filtered or unexported fields
}

type AppGroupMappingRepository

type AppGroupMappingRepository interface {
	Save(model *AppGroupMapping, tx *pg.Tx) (*AppGroupMapping, error)
	Update(model *AppGroupMapping, tx *pg.Tx) error
	Delete(model *AppGroupMapping, tx *pg.Tx) error
	FindById(id int) (*AppGroupMapping, error)
	FindByAppGroupId(appGroupId int) ([]*AppGroupMapping, error)
	FindAll() ([]*AppGroupMapping, error)
	FindByAppGroupIds(appGroupIds []int) ([]*AppGroupMapping, error)
	GetConnection() (dbConnection *pg.DB)
}

type AppGroupMappingRepositoryImpl

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

func NewAppGroupMappingRepositoryImpl

func NewAppGroupMappingRepositoryImpl(dbConnection *pg.DB) *AppGroupMappingRepositoryImpl

func (AppGroupMappingRepositoryImpl) Delete

func (repo AppGroupMappingRepositoryImpl) Delete(model *AppGroupMapping, tx *pg.Tx) error

func (AppGroupMappingRepositoryImpl) FindAll

func (AppGroupMappingRepositoryImpl) FindByAppGroupId

func (repo AppGroupMappingRepositoryImpl) FindByAppGroupId(appGroupId int) ([]*AppGroupMapping, error)

func (AppGroupMappingRepositoryImpl) FindByAppGroupIds

func (repo AppGroupMappingRepositoryImpl) FindByAppGroupIds(appGroupIds []int) ([]*AppGroupMapping, error)

func (AppGroupMappingRepositoryImpl) FindById

func (*AppGroupMappingRepositoryImpl) GetConnection

func (repo *AppGroupMappingRepositoryImpl) GetConnection() (dbConnection *pg.DB)

func (AppGroupMappingRepositoryImpl) Save

func (AppGroupMappingRepositoryImpl) Update

func (repo AppGroupMappingRepositoryImpl) Update(model *AppGroupMapping, tx *pg.Tx) error

type AppGroupRepository

type AppGroupRepository interface {
	Save(model *AppGroup, tx *pg.Tx) (*AppGroup, error)
	Update(model *AppGroup, tx *pg.Tx) error
	FindById(id int) (*AppGroup, error)
	FindByNameAndEnvId(name string, envId int) (*AppGroup, error)
	FindActiveListByEnvId(envId int) ([]*AppGroup, error)
	GetConnection() (dbConnection *pg.DB)
}

type AppGroupRepositoryImpl

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

func NewAppGroupRepositoryImpl

func NewAppGroupRepositoryImpl(dbConnection *pg.DB) *AppGroupRepositoryImpl

func (AppGroupRepositoryImpl) FindActiveListByEnvId

func (repo AppGroupRepositoryImpl) FindActiveListByEnvId(envId int) ([]*AppGroup, error)

func (AppGroupRepositoryImpl) FindById

func (repo AppGroupRepositoryImpl) FindById(id int) (*AppGroup, error)

func (AppGroupRepositoryImpl) FindByNameAndEnvId

func (repo AppGroupRepositoryImpl) FindByNameAndEnvId(name string, envId int) (*AppGroup, error)

func (*AppGroupRepositoryImpl) GetConnection

func (repo *AppGroupRepositoryImpl) GetConnection() (dbConnection *pg.DB)

func (AppGroupRepositoryImpl) Save

func (repo AppGroupRepositoryImpl) Save(model *AppGroup, tx *pg.Tx) (*AppGroup, error)

func (AppGroupRepositoryImpl) Update

func (repo AppGroupRepositoryImpl) Update(model *AppGroup, tx *pg.Tx) error

Jump to

Keyboard shortcuts

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