forked from apps/featurer
Add vendor to improve building speed.
This also adds ability to be built in network-constrained environment.
This commit is contained in:
36
vendor/github.com/leodido/go-urn/scim/schema/type.go
generated
vendored
Normal file
36
vendor/github.com/leodido/go-urn/scim/schema/type.go
generated
vendored
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user