Documentation ¶
Overview ¶
Package netsh for windows
Index ¶
- type NetSH
- func (a *NetSH) Append(rules ...driver.Rule) (err error)
- func (a *NetSH) AsWhitelist(table, chain string) error
- func (a *NetSH) Clear() error
- func (a *NetSH) Delete(rules ...driver.Rule) (err error)
- func (a *NetSH) Enabled(on bool) error
- func (a *NetSH) Exists(rule driver.Rule) (bool, error)
- func (a *NetSH) Export(wfwFile string) error
- func (a *NetSH) FindPositionByID(table, chain string, id uint) (uint, error)
- func (a *NetSH) Import(wfwFile string) error
- func (a *NetSH) Insert(rules ...driver.Rule) (err error)
- func (a *NetSH) List(table, chain string) ([]*driver.Rule, error)
- func (a *NetSH) Reset() error
- func (a *NetSH) Stats(table, chain string) ([]map[string]string, error)
- func (a *NetSH) Update(rule driver.Rule) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetSH ¶
type NetSH struct {
// contains filtered or unexported fields
}
func (*NetSH) AsWhitelist ¶ added in v1.3.2
func (*NetSH) FindPositionByID ¶ added in v1.3.5
Click to show internal directories.
Click to hide internal directories.