kubernetes/staging/src/k8s.io/client-go/openapi3/root.go

type Root

type root

var _

// NewRoot returns a structure implementing the Root interface,
// created with the passed rest client.
func NewRoot(client openapi.Client) Root {}

func (r *root) GroupVersions() ([]schema.GroupVersion, error) {}

func (r *root) GVSpec(gv schema.GroupVersion) (*spec3.OpenAPI, error) {}

func (r *root) GVSpecAsMap(gv schema.GroupVersion) (map[string]interface{}

// retrieveGVBytes returns the schema for a passed GroupVersion as an
// unstructured slice of bytes or an error if there is a problem downloading
// or if the passed GroupVersion is not supported.
func (r *root) retrieveGVBytes(gv schema.GroupVersion) ([]byte, error) {}

// gvToAPIPath maps the passed GroupVersion to a relative api
// server url. Example:
//
//	GroupVersion{Group: "apps", Version: "v1"} -> "apis/apps/v1".
func gvToAPIPath(gv schema.GroupVersion) string {}

// pathToGroupVersion is a helper function parsing the passed relative
// url into a GroupVersion.
//
//	Example: apis/apps/v1 -> GroupVersion{Group: "apps", Version: "v1"}
//	Example: api/v1 -> GroupVersion{Group: "", Version: "v1"}
func pathToGroupVersion(path string) (schema.GroupVersion, error) {}

type GroupVersionNotFoundError

func (r *GroupVersionNotFoundError) Error() string {}