kubernetes/staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier.go

func NewQueryParamVerifier(dynamicClient dynamic.Interface, openAPIGetter discovery.OpenAPISchemaInterface, queryParam VerifiableQueryParam) *QueryParamVerifier {}

type QueryParamVerifier

type Verifier

type VerifiableQueryParam

const QueryParamFieldValidation

// HasSupport checks if the given gvk supports the query param configured on v
func (v *QueryParamVerifier) HasSupport(gvk schema.GroupVersionKind) error {}

type paramUnsupportedError

func NewParamUnsupportedError(gvk schema.GroupVersionKind, param VerifiableQueryParam) error {}

func (e *paramUnsupportedError) Error() string {}

func IsParamUnsupportedError(err error) bool {}

func hasGVKExtension(extensions []*openapi_v2.NamedAny, gvk schema.GroupVersionKind) bool {}

// supportsQueryParam is a method that let's us look in the OpenAPI if the
// specific group-version-kind supports the specific query parameter for
// the PATCH end-point.
func supportsQueryParam(doc *openapi_v2.Document, gvk schema.GroupVersionKind, queryParam VerifiableQueryParam) (bool, error) {}