-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#3): Add security enforcement for tables
- Loading branch information
1 parent
a667c7c
commit f89170e
Showing
7 changed files
with
327 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package misc | ||
|
||
type SecurityPolicyTablesType string | ||
|
||
const ( | ||
SecurityPolicyTablesUnknown SecurityPolicyTablesType = "unknown" | ||
SecurityPolicyTablesPass SecurityPolicyTablesType = "pass" | ||
SecurityPolicyTablesSkip SecurityPolicyTablesType = "skip" | ||
) | ||
|
||
func (v SecurityPolicyTablesType) String() string { | ||
return string(v) | ||
} | ||
|
||
func SecurityPolicyTablesTypeFromString(v string) SecurityPolicyTablesType { | ||
switch v { | ||
case string(SecurityPolicyTablesPass): | ||
return SecurityPolicyTablesPass | ||
case string(SecurityPolicyTablesSkip): | ||
return SecurityPolicyTablesSkip | ||
default: | ||
return SecurityPolicyTablesUnknown | ||
} | ||
} | ||
|
||
type SecurityPolicyColumnsType string | ||
|
||
const ( | ||
SecurityPolicyColumnsUnknown SecurityPolicyColumnsType = "unknown" | ||
SecurityPolicyColumnsPass SecurityPolicyColumnsType = "pass" | ||
SecurityPolicyColumnsRandomize SecurityPolicyColumnsType = "randomize" | ||
) | ||
|
||
func (v SecurityPolicyColumnsType) String() string { | ||
return string(v) | ||
} | ||
|
||
func SecurityPolicyColumnsTypeFromString(v string) SecurityPolicyColumnsType { | ||
switch v { | ||
case string(SecurityPolicyColumnsPass): | ||
return SecurityPolicyColumnsPass | ||
case string(SecurityPolicyColumnsRandomize): | ||
return SecurityPolicyColumnsRandomize | ||
default: | ||
return SecurityPolicyColumnsUnknown | ||
} | ||
} |
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
Oops, something went wrong.