trireme-lib: go.aporeto.io/trireme-lib/controller/pkg/ipsetmanager Index | Files

package ipsetmanager

import "go.aporeto.io/trireme-lib/controller/pkg/ipsetmanager"

Index

Package Files

ipsets.go

Constants

const (
    //IPv6DefaultIP is the default ip of v6
    IPv6DefaultIP = "::/0"
    //IPv4DefaultIP is the  default ip for v4
    IPv4DefaultIP = "0.0.0.0/0"
    //IPsetV4 version for ipv4
    IPsetV4 = iota
    //IPsetV6 version for ipv6
    IPsetV6
)

type ACLManager Uses

type ACLManager interface {
    AddToIPset(set provider.Ipset, data string) error
    DelFromIPset(set provider.Ipset, data string) error

    RegisterExternalNets(contextID string, extnets policy.IPRuleList) error
    DestroyUnusedIPsets()
    RemoveExternalNets(contextID string)
    GetIPsets(extnets policy.IPRuleList, ipver int) []string
    UpdateIPsets([]string, string)
}

ACLManager interface is used by supervisor. This interface provides the supervisor to create ipsets corresponding to service ID.

func CreateIPsetManager Uses

func CreateIPsetManager(ipsetv4 provider.IpsetProvider, ipsetv6 provider.IpsetProvider) ACLManager

CreateIPsetManager creates the handle with Interface ACLManager

Package ipsetmanager imports 9 packages (graph) and is imported by 15 packages. Updated 2019-12-05. Refresh now. Tools for package owners.