trireme-lib: Index | Files

package lookup

import ""


Package Files


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 5 packages (graph) and is imported by 2 packages. Updated 2019-09-18. Refresh now. Tools for package owners.