MCPcopy
hub / github.com/kubernetes/kubernetes / Builder

Struct Builder

staging/src/k8s.io/cli-runtime/pkg/resource/builder.go:54–116  ·  view source on GitHub ↗

Builder provides convenience functions for taking arguments and parameters from the command line and converting them to a list of resources to iterate over using the Visitor interface.

Source from the content-addressed store, hash-verified

52// from the command line and converting them to a list of resources to iterate
53// over using the Visitor interface.
54type Builder struct {
55 categoryExpanderFn CategoryExpanderFunc
56
57 // mapper is set explicitly by resource builders
58 mapper *mapper
59
60 // clientConfigFn is a function to produce a client, *if* you need one
61 clientConfigFn ClientConfigFunc
62
63 restMapperFn RESTMapperFunc
64
65 // objectTyper is statically determinant per-command invocation based on your internal or unstructured choice
66 // it does not ever need to rely upon discovery.
67 objectTyper runtime.ObjectTyper
68
69 // codecFactory describes which codecs you want to use
70 negotiatedSerializer runtime.NegotiatedSerializer
71
72 // local indicates that we cannot make server calls
73 local bool
74
75 errs []error
76
77 paths []Visitor
78 stream bool
79 stdinInUse bool
80 dir bool
81
82 visitorConcurrency int
83
84 labelSelector *string
85 fieldSelector *string
86 selectAll bool
87 limitChunks int64
88 requestTransforms []RequestTransform
89
90 resources []string
91 subresource string
92
93 namespace string
94 allNamespace bool
95 names []string
96
97 resourceTuples []resourceTuple
98
99 defaultNamespace bool
100 requireNamespace bool
101
102 flatten bool
103 latest bool
104
105 requireObject bool
106
107 singleResourceType bool
108 continueOnError bool
109
110 singleItemImplied bool
111

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected