Documentation
¶
Overview ¶
Package profiles provides scanning profile management for scanorama. It handles predefined and custom scanning configurations, port lists, and scanning methodologies for different use cases.
Index ¶
- type Manager
- func (m *Manager) CloneProfile(ctx context.Context, sourceID, newID, newName string) error
- func (m *Manager) Create(ctx context.Context, profile *db.ScanProfile) error
- func (m *Manager) Delete(ctx context.Context, id string) error
- func (m *Manager) GetAll(ctx context.Context) ([]*db.ScanProfile, error)
- func (m *Manager) GetByID(ctx context.Context, id string) (*db.ScanProfile, error)
- func (m *Manager) GetByOSFamily(ctx context.Context, osFamily string) ([]*db.ScanProfile, error)
- func (m *Manager) GetProfileStats(ctx context.Context) (map[string]int, error)
- func (m *Manager) SelectBestProfile(ctx context.Context, host *db.Host) (*db.ScanProfile, error)
- func (m *Manager) Update(ctx context.Context, profile *db.ScanProfile) error
- func (m *Manager) ValidateProfile(profile *db.ScanProfile) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles scan profile operations.
func NewManager ¶
NewManager creates a new profile manager.
func (*Manager) CloneProfile ¶
CloneProfile creates a copy of an existing profile with a new ID.
func (*Manager) GetByOSFamily ¶
GetByOSFamily returns profiles matching the OS family.
func (*Manager) GetProfileStats ¶
GetProfileStats returns statistics about profile usage.
func (*Manager) SelectBestProfile ¶
SelectBestProfile selects the best profile for a host based on OS information.
func (*Manager) ValidateProfile ¶
func (m *Manager) ValidateProfile(profile *db.ScanProfile) error
ValidateProfile validates a scan profile configuration.
Click to show internal directories.
Click to hide internal directories.