cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(apiVersion string)

func ValidateOpenAPI

func ValidateOpenAPI(raw []byte, apiSchemaFile map[string]any, logger *CliLogger) error

Types

type ApiCatalogConfig

type ApiCatalogConfig struct {
	Title   string
	Rules   map[string]pluginmanager.PluginUserOverride
	Plugins pluginmanager.PluginConfFile
}

type CliLogger

type CliLogger struct{}

func NewCliLogger

func NewCliLogger() *CliLogger

func (*CliLogger) Completed

func (l *CliLogger) Completed(info string)

func (*CliLogger) Divider

func (l *CliLogger) Divider()

func (*CliLogger) Error

func (l *CliLogger) Error(info string)

func (*CliLogger) Info

func (l *CliLogger) Info(info string)

func (*CliLogger) Log

func (l *CliLogger) Log(info string)

func (*CliLogger) Report

func (l *CliLogger) Report(rule, method, path, message string)

func (*CliLogger) RuleMetrics

func (l *CliLogger) RuleMetrics(passed int, total int)

func (*CliLogger) ScoreCard

func (l *CliLogger) ScoreCard(scores []reportmanager.Score)

func (*CliLogger) Success

func (l *CliLogger) Success(info string)

func (*CliLogger) Title

func (l *CliLogger) Title(info string)

func (*CliLogger) Warn

func (l *CliLogger) Warn(info string)

Directories

Path Synopsis
This compiler was inspired from grafana k6 project A big kudos goes to goja library Do check it out: https://github.com/dop251/goja
This compiler was inspired from grafana k6 project A big kudos goes to goja library Do check it out: https://github.com/dop251/goja

Jump to

Keyboard shortcuts

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