kubernetes/staging/src/k8s.io/kubectl/pkg/util/openapi/testing/openapi.go

type FakeResources

var _

// NewFakeResources creates a new FakeResources.
func NewFakeResources(path string) *FakeResources {}

// LookupResource will read the schema, parse it and return the
// resources. It doesn't return errors and will panic instead.
func (f *FakeResources) LookupResource(gvk schema.GroupVersionKind) proto.Schema {}

func (f *FakeResources) GetConsumes(gvk schema.GroupVersionKind, operation string) []string {}

type EmptyResources

var _

// LookupResource will always return nil. It doesn't have any resources.
func (f EmptyResources) LookupResource(gvk schema.GroupVersionKind) proto.Schema {}

func (f EmptyResources) GetConsumes(gvk schema.GroupVersionKind, operation string) []string {}

// CreateOpenAPISchemaFunc returns a function useful for the TestFactory.
func CreateOpenAPISchemaFunc(path string) func() (openapi.Resources, error) {}