apimachinery: k8s.io/apimachinery/pkg/conversion/queryparams Index | Files

package queryparams

import "k8s.io/apimachinery/pkg/conversion/queryparams"

Package queryparams provides conversion from versioned runtime objects to URL query values


Package Files

convert.go doc.go

func Convert Uses

func Convert(obj interface{}) (url.Values, error)

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 Uses

type Marshaler interface {
    MarshalQueryParameter() (string, error)

Marshaler converts an object to a query parameter string representation

type Unmarshaler Uses

type Unmarshaler interface {
    UnmarshalQueryParameter(string) error

Unmarshaler converts a string representation to an object

Package queryparams imports 4 packages (graph) and is imported by 52 packages. Updated 2019-05-03. Refresh now. Tools for package owners.