tokensformatter

package
v0.36.0 Latest Latest
Warning

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

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

Documentation

Overview

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

Index

Constants

View Source
const (
	HEADER_TOKEN_ID            = "tokenid"
	HEADER_TOKEN_CREATION_TIME = "created(YYYY-MM-DD)"
	HEADER_TOKEN_USER          = "user"
	HEADER_TOKEN_DESCRIPTION   = "description"
)

----------------------------------------------------- TokensFormatter - implementations can take a collection of auth tokens results and turn them into a string for display to the user.

View Source
const (
	SUMMARY_FORMATTER_NAME = "summary"
)

----------------------------------------------------- Summary format.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenFormatter

type TokenFormatter interface {
	FormatTokens(tokenResults []galasaapi.AuthToken) (string, error)
	GetName() string
}

func NewTokenSummaryFormatter

func NewTokenSummaryFormatter() TokenFormatter

type TokenSummaryFormatter

type TokenSummaryFormatter struct {
}

func (*TokenSummaryFormatter) FormatTokens

func (*TokenSummaryFormatter) FormatTokens(authTokens []galasaapi.AuthToken) (string, error)

func (*TokenSummaryFormatter) GetName

func (*TokenSummaryFormatter) GetName() string

Jump to

Keyboard shortcuts

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