debug

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BounceMarshalGeneric

func BounceMarshalGeneric[A any](in interface{}) (*A, error)

func CheckSchema

func CheckSchema(dir string, version swagger.KubeVersion)

func JsonFindPaths

func JsonFindPaths(obj interface{}, starterPaths []string) ([][]string, [][]string)

func JsonFindPathsHelper

func JsonFindPathsHelper(obj interface{}, pathContext []string, paths *JsonPaths)

func RunAnalyzeSchema

func RunAnalyzeSchema(args *AnalyzeSchemaArgs)

func RunAnalyzeSchemaLatest

func RunAnalyzeSchemaLatest()

func RunParse

func RunParse(args *ParseArgs)

func SetupSwaggerDebugCommand

func SetupSwaggerDebugCommand() *cobra.Command

func TestSchemaParser

func TestSchemaParser()

Types

type AnalyzeSchemaArgs

type AnalyzeSchemaArgs struct {
	Version string
	All     bool
}

type JsonPaths

type JsonPaths struct {
	Paths [][]string
}

func (*JsonPaths) Append

func (j *JsonPaths) Append(path []string)

func (*JsonPaths) GetSortedPaths

func (j *JsonPaths) GetSortedPaths() [][]string

type ParseArgs

type ParseArgs struct {
	Version string
}

type Trie

type Trie struct {
	Values   *set.Set[string]
	Children map[string]*Trie
}

func NewTrie

func NewTrie() *Trie

func (*Trie) Add

func (t *Trie) Add(path []string, value string)

func (*Trie) GetPaths

func (t *Trie) GetPaths(pathContext []string, paths *JsonPaths)

Jump to

Keyboard shortcuts

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