Documentation
¶
Index ¶
- type AppGroupDto
- type AppGroupService
- type AppGroupServiceImpl
- func (impl *AppGroupServiceImpl) CreateAppGroup(request *AppGroupDto) (*AppGroupDto, error)
- func (impl *AppGroupServiceImpl) DeleteAppGroup(appGroupId int) (bool, error)
- func (impl *AppGroupServiceImpl) GetActiveAppGroupList(emailId string, ...) ([]*AppGroupDto, error)
- func (impl *AppGroupServiceImpl) GetAppIdsByAppGroupId(appGroupId int) ([]int, error)
- func (impl *AppGroupServiceImpl) GetApplicationsForAppGroup(appGroupId int) ([]*ApplicationDto, error)
- func (impl *AppGroupServiceImpl) UpdateAppGroup(request *AppGroupDto) (*AppGroupDto, error)
- type AppGroupingRequest
- type ApplicationDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppGroupDto ¶
type AppGroupDto struct { Id int `json:"id,omitempty"` Name string `json:"name,omitempty" validate:"required,max=30,name-component"` Description string `json:"description,omitempty" validate:"max=50"` AppIds []int `json:"appIds,omitempty"` Active bool `json:"active,omitempty"` EnvironmentId int `json:"environmentId,omitempty"` UserId int32 `json:"-"` }
type AppGroupService ¶
type AppGroupService interface { GetActiveAppGroupList(emailId string, checkAuthBatch func(emailId string, appObject []string) map[string]bool, envId int) ([]*AppGroupDto, error) GetApplicationsForAppGroup(appGroupId int) ([]*ApplicationDto, error) GetAppIdsByAppGroupId(appGroupId int) ([]int, error) CreateAppGroup(request *AppGroupDto) (*AppGroupDto, error) UpdateAppGroup(request *AppGroupDto) (*AppGroupDto, error) DeleteAppGroup(appGroupId int) (bool, error) }
type AppGroupServiceImpl ¶
type AppGroupServiceImpl struct {
// contains filtered or unexported fields
}
func NewAppGroupServiceImpl ¶
func NewAppGroupServiceImpl(logger *zap.SugaredLogger, appGroupRepository appGroup.AppGroupRepository, appGroupMappingRepository appGroup.AppGroupMappingRepository, enforcerUtil rbac.EnforcerUtil) *AppGroupServiceImpl
func (*AppGroupServiceImpl) CreateAppGroup ¶
func (impl *AppGroupServiceImpl) CreateAppGroup(request *AppGroupDto) (*AppGroupDto, error)
func (*AppGroupServiceImpl) DeleteAppGroup ¶
func (impl *AppGroupServiceImpl) DeleteAppGroup(appGroupId int) (bool, error)
func (*AppGroupServiceImpl) GetActiveAppGroupList ¶
func (impl *AppGroupServiceImpl) GetActiveAppGroupList(emailId string, checkAuthBatch func(emailId string, appObject []string) map[string]bool, envId int) ([]*AppGroupDto, error)
func (*AppGroupServiceImpl) GetAppIdsByAppGroupId ¶
func (impl *AppGroupServiceImpl) GetAppIdsByAppGroupId(appGroupId int) ([]int, error)
func (*AppGroupServiceImpl) GetApplicationsForAppGroup ¶
func (impl *AppGroupServiceImpl) GetApplicationsForAppGroup(appGroupId int) ([]*ApplicationDto, error)
func (*AppGroupServiceImpl) UpdateAppGroup ¶
func (impl *AppGroupServiceImpl) UpdateAppGroup(request *AppGroupDto) (*AppGroupDto, error)
type AppGroupingRequest ¶
type AppGroupingRequest struct { EnvId int `json:"envId,omitempty"` AppGroupId int `json:"appGroupId,omitempty"` AppIds []int `json:"appIds,omitempty"` EmailId string `json:"emailId,omitempty"` CheckAuthBatch func(emailId string, appObject []string, envObject []string) (map[string]bool, map[string]bool) `json:"-"` Ctx context.Context `json:"-"` UserId int32 `json:"-"` }
Click to show internal directories.
Click to hide internal directories.