MCPcopy
hub / github.com/kubernetes/client-go / NewCreateSubresourceAction

Function NewCreateSubresourceAction

testing/actions.go:125–135  ·  view source on GitHub ↗
(resource schema.GroupVersionResource, name, subresource, namespace string, object runtime.Object)

Source from the content-addressed store, hash-verified

123}
124
125func NewCreateSubresourceAction(resource schema.GroupVersionResource, name, subresource, namespace string, object runtime.Object) CreateActionImpl {
126 action := CreateActionImpl{}
127 action.Verb = "create"
128 action.Resource = resource
129 action.Namespace = namespace
130 action.Subresource = subresource
131 action.Name = name
132 action.Object = object
133
134 return action
135}
136
137func NewRootUpdateAction(resource schema.GroupVersionResource, object runtime.Object) UpdateActionImpl {
138 action := UpdateActionImpl{}

Callers 1

CreateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected