Documentation ¶ Index ¶ func CreateEntity(c *gin.Context) func GenerateVpnConfig(c *gin.Context) func GetEntityInfo(c *gin.Context) func GetServices(c *gin.Context) func GetVpnConfig(c *gin.Context) func HashPassword(password string) (string, error) func UploadSShKey(c *gin.Context) type Entity func (t *Entity) WriteEntity(login string) error type SSHStruct type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CreateEntity ¶ func CreateEntity(c *gin.Context) func GenerateVpnConfig ¶ func GenerateVpnConfig(c *gin.Context) func GetEntityInfo ¶ func GetEntityInfo(c *gin.Context) func GetServices ¶ func GetServices(c *gin.Context) func GetVpnConfig ¶ func GetVpnConfig(c *gin.Context) func HashPassword ¶ func HashPassword(password string) (string, error) func UploadSShKey ¶ func UploadSShKey(c *gin.Context) 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"` } func (*Entity) WriteEntity ¶ func (t *Entity) WriteEntity(login string) error type SSHStruct ¶ type SSHStruct struct { Key string `json:"key"` } type Service ¶ type Service struct { Name string `json:"name"` Description string `json:"description"` Reputation int `json:"reputation"` Lost int `json:"lost"` Gained int `json:"gained"` Status int `json:"status"` SLA float64 `json:"sla"` } Source Files ¶ View all Source files entity.go info.go services.go ssh.go vpn.go Click to show internal directories. Click to hide internal directories.