Documentation ¶
Index ¶
- type ResourceGroup
- type ResourceGroupMapping
- type ResourceGroupMappingRepository
- type ResourceGroupMappingRepositoryImpl
- func (repo ResourceGroupMappingRepositoryImpl) Delete(model *ResourceGroupMapping, tx *pg.Tx) error
- func (repo ResourceGroupMappingRepositoryImpl) FindByResourceGroupId(resourceGroupId int) ([]*ResourceGroupMapping, error)
- func (repo ResourceGroupMappingRepositoryImpl) FindByResourceGroupIds(resourceGroupIds []int) ([]*ResourceGroupMapping, error)
- func (repo ResourceGroupMappingRepositoryImpl) GetConnection() (dbConnection *pg.DB)
- func (repo ResourceGroupMappingRepositoryImpl) Save(model *ResourceGroupMapping, tx *pg.Tx) (*ResourceGroupMapping, error)
- type ResourceGroupRepository
- type ResourceGroupRepositoryImpl
- func (repo ResourceGroupRepositoryImpl) FindActiveListByParentResource(resourceId int, resourceKey int) ([]*ResourceGroup, error)
- func (repo ResourceGroupRepositoryImpl) FindById(id int) (*ResourceGroup, error)
- func (repo ResourceGroupRepositoryImpl) FindByNameAndParentResource(name string, resourceId int, resourceKey int) (*ResourceGroup, error)
- func (repo *ResourceGroupRepositoryImpl) GetConnection() (dbConnection *pg.DB)
- func (repo ResourceGroupRepositoryImpl) Save(model *ResourceGroup, tx *pg.Tx) (*ResourceGroup, error)
- func (repo ResourceGroupRepositoryImpl) Update(model *ResourceGroup, tx *pg.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceGroup ¶
type ResourceGroup struct { Id int `sql:"id,pk"` Name string `sql:"name,notnull"` Description string `sql:"description,notnull"` Active bool `sql:"active,notnull"` ResourceId int `sql:"resource_id,notnull"` ResourceKey int `sql:"resource_key,notnull"` sql.AuditLog // contains filtered or unexported fields }
type ResourceGroupMapping ¶
type ResourceGroupMappingRepository ¶
type ResourceGroupMappingRepository interface { Save(model *ResourceGroupMapping, tx *pg.Tx) (*ResourceGroupMapping, error) //Update(model *ResourceGroupMapping, tx *pg.Tx) error Delete(model *ResourceGroupMapping, tx *pg.Tx) error //FindById(id int) (*ResourceGroupMapping, error) FindByResourceGroupId(appGroupId int) ([]*ResourceGroupMapping, error) //FindAll() ([]*ResourceGroupMapping, error) FindByResourceGroupIds(appGroupIds []int) ([]*ResourceGroupMapping, error) }
type ResourceGroupMappingRepositoryImpl ¶
type ResourceGroupMappingRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewResourceGroupMappingRepositoryImpl ¶
func NewResourceGroupMappingRepositoryImpl(dbConnection *pg.DB) *ResourceGroupMappingRepositoryImpl
func (ResourceGroupMappingRepositoryImpl) Delete ¶
func (repo ResourceGroupMappingRepositoryImpl) Delete(model *ResourceGroupMapping, tx *pg.Tx) error
func (ResourceGroupMappingRepositoryImpl) FindByResourceGroupId ¶
func (repo ResourceGroupMappingRepositoryImpl) FindByResourceGroupId(resourceGroupId int) ([]*ResourceGroupMapping, error)
func (ResourceGroupMappingRepositoryImpl) FindByResourceGroupIds ¶
func (repo ResourceGroupMappingRepositoryImpl) FindByResourceGroupIds(resourceGroupIds []int) ([]*ResourceGroupMapping, error)
func (ResourceGroupMappingRepositoryImpl) GetConnection ¶
func (repo ResourceGroupMappingRepositoryImpl) GetConnection() (dbConnection *pg.DB)
func (ResourceGroupMappingRepositoryImpl) Save ¶
func (repo ResourceGroupMappingRepositoryImpl) Save(model *ResourceGroupMapping, tx *pg.Tx) (*ResourceGroupMapping, error)
type ResourceGroupRepository ¶
type ResourceGroupRepository interface { Save(model *ResourceGroup, tx *pg.Tx) (*ResourceGroup, error) Update(model *ResourceGroup, tx *pg.Tx) error FindById(id int) (*ResourceGroup, error) FindByNameAndParentResource(name string, resourceId int, resourceKey int) (*ResourceGroup, error) FindActiveListByParentResource(resourceId int, resourceKey int) ([]*ResourceGroup, error) GetConnection() (dbConnection *pg.DB) }
type ResourceGroupRepositoryImpl ¶
type ResourceGroupRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewResourceGroupRepositoryImpl ¶
func NewResourceGroupRepositoryImpl(dbConnection *pg.DB) *ResourceGroupRepositoryImpl
func (ResourceGroupRepositoryImpl) FindActiveListByParentResource ¶
func (repo ResourceGroupRepositoryImpl) FindActiveListByParentResource(resourceId int, resourceKey int) ([]*ResourceGroup, error)
func (ResourceGroupRepositoryImpl) FindById ¶
func (repo ResourceGroupRepositoryImpl) FindById(id int) (*ResourceGroup, error)
func (ResourceGroupRepositoryImpl) FindByNameAndParentResource ¶
func (repo ResourceGroupRepositoryImpl) FindByNameAndParentResource(name string, resourceId int, resourceKey int) (*ResourceGroup, error)
func (*ResourceGroupRepositoryImpl) GetConnection ¶
func (repo *ResourceGroupRepositoryImpl) GetConnection() (dbConnection *pg.DB)
func (ResourceGroupRepositoryImpl) Save ¶
func (repo ResourceGroupRepositoryImpl) Save(model *ResourceGroup, tx *pg.Tx) (*ResourceGroup, error)
func (ResourceGroupRepositoryImpl) Update ¶
func (repo ResourceGroupRepositoryImpl) Update(model *ResourceGroup, tx *pg.Tx) error
Click to show internal directories.
Click to hide internal directories.