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: 8 Imported by: 0

Documentation

Index

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:"-"`
}

type ApplicationDto

type ApplicationDto struct {
	AppGroupId    int    `json:"appGroupId,omitempty"`
	AppId         int    `json:"appId,omitempty"`
	AppName       string `json:"appName,omitempty"`
	EnvironmentId int    `json:"environmentId,omitempty"`
	Description   string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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