netsh

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: AGPL-3.0 Imports: 6 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) Append

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

func (*NetSH) Delete

func (a *NetSH) Delete(rule *driver.Rule) 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) Import

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

func (*NetSH) Insert

func (a *NetSH) Insert(pos int, rule *driver.Rule) error

func (*NetSH) List

func (a *NetSH) List(table, chain string) ([]iptables.Stat, error)

func (*NetSH) Reset

func (a *NetSH) Reset() error

func (*NetSH) RuleFrom

func (a *NetSH) RuleFrom(rule *driver.Rule) []string

Jump to

Keyboard shortcuts

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