[management] Add structs for new networks concept (#3006)

This commit is contained in:
Pascal Fischer
2024-12-09 19:25:58 +01:00
committed by GitHub
parent 2147bf75eb
commit 623fcb0535
8 changed files with 358 additions and 43 deletions

View File

@@ -0,0 +1,21 @@
package server
type ResourceType string
const (
// nolint
hostType ResourceType = "Host"
//nolint
subnetType ResourceType = "Subnet"
// nolint
domainType ResourceType = "Domain"
)
func (p ResourceType) String() string {
return string(p)
}
type Resource struct {
Type ResourceType
ID string
}