summaryrefslogtreecommitdiff
path: root/vendor/github.com/leodido/go-urn/scim
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/leodido/go-urn/scim')
-rw-r--r--vendor/github.com/leodido/go-urn/scim/schema/type.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/leodido/go-urn/scim/schema/type.go b/vendor/github.com/leodido/go-urn/scim/schema/type.go
new file mode 100644
index 000000000..134918230
--- /dev/null
+++ b/vendor/github.com/leodido/go-urn/scim/schema/type.go
@@ -0,0 +1,36 @@
+package scimschema
+
+type Type int
+
+const (
+ Unsupported Type = iota
+ Schemas
+ API
+ Param
+)
+
+func (t Type) String() string {
+ switch t {
+ case Schemas:
+ return "schemas"
+ case API:
+ return "api"
+ case Param:
+ return "param"
+ }
+
+ return ""
+}
+
+func TypeFromString(input string) Type {
+ switch input {
+ case "schemas":
+ return Schemas
+ case "api":
+ return API
+ case "param":
+ return Param
+ }
+
+ return Unsupported
+}