-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cc5f23
commit ef38ccd
Showing
3 changed files
with
58 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// If you need multiple policy definitions or multiple matcher, | ||
// you can use like p2, m2. In fact, all of the above four sections can use multiple types and the syntax is r+number | ||
// such as r2, e2. By default these four sections should correspond one to one | ||
// Such as your r2 will only use matcher m2 to match policies p2. | ||
|
||
export class EnforceContext { | ||
public ptype: string; | ||
public rtype: string; | ||
public etype: string; | ||
public mtype: string; | ||
|
||
constructor(rType: string, pType: string, eType: string, mType: string) { | ||
this.ptype = pType; | ||
this.etype = eType; | ||
this.mtype = mType; | ||
this.rtype = rType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters