Documentation ¶
Index ¶
- func AllDirNames() []string
- type Host
- func (host Host) Files(globs ...string) ([]string, error)
- func (host Host) Hostnames() []string
- func (host Host) IPAddresses() []string
- func (host Host) SaveMetadata()
- func (host Host) SetReviewedBy(reviewer string)
- func (h *Host) SyncMetadata(options SyncOptions) error
- func (host Host) URLs() []string
- type Metadata
- func (md *Metadata) AddFlags(flags ...string)
- func (md Metadata) Columnize() string
- func (md Metadata) HasASFlags(flags ...string) bool
- func (md Metadata) HasAllASFlags(flags ...string) bool
- func (md Metadata) HasAllFlags(flags ...string) bool
- func (md Metadata) HasAllUserFlags(flags ...string) bool
- func (md Metadata) HasAnyHostname() bool
- func (md Metadata) HasAnyPort() bool
- func (md Metadata) HasAnyTCPPort() bool
- func (md Metadata) HasAnyUDPPort() bool
- func (md Metadata) HasFlags(flags ...string) bool
- func (md Metadata) HasPorts(ports ...int) bool
- func (md Metadata) HasTCPPorts(ports ...int) bool
- func (md Metadata) HasUDPPorts(ports ...int) bool
- func (md Metadata) HasUserFlags(flags ...string) bool
- func (md Metadata) InCIDR(cidrStr string) bool
- func (md *Metadata) RemoveFlags(flags ...string)
- type Port
- type SyncOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDirNames ¶
func AllDirNames() []string
Types ¶
type Host ¶
func (Host) IPAddresses ¶
func (Host) SaveMetadata ¶
func (host Host) SaveMetadata()
func (Host) SetReviewedBy ¶
func (*Host) SyncMetadata ¶
func (h *Host) SyncMetadata(options SyncOptions) error
type Metadata ¶
type Metadata struct { Name string Hostnames []string RootDomains []string IPAddresses []string Flags []string UserFlags []string TCPPorts []int UDPPorts []int Ports []Port ReviewedBy string // contains filtered or unexported fields }
func (Metadata) HasASFlags ¶
func (Metadata) HasAllASFlags ¶
func (Metadata) HasAllFlags ¶
func (Metadata) HasAllUserFlags ¶
func (Metadata) HasAnyHostname ¶
func (Metadata) HasAnyPort ¶
func (Metadata) HasAnyTCPPort ¶
func (Metadata) HasAnyUDPPort ¶
func (Metadata) HasTCPPorts ¶
func (Metadata) HasUDPPorts ¶
func (Metadata) HasUserFlags ¶
func (*Metadata) RemoveFlags ¶
Click to show internal directories.
Click to hide internal directories.