Documentation ¶
Index ¶
- type PUContext
- func (p *PUContext) Annotations() *policy.TagStore
- func (p *PUContext) ApplicationACLPolicy(packet *packet.Packet) (*policy.FlowPolicy, error)
- func (p *PUContext) CacheExternalFlowPolicy(packet *packet.Packet, plc interface{})
- func (p *PUContext) GetCachedToken() ([]byte, error)
- func (p *PUContext) GetProcessKeys() (string, []string)
- func (p *PUContext) ID() string
- func (p *PUContext) IP() string
- func (p *PUContext) Identity() *policy.TagStore
- func (p *PUContext) ManagementID() string
- func (p *PUContext) Mark() string
- func (p *PUContext) NetworkACLPolicy(packet *packet.Packet) (*policy.FlowPolicy, error)
- func (p *PUContext) Ports() []string
- func (p *PUContext) RetrieveCachedExternalFlowPolicy(id string) (interface{}, error)
- func (p *PUContext) SearchAcceptRcvRules(claims *policy.TagStore) (int, interface{})
- func (p *PUContext) SearchAcceptTxRules(claims *policy.TagStore) (int, interface{})
- func (p *PUContext) SearchRejectRcvRules(claims *policy.TagStore) (int, interface{})
- func (p *PUContext) SearchRejectTxRules(claims *policy.TagStore) (int, interface{})
- func (p *PUContext) SynServiceContext() []byte
- func (p *PUContext) Type() constants.PUType
- func (p *PUContext) UpdateCachedToken(token []byte)
- func (p *PUContext) UpdateSynServiceContext(synServiceContext []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PUContext ¶
type PUContext struct { Extension interface{} ProxyPort string sync.RWMutex // contains filtered or unexported fields }
PUContext holds data indexed by the PU ID
func (*PUContext) Annotations ¶
Annotations returns the annotations
func (*PUContext) ApplicationACLPolicy ¶
ApplicationACLPolicy retrieves the policy based on ACLs
func (*PUContext) CacheExternalFlowPolicy ¶
CacheExternalFlowPolicy will cache an external flow
func (*PUContext) GetCachedToken ¶
GetCachedToken returns the cached syn packet token
func (*PUContext) GetProcessKeys ¶
GetProcessKeys returns the cache keys for a process
func (*PUContext) ManagementID ¶
ManagementID returns the management ID
func (*PUContext) NetworkACLPolicy ¶
NetworkACLPolicy retrieves the policy based on ACLs
func (*PUContext) RetrieveCachedExternalFlowPolicy ¶
RetrieveCachedExternalFlowPolicy returns the policy for an external IP
func (*PUContext) SearchAcceptRcvRules ¶
SearchAcceptRcvRules searches the accept rules for a policy match
func (*PUContext) SearchAcceptTxRules ¶
SearchAcceptTxRules returns the accept Tx Rules
func (*PUContext) SearchRejectRcvRules ¶
SearchRejectRcvRules returns the reject receive rules
func (*PUContext) SearchRejectTxRules ¶
SearchRejectTxRules searches the reject rules for a policy match
func (*PUContext) SynServiceContext ¶
SynServiceContext returns synServiceContext
func (*PUContext) UpdateCachedToken ¶
UpdateCachedToken updates the local cached token
func (*PUContext) UpdateSynServiceContext ¶
UpdateSynServiceContext updates the synServiceContext