Merge pull request 'add server zone' (#411) from serverZone into master
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details

Reviewed-on: #411
This commit is contained in:
Sarah Jamie Lewis 2021-12-11 00:18:59 +00:00
commit 00c8561677
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,9 @@ const (
// ServerKeyZone for attributes related to Server Keys
ServerKeyZone = Zone("serverkey")
// ServerZone is for attributes related to the server
ServerZone = Zone("server")
// UnknownZone is a catch all useful for error handling
UnknownZone = Zone("unknown")
)
@ -56,6 +59,8 @@ func ParseZone(path string) (Zone, string) {
return FilesharingZone, parts[1]
case ServerKeyZone:
return ServerKeyZone, parts[1]
case ServerZone:
return ServerZone, parts[1]
default:
return UnknownZone, parts[1]
}