portset

package
v10.29.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 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 PortManipulator

type PortManipulator interface {
	AddPortToUser(userName string, port string) (bool, error)
}

PortManipulator provides a manipulator interface to update user to port mappings.

type PortSet

type PortSet interface {
	UserManipulator

	PortManipulator
	// contains filtered or unexported methods
}

PortSet provides an interface to update the mappings required to program the ipset portsets.

func New

func New(contextIDFromTCPPort *portcache.PortCache) PortSet

New creates an implementation portset interface.

type UserManipulator

type UserManipulator interface {
	AddUserPortSet(userName string, portset string, mark string) (err error)
	DelUserPortSet(userName string, mark string) error

	GetUserMark(mark string) (string, error)
	// contains filtered or unexported methods
}

UserManipulator provides a manipulator interface to update add/delete users to portset mappings.

Jump to

Keyboard shortcuts

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