Discover Packages
k8s.io/apimachinery
pkg
conversion
queryparams
package
Version:
v0.31.1
Opens a new window with list of versions in this module.
Published: Jul 19, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 117
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package queryparams provides conversion from versioned
runtime objects to URL query values
Convert takes an object and converts it to a url.Values object using JSON tags as
parameter names. Only top-level simple values, arrays, and slices are serialized.
Embedded structs, maps, etc. will not be serialized.
type Marshaler interface {
MarshalQueryParameter() (string , error )
}
Marshaler converts an object to a query parameter string representation
type Unmarshaler interface {
UnmarshalQueryParameter(string ) error
}
Unmarshaler converts a string representation to an object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.