 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ModuleActionAuditLog
- type ModuleActionAuditLogRepository
- type ModuleActionAuditLogRepositoryImpl
- type ModuleCacheService
- type ModuleCacheServiceImpl
- type ModuleCronService
- type ModuleCronServiceImpl
- type ModuleService
- type ModuleServiceHelper
- type ModuleServiceHelperImpl
- type ModuleServiceImpl
- func (impl ModuleServiceImpl) EnableModule(moduleName, version string) (*bean.ActionResponse, error)
- func (impl ModuleServiceImpl) GetAllModuleInfo() ([]bean.ModuleInfoDto, error)
- func (impl ModuleServiceImpl) GetModuleConfig(name string) (*bean.ModuleConfigDto, error)
- func (impl ModuleServiceImpl) GetModuleInfo(name string) (*bean.ModuleInfoDto, error)
- func (impl ModuleServiceImpl) HandleModuleAction(userId int32, moduleName string, ...) (*bean.ActionResponse, error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleActionAuditLog ¶
type ModuleActionAuditLog struct {
	Id         int       `sql:"id,pk"`
	ModuleName string    `sql:"module_name, notnull"`
	Action     string    `sql:"action,notnull"`
	Version    string    `sql:"version,notnull"`
	CreatedOn  time.Time `sql:"created_on,notnull"`
	CreatedBy  int32     `sql:"created_by,notnull"`
	// contains filtered or unexported fields
}
    type ModuleActionAuditLogRepository ¶
type ModuleActionAuditLogRepository interface {
	Save(moduleActionAuditLog *ModuleActionAuditLog) error
}
    type ModuleActionAuditLogRepositoryImpl ¶
type ModuleActionAuditLogRepositoryImpl struct {
	// contains filtered or unexported fields
}
    func NewModuleActionAuditLogRepositoryImpl ¶
func NewModuleActionAuditLogRepositoryImpl(dbConnection *pg.DB) *ModuleActionAuditLogRepositoryImpl
func (ModuleActionAuditLogRepositoryImpl) Save ¶
func (impl ModuleActionAuditLogRepositoryImpl) Save(moduleActionAuditLog *ModuleActionAuditLog) error
type ModuleCacheService ¶
type ModuleCacheService interface {
}
    type ModuleCacheServiceImpl ¶
type ModuleCacheServiceImpl struct {
	K8sUtil *k8s.K8sServiceImpl
	// contains filtered or unexported fields
}
    func NewModuleCacheServiceImpl ¶
func NewModuleCacheServiceImpl(logger *zap.SugaredLogger, K8sUtil *k8s.K8sServiceImpl, moduleEnvConfig *bean.ModuleEnvConfig, serverEnvConfig *serverEnvConfig.ServerEnvConfig, serverDataStore *serverDataStore.ServerDataStore, moduleRepository moduleRepo.ModuleRepository, teamService team.TeamService) (*ModuleCacheServiceImpl, error)
type ModuleCronService ¶
type ModuleCronService interface {
	HandleModuleStatusIfNotInProgress(moduleName string)
}
    type ModuleCronServiceImpl ¶
type ModuleCronServiceImpl struct {
	// contains filtered or unexported fields
}
    func NewModuleCronServiceImpl ¶
func NewModuleCronServiceImpl(logger *zap.SugaredLogger, moduleEnvConfig *bean2.ModuleEnvConfig, moduleRepository moduleRepo.ModuleRepository, serverEnvConfig *serverEnvConfig.ServerEnvConfig, helmAppService client.HelmAppService, moduleServiceHelper ModuleServiceHelper, moduleResourceStatusRepository moduleRepo.ModuleResourceStatusRepository, moduleDataStore *moduleDataStore.ModuleDataStore, cronLogger *cron2.CronLoggerImpl) (*ModuleCronServiceImpl, error)
func (*ModuleCronServiceImpl) HandleModuleStatusIfNotInProgress ¶ added in v0.6.10
func (impl *ModuleCronServiceImpl) HandleModuleStatusIfNotInProgress(moduleName string)
type ModuleService ¶
type ModuleService interface {
	GetModuleInfo(name string) (*bean.ModuleInfoDto, error)
	GetModuleConfig(name string) (*bean.ModuleConfigDto, error)
	HandleModuleAction(userId int32, moduleName string, moduleActionRequest *bean.ModuleActionRequestDto) (*bean.ActionResponse, error)
	GetAllModuleInfo() ([]bean.ModuleInfoDto, error)
	EnableModule(moduleName, version string) (*bean.ActionResponse, error)
}
    type ModuleServiceHelper ¶ added in v0.6.10
type ModuleServiceHelperImpl ¶ added in v0.6.10
type ModuleServiceHelperImpl struct {
	// contains filtered or unexported fields
}
    func NewModuleServiceHelperImpl ¶ added in v0.6.10
func NewModuleServiceHelperImpl(serverEnvConfig *serverEnvConfig.ServerEnvConfig) *ModuleServiceHelperImpl
func (ModuleServiceHelperImpl) GetModuleMetadata ¶ added in v0.6.10
func (impl ModuleServiceHelperImpl) GetModuleMetadata(moduleName string) ([]byte, error)
type ModuleServiceImpl ¶
type ModuleServiceImpl struct {
	// contains filtered or unexported fields
}
    func NewModuleServiceImpl ¶
func NewModuleServiceImpl(logger *zap.SugaredLogger, serverEnvConfig *serverEnvConfig.ServerEnvConfig, moduleRepository moduleRepo.ModuleRepository, moduleActionAuditLogRepository ModuleActionAuditLogRepository, helmAppService client.HelmAppService, serverDataStore *serverDataStore.ServerDataStore, serverCacheService server.ServerCacheService, moduleCacheService ModuleCacheService, moduleCronService ModuleCronService, moduleServiceHelper ModuleServiceHelper, moduleResourceStatusRepository moduleRepo.ModuleResourceStatusRepository, scanToolMetadataService scanTool.ScanToolMetadataService, envVariables *util2.EnvironmentVariables, moduleEnvConfig *bean.ModuleEnvConfig) *ModuleServiceImpl
func (ModuleServiceImpl) EnableModule ¶ added in v0.6.18
func (impl ModuleServiceImpl) EnableModule(moduleName, version string) (*bean.ActionResponse, error)
func (ModuleServiceImpl) GetAllModuleInfo ¶ added in v0.6.17
func (impl ModuleServiceImpl) GetAllModuleInfo() ([]bean.ModuleInfoDto, error)
func (ModuleServiceImpl) GetModuleConfig ¶ added in v0.6.0
func (impl ModuleServiceImpl) GetModuleConfig(name string) (*bean.ModuleConfigDto, error)
func (ModuleServiceImpl) GetModuleInfo ¶
func (impl ModuleServiceImpl) GetModuleInfo(name string) (*bean.ModuleInfoDto, error)
func (ModuleServiceImpl) HandleModuleAction ¶
func (impl ModuleServiceImpl) HandleModuleAction(userId int32, moduleName string, moduleActionRequest *bean.ModuleActionRequestDto) (*bean.ActionResponse, error)
       Source Files
      ¶
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.