Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for coordinating all scans
func New ¶
func New(state state.Stater, dispatcherClient am.DispatcherService, orgClient am.OrganizationService, scanGroupClient am.ScanGroupService, systemOrgID, systemUserID int) *Service
New returns
func (*Service) StartGroup ¶
func (s *Service) StartGroup(ctx context.Context, userContext am.UserContext, scanGroupID int) error
StartGroup initializes state system if they do not exist, or updates with scan group details
func (*Service) StopGroup ¶
func (s *Service) StopGroup(ctx context.Context, userContext am.UserContext, orgID, scanGroupID int) (string, error)
StopGroup checks the group status in our state system. If it's already stopped, we are done. Otherwise, it extracts group from scangroup client to create a proxyUserContext.
Click to show internal directories.
Click to hide internal directories.