Documentation
¶
Index ¶
- func AddSubnetToEntity(c *gin.Context)
- func CreateEntity(c *gin.Context)
- func DeleteEntities(c *gin.Context)
- func DeleteScript(c *gin.Context)
- func EntitiesList(c *gin.Context)
- func GenerateVpns(c *gin.Context)
- func GetScenario(c *gin.Context)
- func GetScript(c *gin.Context)
- func GetScriptsList(c *gin.Context)
- func HashPassword(password string) (string, error)
- func UpdateScenario(c *gin.Context)
- func UploadScript(c *gin.Context)
- type Entity
- type Script
- type ScriptName
- type Subnet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSubnetToEntity ¶
func CreateEntity ¶
func DeleteEntities ¶
func DeleteScript ¶
func EntitiesList ¶
func GenerateVpns ¶
func GetScenario ¶
func GetScriptsList ¶
func HashPassword ¶
func UpdateScenario ¶
func UploadScript ¶
Types ¶
type Entity ¶
type Entity struct { Name string `json:"name" validate:"required,min=3,max=30"` Password string `json:"password" validate:"required,min=8,max=100"` Subnet string `json:"subnet"` IP string `json:"ip"` Visible bool `json:"visible"` }
func (*Entity) WriteEntity ¶
type ScriptName ¶
type ScriptName struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.