trireme-lib: go.aporeto.io/trireme-lib/controller/internal/enforcer/lookup Index | Files

package lookup

import "go.aporeto.io/trireme-lib/controller/internal/enforcer/lookup"

Index

Package Files

lookup.go

type ForwardingPolicy Uses

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

ForwardingPolicy is an instance of the forwarding policy

type PolicyDB Uses

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

PolicyDB is the structure of a policy

func NewPolicyDB Uses

func NewPolicyDB() (m *PolicyDB)

NewPolicyDB creates a new PolicyDB for efficient search of policies

func (*PolicyDB) AddPolicy Uses

func (m *PolicyDB) AddPolicy(selector policy.TagSelector) (policyID int)

AddPolicy adds a policy to the database

func (*PolicyDB) PrintPolicyDB Uses

func (m *PolicyDB) PrintPolicyDB()

PrintPolicyDB is a debugging function to dump the map

func (*PolicyDB) Search Uses

func (m *PolicyDB) Search(tags *policy.TagStore) (int, interface{})

Search searches for a set of tags in the database to find a policy match

Package lookup imports 4 packages (graph) and is imported by 2 packages. Updated 2018-11-15. Refresh now. Tools for package owners.