netsh

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: AGPL-3.0 Imports: 5 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) ([]*driver.Rule, error)

func (*NetSH) Reset

func (a *NetSH) Reset() error

func (*NetSH) RuleFrom

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

func (*NetSH) Update added in v1.1.0

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

Jump to

Keyboard shortcuts

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