mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-09 15:38:26 +01:00
ddc365f7a0
--------- Co-authored-by: Pascal Fischer <32096965+pascal-fischer@users.noreply.github.com> Co-authored-by: bcmmbaga <bethuelmbaga12@gmail.com> Co-authored-by: Maycon Santos <mlsmaycon@gmail.com> Co-authored-by: Zoltan Papp <zoltan.pmail@gmail.com>
22 lines
307 B
Go
22 lines
307 B
Go
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
|
|
}
|