test_data

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PkgPath = "github.com/kloudlite/api/cmd/struct-json-path/test_data"
View Source
var Test10Input = "Test10"
View Source
var Test10Output = map[string][]string{
	"example": {
		"hello",
	},
	"Test10Example2": {
		"world",
	},
}
View Source
var Test11Input = "Test11"
View Source
var Test11Output = map[string][]string{
	"id": {},
	"Test11Example": {
		"hello",
	},
}
View Source
var Test12Input = "Test12"
View Source
var Test12Output = map[string][]string{
	"id":        {},
	"timestamp": {},
	"sample": {
		"timestamp",
	},
}
View Source
var Test13Input = "Test13"
View Source
var Test13Output = map[string][]string{
	"id":        {},
	"timestamp": {},
	"sample": {
		"timestamp",
	},
}
View Source
var Test14Input = "Test14"
View Source
var Test14Output = map[string][]string{
	"id":      {},
	"testStr": {},
	"sample":  {},
}
View Source
var Test1Input = "Test1"
View Source
var Test1Output = map[string][]string{
	"Sample": {},
}
View Source
var Test2Input = "Test2"
View Source
var Test2Output = map[string][]string{
	"sample": {},
}
View Source
var Test3Input = "Test3"
View Source
var Test3Output = map[string][]string{
	"sample":  {},
	"Example": {},
}
View Source
var Test4Input = "Test4"
View Source
var Test4Output = map[string][]string{
	"sample": {},
	"Example": {
		"example-a",
		"example-b",
		"ExampleC",
	},
}
View Source
var Test5Input = "Test5"
View Source
var Test5Output = map[string][]string{
	"sample": {},
	"Example": {
		"example-a",
		"example-b",
		"ExampleC",
	},
	"example2": {
		"example-a",
		"example-b",
		"ExampleC",
	},
}
View Source
var Test6Input = "Test6"
View Source
var Test6Output = map[string][]string{
	"sample": {},
	"Example": {
		"example-a",
		"example-b",
		"ExampleC",
	},
	"": {
		"example-a",
		"example-b",
		"ExampleC",
	},
}
View Source
var Test7Input = "Test7"
View Source
var Test7Output = map[string][]string{
	"sample": {},
	"Example": {
		"example-a",
		"example-b",
		"ExampleC",
	},
	"": {
		"example-a",
		"example-b",
		"example-c",
		"example-d",
		"ExampleC",
	},
}
View Source
var Test8Input = "Test8"
View Source
var Test8Output = map[string][]string{
	"example": {
		"hello",
		"world",
	},
}
View Source
var Test9Input = "Test9"
View Source
var Test9Output = map[string][]string{
	"example": {
		"hello",
	},
}

Functions

This section is empty.

Types

type EmbeddedStruct

type EmbeddedStruct struct {
	Hi string `json:"hi"`
}

type InlineStruct

type InlineStruct struct {
	Value          string `json:"value"`
	EmbeddedStruct `json:"embedded2"`
}

type Sample

type Sample struct {
	Hello            string `json:"hello" asdfas:"Asdfasdfa"`
	corev1.ConfigMap `json:",inline"`
	Embedded         EmbeddedStruct `json:"embedded"`
	Example          string
	Inline           InlineStruct `json:",inline"`
}

type Sample2

type Sample2 struct {
	Hello         string `json:"hello" asdfas:"Asdfasdfa"`
	corev1.Secret `json:",inline"`
	Embedded      EmbeddedStruct `json:"embedded"`
	Example       string
	Inline        InlineStruct `json:",inline"`
}

type Test1

type Test1 struct {
	Sample string
}

type Test10

type Test10 struct {
	Test10Example `json:"example"`
	Test10Example2
}

type Test10Example

type Test10Example struct {
	Hello string `json:"hello"`
}

type Test10Example2

type Test10Example2 struct {
	World string `json:"world"`
}

type Test11

type Test11 struct {
	Id string `json:"id"`
	Test11Example
	// contains filtered or unexported fields
}

type Test11Example

type Test11Example struct {
	Hello string `json:"hello"`
}

type Test12

type Test12 struct {
	Id string `json:"id"`
	//Timestamp time.Time `json:"timestamp"`
	time.Time `json:"timestamp"`
	Sample    Test12Sample `json:"sample"`
}

type Test12Sample

type Test12Sample struct {
	Timestamp time.Time `json:"timestamp"`
}

type Test13

type Test13 struct {
	Id string `json:"id"`
	//Timestamp time.Time `json:"timestamp"`
	time.Time `json:"timestamp" struct-json-path:",ignore-nesting"`
	Sample    Test13Sample `json:"sample"`
}

type Test13Sample

type Test13Sample struct {
	Timestamp time.Time `json:"timestamp" struct-json-path:",ignore-nesting"`
}

type Test14

type Test14 struct {
	Id      string          `json:"id"`
	TestStr Test14SampleStr `json:"testStr"`
	Sample  *Test14Sample   `json:"sample" struct-json-path:",ignore-nesting"`
}

type Test14Sample

type Test14Sample struct {
	Hello string `json:"hello"`
}

type Test14SampleStr

type Test14SampleStr string
const (
	Test14SampleStrHello Test14SampleStr = "hello"
	Test14SampleStrWorld Test14SampleStr = "world"
)

type Test2

type Test2 struct {
	Sample string `json:"sample"`
}

type Test3

type Test3 struct {
	Sample  string `json:"sample"`
	Example string
}

type Test4

type Test4 struct {
	Sample  string `json:"sample"`
	Example struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	}
}

type Test5

type Test5 struct {
	Sample  string `json:"sample"`
	Example struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	}
	Example2 struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	} `json:"example2"`
}

type Test6

type Test6 struct {
	Sample  string `json:"sample"`
	Example struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	}
	Example2 struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	} `json:",inline"`
}

type Test7

type Test7 struct {
	Sample  string `json:"sample"`
	Example struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	}
	Example2 struct {
		ExampleA string `json:"example-a"`
		ExampleB string `json:"example-b"`
		ExampleC string
	} `json:",inline"`
	Example3 struct {
		ExampleA string `json:"example-c"`
		ExampleB string `json:"example-d"`
		ExampleC string
	} `json:",inline"`
}

type Test8

type Test8 struct {
	Example Test8Example `json:"example"`
}

type Test8Example

type Test8Example struct {
	Hello string `json:"hello"`
	World string `json:"world"`
}

type Test9

type Test9 struct {
	Example Test9Example `json:"example"`
}

type Test9Example

type Test9Example struct {
	Hello string `json:"hello"`
	World string `json:"-"`
}

Jump to

Keyboard shortcuts

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