usersformatter

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: EPL-2.0 Imports: 5 Imported by: 0

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_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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL