Пример #1
0
func (c *FakeEvents) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector {
	action := core.GenericActionImpl{}
	action.Verb = "get-field-selector"
	action.Resource = "events"

	c.Fake.Invokes(action, nil)
	return fields.Everything()
}
Пример #2
0
func (c *FakePods) GetLogs(name string, opts *api.PodLogOptions) *client.Request {
	action := core.GenericActionImpl{}
	action.Verb = "get"
	action.Namespace = c.ns
	action.Resource = "pod"
	action.Subresource = "logs"
	action.Value = opts

	_, _ = c.Fake.Invokes(action, &api.Pod{})
	return &client.Request{}
}