package openapi
import "k8s.io/client-go/openapi"
Index ¶
- Constants
- func NewTypeConverter(client Client, preserveUnknownFields bool) (managedfields.TypeConverter, error)
- type Client
- type GroupVersion
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 ¶
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 ¶
| Path | Synopsis |
|---|---|
| openapi/cached | |
| openapi/openapitest |
- Version
- v0.34.6
- Published
- Mar 19, 2026
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 hour ago –
Tools for package owners.