Merge pull request #20351 from krousey/dynamic_client

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-02-19 10:00:54 -08:00
8 changed files with 1048 additions and 28 deletions

View File

@@ -109,11 +109,25 @@ type Unknown struct {
// metadata and field mutatation.
type Unstructured struct {
TypeMeta `json:",inline"`
// Name is populated from metadata (if present) upon deserialization
Name string
// Object is a JSON compatible map with string, float, int, []interface{}, or map[string]interface{}
// children.
Object map[string]interface{}
}
// UnstructuredList allows lists that do not have Golang structs
// registered to be manipulated generically. This can be used to deal
// with the API lists from a plug-in.
type UnstructuredList struct {
TypeMeta `json:",inline"`
// Items is a list of unstructured objects.
Items []*Unstructured `json:"items"`
}
// VersionedObjects is used by Decoders to give callers a way to access all versions
// of an object during the decoding process.
type VersionedObjects struct {