Documentation ¶
Index ¶
- func FormatJSON(description string, object interface{}) string
- func FormatString(description string, msg string) string
- func FormatYAML(description string, object interface{}) string
- func GetDiagMessage(present bool, show bool, msg string) string
- func Indent(s string, padding int) string
- type AuthRequestInfo
- type SSOTestCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatJSON ¶
func FormatString ¶
func FormatYAML ¶
func GetDiagMessage ¶
GetDiagMessage is helper function for preparing message set to be shown to user.
Types ¶
type AuthRequestInfo ¶
type AuthRequestInfo struct { // Config holds *client.RedirectorConfig used for SSO redirect. Config *client.RedirectorConfig // RequestID is ID of auth request created for SSO test. RequestID string // RequestCreateErr holds an error in case auth request creation failed. RequestCreateErr error }
AuthRequestInfo is helper type, useful for tying together test handlers of different auth types.
type SSOTestCommand ¶
type SSOTestCommand struct { // Handlers is a mapping between auth kind and appropriate handling function Handlers map[string]func(c auth.ClientI, connBytes []byte) (*AuthRequestInfo, error) // GetDiagInfoFields provides auth kind-specific diagnostic info fields. GetDiagInfoFields map[string]func(diag *types.SSODiagnosticInfo, debug bool) []string // Browser to use in login flow. Browser string // contains filtered or unexported fields }
SSOTestCommand implements common.CLICommand interface
func (*SSOTestCommand) Initialize ¶
func (cmd *SSOTestCommand) Initialize(app *kingpin.Application, cfg *service.Config)
Initialize allows a caller-defined command to plug itself into CLI argument parsing
Click to show internal directories.
Click to hide internal directories.