oas

package
v0.0.0-...-8868a4c Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const CountersPerSource = "x-counters-per-source"
View Source
const CountersTotal = "x-counters-total"
View Source
const LastSeenTS = "x-last-seen-ts"
View Source
const SampleId = "x-sample-entry"

Variables

This section is empty.

Functions

func GetDefaultOasGeneratorInstance

func GetDefaultOasGeneratorInstance(maxExampleLen int) *defaultOasGenerator

func IsGibberish

func IsGibberish(str string) bool

func IsVersionString

func IsVersionString(component string) bool

func NewDefaultOasGenerator

func NewDefaultOasGenerator(maxExampleLen int) *defaultOasGenerator

Types

type Counter

type Counter struct {
	Entries     int     `json:"entries"`
	Failures    int     `json:"failures"`
	FirstSeen   float64 `json:"firstSeen"`
	LastSeen    float64 `json:"lastSeen"`
	SumRT       float64 `json:"sumRT"`
	SumDuration float64 `json:"sumDuration"`
}

type CounterMap

type CounterMap map[string]*Counter

type CounterMaps

type CounterMaps struct {
	// contains filtered or unexported fields
}

type EntryWithSource

type EntryWithSource struct {
	Source      string
	Destination string
	Entry       har.Entry
	Id          string
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

type NodePath

type NodePath = []string

type OasGenerator

type OasGenerator interface {
	Start()
	Stop()
	IsStarted() bool
	GetServiceSpecs() *sync.Map
}

type OasGeneratorSink

type OasGeneratorSink interface {
	HandleEntry(kubesharkEntry *api.Entry)
}

type PartWithBody

type PartWithBody struct {
	// contains filtered or unexported fields
}

type PathAndOp

type PathAndOp struct {
	// contains filtered or unexported fields
}

type SpecGen

type SpecGen struct {
	MaxExampleLen int // -1 unlimited, 0 and above sets limit
	// contains filtered or unexported fields
}

func NewGen

func NewGen(server string) *SpecGen

func (*SpecGen) GetSpec

func (g *SpecGen) GetSpec() (*openapi.OpenAPI, error)

func (*SpecGen) StartFromSpec

func (g *SpecGen) StartFromSpec(oas *openapi.OpenAPI)

Jump to

Keyboard shortcuts

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