Documentation ¶
Index ¶
- func CreateNamespace(nameSpace string) (string, error)
- func CreateRandomCode(lenCode int) string
- func GetNamespace(userInfo UserInfo) (string, error)
- func New() *mux.Router
- func RemoveSpecialChars(specialChar string) (string, error)
- func ValidateToken(r *http.Request) (jwt.Claims, error)
- type App
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
To create a new namespace as part of login.
func CreateRandomCode ¶
Create a random code of given length.
func GetNamespace ¶
Get the namespace for user, from DB.
func RemoveSpecialChars ¶
Remove all special characters and convert to lowercase alphanumeric string.
func ValidateToken ¶
Fetch the token and validate it.
Types ¶
type App ¶
type App struct { Name string `json:"name"` Image string `json:"image"` Port string `json:"port"` Envs []struct { Key string `json:"key"` Value string `json:"value"` } `json:"envs"` UserName string `json:"username"` Password string `json:"password"` }
App structure.
Click to show internal directories.
Click to hide internal directories.