package testing
import "k8s.io/kube-openapi/pkg/util/proto/testing"
Index ¶
Types ¶
type Empty ¶
type Empty struct{}
func (Empty) OpenAPISchema ¶
func (Empty) OpenAPISchema() (*openapi_v2.Document, error)
type Fake ¶
type Fake struct { Path string // contains filtered or unexported fields }
Fake opens and returns a openapi swagger from a file Path. It will parse only once and then return the same copy everytime.
func (*Fake) OpenAPISchema ¶
func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error)
OpenAPISchema returns the openapi document and a potential error.
type FakeV3 ¶
type FakeV3 struct { Path string // contains filtered or unexported fields }
func (*FakeV3) OpenAPIV3Schema ¶
func (f *FakeV3) OpenAPIV3Schema(groupVersion string) (*openapi_v3.Document, error)
Source Files ¶
openapi.go openapi_v3.go
- Version
- v0.0.0-20250318190949-c8a335a9a2ff (latest)
- Published
- Mar 18, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 4 weeks ago –
Tools for package owners.