Documentation
¶
Index ¶
- func ConfigRoute(c echo.Context) error
- func Decrypt(encryptedString string, keyString string) (decryptedString string)
- func Encrypt(stringToEncrypt string, keyString string) (encryptedString string)
- func GenerateKey() string
- func GenerateTemporaryUserPassword() string
- func GetUserRoles(userGroups []string) []string
- func HealthRoute(c echo.Context) error
- func MainRoute(c echo.Context) error
- func UpsertUser(username string, elasticsearchUser ElasticsearchUser)
- type ElasticsearchConnectionDetails
- type ElasticsearchUser
- type ElasticsearchUserMetadata
- type ErrorResponse
- type HealthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigRoute ¶
func GenerateKey ¶
func GenerateKey() string
func GenerateTemporaryUserPassword ¶
func GenerateTemporaryUserPassword() string
func GetUserRoles ¶
func HealthRoute ¶
func UpsertUser ¶
func UpsertUser(username string, elasticsearchUser ElasticsearchUser)
Types ¶
type ElasticsearchUser ¶
type ElasticsearchUserMetadata ¶
type ElasticsearchUserMetadata struct {
Groups []string `json:"groups"`
}
type ErrorResponse ¶
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.