netsh

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package netsh for windows

Index

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 New

func New() (*NetSH, error)

func (*NetSH) AddDefault added in v1.4.7

func (a *NetSH) AddDefault() error

func (*NetSH) Append

func (a *NetSH) Append(rules ...driver.Rule) (err error)

func (*NetSH) AsWhitelist added in v1.3.2

func (a *NetSH) AsWhitelist(table, chain string) error

func (*NetSH) Ban added in v1.4.7

func (*NetSH) Ban(ips []net.IP, expires time.Duration) error

func (*NetSH) Clear added in v1.3.5

func (a *NetSH) Clear() error

func (*NetSH) Delete

func (a *NetSH) Delete(rules ...driver.Rule) (err error)

func (*NetSH) Enabled

func (a *NetSH) Enabled(on bool) error

func (*NetSH) Exists

func (a *NetSH) Exists(rule driver.Rule) (bool, error)

func (*NetSH) Export

func (a *NetSH) Export(wfwFile string) error

func (*NetSH) FindPositionByID added in v1.3.5

func (a *NetSH) FindPositionByID(table, chain string, id uint) (uint, error)

func (*NetSH) Import

func (a *NetSH) Import(wfwFile string) error

func (*NetSH) Insert

func (a *NetSH) Insert(rules ...driver.Rule) (err error)

func (*NetSH) List

func (a *NetSH) List(table, chain string) ([]*driver.Rule, error)

func (*NetSH) Reset

func (a *NetSH) Reset() error

func (*NetSH) Stats added in v1.3.2

func (a *NetSH) Stats(table, chain string) ([]map[string]string, error)

func (*NetSH) Update added in v1.1.0

func (a *NetSH) Update(rule driver.Rule) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL