Documentation
¶
Overview ¶
* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0
Index ¶
Constants ¶
View Source
const ( HEADER_USER_LOGIN_ID = "login-id" HEADER_USER_ROLE = "role" HEADER_WEBUI_LAST_LOGIN = "web-last-login(UTC)" HEADER_RESTAPI_LAST_LOGIN = "rest-api-last-login(UTC)" )
----------------------------------------------------- UsersFormatter - implementations can take a collection of user results and turn them into a string for display to the user.
View Source
const CLIENT_REST_API = "rest-api"
View Source
const CLIENT_WEB_UI = "web-ui"
View Source
const (
SUMMARY_FORMATTER_NAME = "summary"
)
----------------------------------------------------- Summary format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserFormatter ¶
type UserFormatter interface {
FormatUsers(userResults []galasaapi.UserData) (string, error)
GetName() string
}
func NewUserSummaryFormatter ¶
func NewUserSummaryFormatter() UserFormatter
type UserSummaryFormatter ¶
type UserSummaryFormatter struct {
}
func (*UserSummaryFormatter) FormatUsers ¶
func (*UserSummaryFormatter) FormatUsers(users []galasaapi.UserData) (string, error)
func (*UserSummaryFormatter) GetName ¶
func (*UserSummaryFormatter) GetName() string
Click to show internal directories.
Click to hide internal directories.