apimachineryk8s.io/apimachinery/pkg/util/strategicpatch/testing Index | Files

package testing

import "k8s.io/apimachinery/pkg/util/strategicpatch/testing"

Index

Functions

func GetSchemaOrDie

func GetSchemaOrDie(f *Fake, model string) openapi.Schema

GetSchemaOrDie returns the openapi schema.

Types

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 OpenAPIV3Getter

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

func (*OpenAPIV3Getter) SchemaBytesOrDie

func (f *OpenAPIV3Getter) SchemaBytesOrDie() []byte

func (*OpenAPIV3Getter) SchemaOrDie

func (f *OpenAPIV3Getter) SchemaOrDie() *spec3.OpenAPI

Source Files

openapi.go openapi3.go

Version
v0.33.0 (latest)
Published
Apr 11, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.