Back to godoc.org
k8s.io/kube-openapi / pkg / util / proto / testing

Package testing

v0.0.0 (6aeccd4)
Latest Go to latest
Published: 4 days ago | License: Apache-2.0 | Module: k8s.io/kube-openapi

Index

Package Files

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier