Documentation ¶
Index ¶
- type Scope
- func (s *Scope) AddExclude(targets ...string) error
- func (s *Scope) AddInclude(targets ...string) error
- func (s *Scope) AddTargetToScope(targets ...string) error
- func (s *Scope) GetAllTargets() (targets []string)
- func (s *Scope) GetExcludes() (excludes []string)
- func (s *Scope) GetIncludes() (includes []string)
- func (s *Scope) GetTargetCIDRs() (cidrs []string, err error)
- func (s *Scope) GetTargetDomains() (domains []string)
- func (s *Scope) GetTargetIPs() (ips []string)
- func (s *Scope) GetTargetOther() (other []string)
- func (s *Scope) IsTargetAdded(target string) bool
- func (s *Scope) IsTargetExcluded(target string) bool
- func (s *Scope) IsTargetInScope(target string) bool
- func (s *Scope) IsTargetIncluded(target string) bool
- func (s *Scope) RemoveTargetFromScope(target string) error
- type Targets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
Scope represents a set of includes, excludes, and targets. It must be initialized using NewScope() before use.
func (*Scope) AddExclude ¶
AddExclude adds one or more targets to the scope's Excludes list.
func (*Scope) AddInclude ¶
AddInclude adds one or more targets to the scope's Includes list.
func (*Scope) AddTargetToScope ¶
AddTargetToScope adds one or more targets to the scope's Targets list.
func (*Scope) GetAllTargets ¶
GetAllTargets returns all hosts as a string slice
func (*Scope) GetExcludes ¶
GetExcludes returns a string slice representation of the scope's Excludes list.
func (*Scope) GetIncludes ¶
GetIncludes returns a string slice representation of the scope's Includes list.
func (*Scope) GetTargetCIDRs ¶
GetTargetsCIDR returns a string slice representation of the scope's Targets CIDR list.
func (*Scope) GetTargetDomains ¶
GetTargetDomains returns all domains as a string slice
func (*Scope) GetTargetIPs ¶
GetTargetIPs returns all IPs as a string slice
func (*Scope) GetTargetOther ¶
GetTargetOther returns all other targets as a string slice
func (*Scope) IsTargetAdded ¶
IsTargetAdded returns true if the target is in the scope's Targets list.
func (*Scope) IsTargetExcluded ¶
IsTargetExcluded returns true if the target is in the scope's Excludes list.
func (*Scope) IsTargetInScope ¶
IsTargetInScope returns true if the target is in the scope's Includes list and not in the Excludes list.
func (*Scope) IsTargetIncluded ¶
IsTargetIncluded returns true if the target is in the scope's Includes list.
func (*Scope) RemoveTargetFromScope ¶
RemoveTargetFromScope removes a target from the scope's Targets list.