mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Merge pull request #20351 from krousey/dynamic_client
Auto commit by PR queue bot
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user