resourceGroup

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 ResourceGroupMapping struct {
	Id              int `sql:"id,pk"`
	ResourceGroupId int `sql:"resource_group_id,notnull"`
	ResourceId      int `sql:"resource_id,notnull"`
	ResourceKey     int `sql:"resource_key,notnull"`
	ResourceGroup   *ResourceGroup
	sql.AuditLog
	// contains filtered or unexported fields
}

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 (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

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 (ResourceGroupRepositoryImpl) Update

func (repo ResourceGroupRepositoryImpl) Update(model *ResourceGroup, tx *pg.Tx) error

Jump to

Keyboard shortcuts

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