netbird/management/server/resource.go

22 lines
307 B
Go
Raw Normal View History

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
}