mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-29 00:59:40 +07:00
30 lines
687 B
Go
30 lines
687 B
Go
package hosts
|
|
|
|
import "gorm.io/datatypes"
|
|
|
|
type CreateHostSchema struct {
|
|
Type string `json:"type"`
|
|
Label string `json:"label"`
|
|
Host string `json:"host"`
|
|
Port int `json:"port"`
|
|
Metadata datatypes.JSONMap `json:"metadata"`
|
|
Tags []string `json:"tags"`
|
|
|
|
TeamID *string `json:"teamId"`
|
|
ParentID *string `json:"parentId"`
|
|
KeyID *string `json:"keyId"`
|
|
AltKeyID *string `json:"altKeyId"`
|
|
}
|
|
|
|
type GetAllOpt struct {
|
|
TeamID string
|
|
ParentID *string
|
|
ID []string
|
|
}
|
|
|
|
type MoveHostSchema struct {
|
|
TeamID string `json:"teamId"`
|
|
ParentID string `json:"parentId"`
|
|
HostID string `json:"hostId"`
|
|
}
|