ipset

package
v0.0.0-...-153df4a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPSet

type IPSet struct {
	// contains filtered or unexported fields
}

func NewIPSet

func NewIPSet(ipVersion int) (*IPSet, error)

func (*IPSet) Apply

func (i *IPSet) Apply()

func (*IPSet) CleanUnusedSet

func (i *IPSet) CleanUnusedSet()

func (*IPSet) GetIPVersion

func (i *IPSet) GetIPVersion() int

func (*IPSet) UpdateIPSet

func (i *IPSet) UpdateIPSet(ipset map[string]map[string]struct{})

type NameConvention

type NameConvention struct {
	// contains filtered or unexported fields
}

func NewNameConvention

func NewNameConvention() *NameConvention

func (*NameConvention) GetMainNameOfSetByUUID

func (i *NameConvention) GetMainNameOfSetByUUID(uuid string) (mainName string, present bool)

func (*NameConvention) SetMainNameOfSet

func (i *NameConvention) SetMainNameOfSet(uuid string, index int, ipVersion int, sourceName, name string) string

Jump to

Keyboard shortcuts

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