Permission is a convenience method to convert a boolean into either a PermissionAllowed or PermissionDenied
(canDo bool)
| 228 | |
| 229 | // Permission is a convenience method to convert a boolean into either a PermissionAllowed or PermissionDenied |
| 230 | func Permission(canDo bool) uint8 { |
| 231 | if canDo { |
| 232 | return PermissionAllowed |
| 233 | } |
| 234 | return PermissionDenied |
| 235 | } |
| 236 | |
| 237 | func IsValidS3BucketName(bucketName string) bool { |
| 238 | // TODO: Optimize the heck out of this |
no outgoing calls
no test coverage detected