kube-openapi: k8s.io/kube-openapi/pkg/util/proto/testing Index | Files

package testing

import "k8s.io/kube-openapi/pkg/util/proto/testing"

Index

Package Files

openapi.go

type Empty Uses

type Empty struct{}

func (Empty) OpenAPISchema Uses

func (Empty) OpenAPISchema() (*openapi_v2.Document, error)

type Fake Uses

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 Uses

func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error)

OpenAPISchema returns the openapi document and a potential error.

Package testing imports 6 packages (graph) and is imported by 4 packages. Updated 2018-06-10. Refresh now. Tools for package owners.