mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-15 09:42:47 +02:00
[client, management] Add new network concept (#3047)
--------- 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>
This commit is contained in:
21
management/server/resource.go
Normal file
21
management/server/resource.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user