...

Package testing

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

Overview ▾

type Empty

type Empty struct{}

func (Empty) OpenAPISchema

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

type Fake

Fake opens and returns a openapi swagger from a file Path. It will parse only once and then return the same copy everytime.

type Fake struct {
    Path string
    // contains filtered or unexported fields
}

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)