File: atomic-struct.go

package info (click to toggle)
golang-k8s-kube-openapi 0.0~git20211014.b3fe75c-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,880 kB
  • sloc: makefile: 6
file content (17 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package structtype

// +k8s:openapi-gen=true
type AtomicStruct struct {
	// +structType=atomic
	Field      ContainedStruct
	OtherField int
}

// +k8s:openapi-gen=true
type ContainedStruct struct{}

// +k8s:openapi-gen=true
// +structType=atomic
type DeclaredAtomicStruct struct {
	Field int
}