add server zone
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2021-12-10 15:54:33 -08:00
parent 9d23174cb6
commit 14ed0e7e0e
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]
}