Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConnectivity ¶
Types ¶
type Client ¶
type Client struct { HttpClient *http.Client BaseUrl string Header http.Header XsrfToken string // contains filtered or unexported fields }
func SetupClient ¶
func (*Client) GetSectionRules ¶
func (*Client) GetSectionStats ¶
type Destinations ¶
type Logger ¶ added in v0.1.1
type Logger interface { Fatalf(format string, args ...interface{}) Printf(format string, args ...interface{}) }
Logger is used for outputting log-cache results and errors
type Rule ¶
type Rule struct { ID string `json:"id"` DisplayName string `json:"display_name"` Notes string `json:"notes"` DestinationsExcluded bool `json:"destinations_excluded"` Destinations []Destinations `json:"destinations,omitempty"` Services []Services `json:"services,omitempty"` IPProtocol string `json:"ip_protocol"` RuleTag string `json:"rule_tag"` Logged bool `json:"logged"` Action string `json:"action"` SourcesExcluded bool `json:"sources_excluded"` Disabled bool `json:"disabled"` Direction string `json:"direction"` Revision int `json:"_revision"` }
type RuleStats ¶
type RuleStats struct { RuleID string `json:"rule_id"` PacketCount int `json:"packet_count"` ByteCount int `json:"byte_count"` SessionCount int `json:"session_count"` HitCount int `json:"hit_count"` L7AcceptCount int `json:"l7_accept_count"` L7RejectCount int `json:"l7_reject_count"` L7RejectWithResponseCount int `json:"l7_reject_with_response_count"` PopularityIndex int `json:"popularity_index"` MaxPopularityIndex int `json:"max_popularity_index"` MaxSessionCount int `json:"max_session_count"` TotalSessionCount int `json:"total_session_count"` Schema string `json:"_schema"` }
type RulesResponse ¶
type SectionResponse ¶
type SectionStats ¶
type SectionStats struct {
Results []RuleStats `json:"results"`
}
Click to show internal directories.
Click to hide internal directories.