client-gok8s.io/client-go/openapi Index | Files | Directories

package openapi

import "k8s.io/client-go/openapi"

Index

Constants

const ContentTypeOpenAPIV3PB = "application/com.github.proto-openapi.spec.v3@v1.0+protobuf"

Functions

func NewTypeConverter

func NewTypeConverter(client Client, preserveUnknownFields bool) (managedfields.TypeConverter, error)

Types

type Client

type Client interface {
	Paths() (map[string]GroupVersion, error)
}

func NewClient

func NewClient(restClient rest.Interface) Client

type GroupVersion

type GroupVersion interface {
	Schema(contentType string) ([]byte, error)

	// ServerRelativeURL. Returns the path and parameters used to fetch the schema.
	// You should use the Schema method to fetch it, but this value can be used
	// to key the current version of the schema in a cache since it contains a
	// hash string which changes upon schema update.
	ServerRelativeURL() string
}

Source Files

client.go groupversion.go typeconverter.go

Directories

PathSynopsis
openapi/cached
openapi/openapitest
Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
52 minutes ago

Tools for package owners.