Versions in this module Expand all Collapse all v0 v0.0.1 Jan 13, 2024 Changes in this version + var SessionExpiredError = errors.New("session expired, re-login before continuing") + var UnauthenticatedError = errors.New("unauthenticated, login before continuing") + type Controller struct + func (controller *Controller) AssertAuthenticated() error + func (controller *Controller) AuthorizeRequest(req *http.Request) error + func (controller *Controller) CreateDefaultSite() *Site + func (controller *Controller) CreateSite(name string) Site + func (controller *Controller) Login(username string, password string) error + func (controller *Controller) Logout() error + func (controller *Controller) SetBaseUrl(baseUrl string) error + func (controller *Controller) SetControllerType(controllerType string) + func (controller *Controller) SetRequestTimout(timeout time.Duration) error + func (controller *Controller) SetTlsVerification(verify bool) + type ControllerBuilder struct + func (builder *ControllerBuilder) Build() (*Controller, error) + func (builder *ControllerBuilder) SetBaseUrl(baseUrl string) *ControllerBuilder + func (builder *ControllerBuilder) SetControllerType(controllerType string) *ControllerBuilder + func (builder *ControllerBuilder) SetRequestTimout(timeout time.Duration) *ControllerBuilder + func (builder *ControllerBuilder) SetTlsVerification(verificationOn bool) *ControllerBuilder + type DataValidationError struct + Msg string + Rc string + ValidationError struct{ ... } + type FirewallGroup struct + GroupMembers []string + GroupType string + Id string + Name string + SiteId string + type FirewallGroupResponse struct + Data []FirewallGroupResponseData + Meta Meta + type FirewallGroupResponseData struct + type FirewallRule struct + Action string + DstAddress string + DstFirewallGroupIds []string + DstNetworkConfId string + DstNetworkConfType string + DstPort string + Enabled bool + ICMPTypename string + ICMPv6Typename string + Id string + Ipsec string + Logging bool + Name string + Protocol string + ProtocolMatchExcepted bool + ProtocolV6 string + RuleIndex int + Ruleset string + SettingPreference string + SiteId string + SrcAddress string + SrcFirewallGroupIds []string + SrcMacAddress string + SrcNetworkConfId string + SrcNetworkConfType string + SrcPort string + StateEstablished bool + StateInvalid bool + StateNew bool + StateRelated bool + type FirewallRuleResponse struct + Data []FirewallRuleResponseData + Meta Meta + type FirewallRuleResponseData struct + type Meta struct + Msg string + Name string + Rc string + RuleIndex int + type Site struct + func (site *Site) CreateFirewallGroup(firewallGroup FirewallGroup) (FirewallGroupResponse, error) + func (site *Site) CreateFirewallRule(firewallRule FirewallRule) (FirewallRuleResponse, error) + func (site *Site) DeleteFirewallGroup(id string) (FirewallGroupResponse, error) + func (site *Site) DeleteFirewallRule(id string) (FirewallRuleResponse, error) + func (site *Site) GetAllFirewallGroups() (FirewallGroupResponse, error) + func (site *Site) GetAllFirewallRules() (FirewallRuleResponse, error) + func (site *Site) GetFirewallGroup(id string) (FirewallGroupResponse, error) + func (site *Site) GetFirewallRule(id string) (FirewallRuleResponse, error) + func (site *Site) SetController(controller *Controller) error + func (site *Site) SetName(name string) error + func (site *Site) UpdateFirewallGroup(id string, firewallGroup FirewallGroup) (FirewallGroupResponse, error) + func (site *Site) UpdateFirewallRule(id string, firewallRule FirewallRule) (FirewallRuleResponse, error)