mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
NM-160: Network User IP map API for operator (#3795)
* add user network ip mapping api * fix user network ip api
This commit is contained in:
@@ -250,3 +250,14 @@ type UserInvite struct {
|
||||
InviteCode string `json:"invite_code"`
|
||||
InviteURL string `json:"invite_url"`
|
||||
}
|
||||
|
||||
// UserMapping - user ip map with groups
|
||||
type UserMapping struct {
|
||||
User string `json:"user"`
|
||||
Groups []string `json:"groups"`
|
||||
}
|
||||
|
||||
// UserIPMap maintains the mapping of IP addresses to users and groups
|
||||
type UserIPMap struct {
|
||||
Mappings map[string]UserMapping `json:"mappings"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user