ipset

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(set string, ip net.IP) error

func Create

func Create(name string, setType string) error

func Destroy

func Destroy(name string) error

func List

func List(name string) ([]net.IP, error)

func Swap

func Swap(name1, name2 string) error

Types

type Ipsets

type Ipsets struct {
	XMLName xml.Name `xml:"ipsets"`
	Text    string   `xml:",chardata"`
	Ipset   struct {
		Text     string `xml:",chardata"`
		Name     string `xml:"name,attr"`
		Type     string `xml:"type"`
		Revision string `xml:"revision"`
		Header   struct {
			Text       string `xml:",chardata"`
			Family     string `xml:"family"`
			Hashsize   string `xml:"hashsize"`
			Maxelem    string `xml:"maxelem"`
			Memsize    string `xml:"memsize"`
			References string `xml:"references"`
			Numentries string `xml:"numentries"`
		} `xml:"header"`
		Members struct {
			Text   string `xml:",chardata"`
			Member []struct {
				Text string `xml:",chardata"`
				Elem string `xml:"elem"`
			} `xml:"member"`
		} `xml:"members"`
	} `xml:"ipset"`
}

https://www.onlinetool.io/xmltogo/

Jump to

Keyboard shortcuts

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