Documentation ¶
Index ¶
- type FireInfo
- type Firewall
- func (f *Firewall) ListAddress() ([]FireInfo, error)
- func (f *Firewall) ListPort() ([]FireInfo, error)
- func (f *Firewall) Name() string
- func (f *Firewall) Port(port FireInfo, operation string) error
- func (f *Firewall) PortForward(info Forward, operation string) error
- func (f *Firewall) Reload() error
- func (f *Firewall) Restart() error
- func (f *Firewall) RichRules(rule FireInfo, operation string) error
- func (f *Firewall) Start() error
- func (f *Firewall) Status() (string, error)
- func (f *Firewall) Stop() error
- func (f *Firewall) Version() (string, error)
- type Forward
- type Ufw
- func (f *Ufw) ListAddress() ([]FireInfo, error)
- func (f *Ufw) ListPort() ([]FireInfo, error)
- func (f *Ufw) Name() string
- func (f *Ufw) Port(port FireInfo, operation string) error
- func (f *Ufw) PortForward(info Forward, operation string) error
- func (f *Ufw) Reload() error
- func (f *Ufw) Restart() error
- func (f *Ufw) RichRules(rule FireInfo, operation string) error
- func (f *Ufw) Start() error
- func (f *Ufw) Status() (string, error)
- func (f *Ufw) Stop() error
- func (f *Ufw) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FireInfo ¶
type FireInfo struct { Family string `json:"family"` // ipv4 ipv6 Address string `json:"address"` // Anywhere Port string `json:"port"` Protocol string `json:"protocol"` // tcp udp tcp/udp Strategy string `json:"strategy"` // accept drop UsedStatus string `json:"usedStatus"` Description string `json:"description"` }
Click to show internal directories.
Click to hide internal directories.