-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathpucontext.go
37 lines (34 loc) · 1005 Bytes
/
pucontext.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package pucontext
import (
"sync"
"time"
"github.com/aporeto-inc/trireme-lib/constants"
"github.com/aporeto-inc/trireme-lib/enforcer/acls"
"github.com/aporeto-inc/trireme-lib/enforcer/lookup"
"github.com/aporeto-inc/trireme-lib/policy"
"github.com/aporeto-inc/trireme-lib/utils/cache"
)
// PUContext holds data indexed by the PU ID
type PUContext struct {
ID string
ManagementID string
Identity *policy.TagStore
Annotations *policy.TagStore
AcceptTxtRules *lookup.PolicyDB
RejectTxtRules *lookup.PolicyDB
AcceptRcvRules *lookup.PolicyDB
RejectRcvRules *lookup.PolicyDB
ApplicationACLs *acls.ACLCache
NetworkACLS *acls.ACLCache
ExternalIPCache cache.DataStore
Extension interface{}
IP string
Mark string
ProxyPort string
Ports []string
PUType constants.PUType
SynToken []byte
SynServiceContext []byte
SynExpiration time.Time
sync.Mutex
}