portset

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: GPL-2.0 Imports: 10 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(puFromPort cache.DataStore) PortSet

New creates a 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