mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-10 01:48:22 +00:00
Add Foreign Model Enum for Session Keys
This commit is contained in:
parent
862201be89
commit
53b7d7504a
1 changed files with 19 additions and 0 deletions
19
api/foreign_model.go
Normal file
19
api/foreign_model.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package api
|
||||
|
||||
type ForeignModelTypes string
|
||||
|
||||
const (
|
||||
ForeignModelTypesResource ForeignModelTypes = "Resource"
|
||||
ForeignModelTypesSecret ForeignModelTypes = "Secret"
|
||||
ForeignModelTypesFolder = "Folder"
|
||||
ForeignModelTypesComment = "Comment"
|
||||
ForeignModelTypesTag = "Tag"
|
||||
)
|
||||
|
||||
func (s ForeignModelTypes) IsValid() bool {
|
||||
switch s {
|
||||
case ForeignModelTypesResource, ForeignModelTypesSecret, ForeignModelTypesFolder, ForeignModelTypesComment, ForeignModelTypesTag:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
Loading…
Add table
Reference in a new issue