kubernetes/vendor/k8s.io/kube-openapi/pkg/handler3/handler.go

const subTypeProtobufDeprecated

const subTypeProtobuf

const subTypeJSON

type OpenAPIV3Discovery

type OpenAPIV3DiscoveryGroupVersion

func ToV3ProtoBinary(json []byte) ([]byte, error) {}

type timedSpec

type openAPIV3Group

func newOpenAPIV3Group() *openAPIV3Group {}

func (o *openAPIV3Group) UpdateSpec(openapi cached.Value[*spec3.OpenAPI]) {}

type OpenAPIService

func computeETag(data []byte) string {}

func constructServerRelativeURL(gvString, etag string) string {}

// NewOpenAPIService builds an OpenAPIService starting with the given spec.
func NewOpenAPIService() *OpenAPIService {}

func (o *OpenAPIService) buildDiscoveryCacheLocked() cached.Value[timedSpec] {}

func (o *OpenAPIService) getSingleGroupBytes(getType string, group string) ([]byte, string, time.Time, error) {}

// UpdateGroupVersionLazy adds or updates an existing group with the new cached.
func (o *OpenAPIService) UpdateGroupVersionLazy(group string, openapi cached.Value[*spec3.OpenAPI]) {}

func (o *OpenAPIService) UpdateGroupVersion(group string, openapi *spec3.OpenAPI) {}

func (o *OpenAPIService) DeleteGroupVersion(group string) {}

func (o *OpenAPIService) HandleDiscovery(w http.ResponseWriter, r *http.Request) {}

func (o *OpenAPIService) HandleGroupVersion(w http.ResponseWriter, r *http.Request) {}

func (o *OpenAPIService) RegisterOpenAPIV3VersionedService(servePath string, handler common.PathHandlerByGroupVersion) error {}