Documentation ¶
Index ¶
- type AddressHandlers
- func (h *AddressHandlers) DeleteAddresses(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) ExportAddresses(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) ExportHostList(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) ExportPorts(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) GetAddresses(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) GetGroupCount(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) GetHostList(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) GetPorts(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) IgnoreAddresses(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) OrgStats(w http.ResponseWriter, req *http.Request)
- func (h *AddressHandlers) ParseGetFilterQuery(values url.Values, orgID, groupID int) (*am.ScanGroupAddressFilter, error)
- func (h *AddressHandlers) PutAddresses(w http.ResponseWriter, req *http.Request)
- type AddressResponse
- type AddressStatsResponse
- type HostlistResponse
- type PortsResponse
- type PutResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressHandlers ¶
type AddressHandlers struct { ContextExtractor middleware.UserContextExtractor // contains filtered or unexported fields }
func New ¶
func New(addrClient am.AddressService, scanGroupClient am.ScanGroupService, orgClient am.OrganizationService) *AddressHandlers
func (*AddressHandlers) DeleteAddresses ¶
func (h *AddressHandlers) DeleteAddresses(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) ExportAddresses ¶
func (h *AddressHandlers) ExportAddresses(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) ExportHostList ¶
func (h *AddressHandlers) ExportHostList(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) ExportPorts ¶
func (h *AddressHandlers) ExportPorts(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) GetAddresses ¶
func (h *AddressHandlers) GetAddresses(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) GetGroupCount ¶
func (h *AddressHandlers) GetGroupCount(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) GetHostList ¶
func (h *AddressHandlers) GetHostList(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) GetPorts ¶
func (h *AddressHandlers) GetPorts(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) IgnoreAddresses ¶
func (h *AddressHandlers) IgnoreAddresses(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) OrgStats ¶
func (h *AddressHandlers) OrgStats(w http.ResponseWriter, req *http.Request)
func (*AddressHandlers) ParseGetFilterQuery ¶
func (h *AddressHandlers) ParseGetFilterQuery(values url.Values, orgID, groupID int) (*am.ScanGroupAddressFilter, error)
func (*AddressHandlers) PutAddresses ¶
func (h *AddressHandlers) PutAddresses(w http.ResponseWriter, req *http.Request)
type AddressResponse ¶
type AddressResponse struct { Addrs []*am.ScanGroupAddress `json:"addresses"` Status string `json:"status"` LastIndex int64 `json:"last_index"` Total int `json:"total"` }
type AddressStatsResponse ¶
type AddressStatsResponse struct { Stats []*am.ScanGroupAddressStats `json:"stats"` Status string `json:"status"` }
type HostlistResponse ¶
type HostlistResponse struct { Hosts []*am.ScanGroupHostList `json:"hosts"` Status string `json:"status"` LastHost string `json:"last_host"` }
type PortsResponse ¶
type PortsResponse struct { Ports []*am.PortResults `json:"ports"` Status string `json:"status"` LastIndex int64 `json:"last_index"` }
type PutResponse ¶
type PutResponse struct { Msg string `json:"msg"` Status string `json:"status"` ParserErrors []*inputlist.ParseError `json:"errors,omitempty"` Count int `json:"count,omitempty"` }
Click to show internal directories.
Click to hide internal directories.