Documentation
¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type DiscoveryInterface
- func (_m *DiscoveryInterface) OpenAPISchema() (*openapi_v2.Document, error)
- func (_m *DiscoveryInterface) RESTClient() rest.Interface
- func (_m *DiscoveryInterface) ServerGroups() (*v1.APIGroupList, error)
- func (_m *DiscoveryInterface) ServerPreferredNamespacedResources() ([]*v1.APIResourceList, error)
- func (_m *DiscoveryInterface) ServerPreferredResources() ([]*v1.APIResourceList, error)
- func (_m *DiscoveryInterface) ServerResources() ([]*v1.APIResourceList, error)
- func (_m *DiscoveryInterface) ServerResourcesForGroupVersion(groupVersion string) (*v1.APIResourceList, error)
- func (_m *DiscoveryInterface) ServerVersion() (*version.Info, error)
- type Factory
- func (_m *Factory) ApproximatePodTemplateForObject(_a0 runtime.Object) (*core.PodTemplateSpec, error)
- func (_m *Factory) AttachablePodForObject(object runtime.Object, timeout time.Duration) (*core.Pod, error)
- func (_m *Factory) BareClientConfig() (*rest.Config, error)
- func (_m *Factory) BindExternalFlags(flags *pflag.FlagSet)
- func (_m *Factory) BindFlags(flags *pflag.FlagSet)
- func (_m *Factory) CanBeAutoscaled(kind schema.GroupKind) error
- func (_m *Factory) CanBeExposed(kind schema.GroupKind) error
- func (_m *Factory) CategoryExpander() categories.CategoryExpander
- func (_m *Factory) ClientConfig() (*rest.Config, error)
- func (_m *Factory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
- func (_m *Factory) ClientSet() (internalclientset.Interface, error)
- func (_m *Factory) Command(cmd *cobra.Command, showSecrets bool) string
- func (_m *Factory) DefaultNamespace() (string, bool, error)
- func (_m *Factory) DefaultResourceFilterFunc() kubectl.Filters
- func (_m *Factory) Describer(mapping *meta.RESTMapping) (printers.Describer, error)
- func (_m *Factory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (_m *Factory) EditorEnvs() []string
- func (_m *Factory) FlagSet() *pflag.FlagSet
- func (_m *Factory) Generators(cmdName string) map[string]kubectl.Generator
- func (_m *Factory) HistoryViewer(mapping *meta.RESTMapping) (kubectl.HistoryViewer, error)
- func (_m *Factory) KubernetesClientSet() (*kubernetes.Clientset, error)
- func (_m *Factory) LabelsForObject(object runtime.Object) (map[string]string, error)
- func (_m *Factory) LogsForObject(object runtime.Object, options runtime.Object, timeout time.Duration) (*rest.Request, error)
- func (_m *Factory) MapBasedSelectorForObject(object runtime.Object) (string, error)
- func (_m *Factory) NewBuilder() *resource.Builder
- func (_m *Factory) Object() (meta.RESTMapper, runtime.ObjectTyper)
- func (_m *Factory) OpenAPISchema() (openapi.Resources, error)
- func (_m *Factory) Pauser(info *resource.Info) ([]byte, error)
- func (_m *Factory) PluginLoader() plugins.PluginLoader
- func (_m *Factory) PluginRunner() plugins.PluginRunner
- func (_m *Factory) PortsForObject(object runtime.Object) ([]string, error)
- func (_m *Factory) ProtocolsForObject(object runtime.Object) (map[string]string, error)
- func (_m *Factory) RESTClient() (*rest.RESTClient, error)
- func (_m *Factory) Reaper(mapping *meta.RESTMapping) (kubectl.Reaper, error)
- func (_m *Factory) ResolveImage(imageName string) (string, error)
- func (_m *Factory) Resumer(info *resource.Info) ([]byte, error)
- func (_m *Factory) Rollbacker(mapping *meta.RESTMapping) (kubectl.Rollbacker, error)
- func (_m *Factory) Scaler(mapping *meta.RESTMapping) (kubectl.Scaler, error)
- func (_m *Factory) StatusViewer(mapping *meta.RESTMapping) (kubectl.StatusViewer, error)
- func (_m *Factory) SuggestedPodTemplateResources() []schema.GroupResource
- func (_m *Factory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
- func (_m *Factory) UpdatePodSpecForObject(obj runtime.Object, fn func(*v1.PodSpec) error) (bool, error)
- func (_m *Factory) Validator(validate bool) (validation.Schema, error)
- type ObjectInfo
- type ResourceClient
- func (_m *ResourceClient) Create() (*unstructured.Unstructured, error)
- func (_m *ResourceClient) Delete(options *v1.DeleteOptions) error
- func (_m *ResourceClient) Get(options v1.GetOptions) (*unstructured.Unstructured, error)
- func (_m *ResourceClient) Patch(pt types.PatchType, data []byte) (*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoveryInterface ¶
DiscoveryInterface is an autogenerated mock type for the DiscoveryInterface type
func (*DiscoveryInterface) OpenAPISchema ¶
func (_m *DiscoveryInterface) OpenAPISchema() (*openapi_v2.Document, error)
OpenAPISchema provides a mock function with given fields:
func (*DiscoveryInterface) RESTClient ¶
func (_m *DiscoveryInterface) RESTClient() rest.Interface
RESTClient provides a mock function with given fields:
func (*DiscoveryInterface) ServerGroups ¶
func (_m *DiscoveryInterface) ServerGroups() (*v1.APIGroupList, error)
ServerGroups provides a mock function with given fields:
func (*DiscoveryInterface) ServerPreferredNamespacedResources ¶
func (_m *DiscoveryInterface) ServerPreferredNamespacedResources() ([]*v1.APIResourceList, error)
ServerPreferredNamespacedResources provides a mock function with given fields:
func (*DiscoveryInterface) ServerPreferredResources ¶
func (_m *DiscoveryInterface) ServerPreferredResources() ([]*v1.APIResourceList, error)
ServerPreferredResources provides a mock function with given fields:
func (*DiscoveryInterface) ServerResources ¶
func (_m *DiscoveryInterface) ServerResources() ([]*v1.APIResourceList, error)
ServerResources provides a mock function with given fields:
func (*DiscoveryInterface) ServerResourcesForGroupVersion ¶
func (_m *DiscoveryInterface) ServerResourcesForGroupVersion(groupVersion string) (*v1.APIResourceList, error)
ServerResourcesForGroupVersion provides a mock function with given fields: groupVersion
func (*DiscoveryInterface) ServerVersion ¶
func (_m *DiscoveryInterface) ServerVersion() (*version.Info, error)
ServerVersion provides a mock function with given fields:
type Factory ¶
Factory is an autogenerated mock type for the Factory type
func (*Factory) ApproximatePodTemplateForObject ¶
func (_m *Factory) ApproximatePodTemplateForObject(_a0 runtime.Object) (*core.PodTemplateSpec, error)
ApproximatePodTemplateForObject provides a mock function with given fields: _a0
func (*Factory) AttachablePodForObject ¶
func (_m *Factory) AttachablePodForObject(object runtime.Object, timeout time.Duration) (*core.Pod, error)
AttachablePodForObject provides a mock function with given fields: object, timeout
func (*Factory) BareClientConfig ¶
BareClientConfig provides a mock function with given fields:
func (*Factory) BindExternalFlags ¶
BindExternalFlags provides a mock function with given fields: flags
func (*Factory) CanBeAutoscaled ¶
CanBeAutoscaled provides a mock function with given fields: kind
func (*Factory) CanBeExposed ¶
CanBeExposed provides a mock function with given fields: kind
func (*Factory) CategoryExpander ¶
func (_m *Factory) CategoryExpander() categories.CategoryExpander
CategoryExpander provides a mock function with given fields:
func (*Factory) ClientConfig ¶
ClientConfig provides a mock function with given fields:
func (*Factory) ClientForMapping ¶
func (_m *Factory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
ClientForMapping provides a mock function with given fields: mapping
func (*Factory) ClientSet ¶
func (_m *Factory) ClientSet() (internalclientset.Interface, error)
ClientSet provides a mock function with given fields:
func (*Factory) DefaultNamespace ¶
DefaultNamespace provides a mock function with given fields:
func (*Factory) DefaultResourceFilterFunc ¶
DefaultResourceFilterFunc provides a mock function with given fields:
func (*Factory) DiscoveryClient ¶
func (_m *Factory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
DiscoveryClient provides a mock function with given fields:
func (*Factory) EditorEnvs ¶
EditorEnvs provides a mock function with given fields:
func (*Factory) Generators ¶
Generators provides a mock function with given fields: cmdName
func (*Factory) HistoryViewer ¶
func (_m *Factory) HistoryViewer(mapping *meta.RESTMapping) (kubectl.HistoryViewer, error)
HistoryViewer provides a mock function with given fields: mapping
func (*Factory) KubernetesClientSet ¶
func (_m *Factory) KubernetesClientSet() (*kubernetes.Clientset, error)
KubernetesClientSet provides a mock function with given fields:
func (*Factory) LabelsForObject ¶
LabelsForObject provides a mock function with given fields: object
func (*Factory) LogsForObject ¶
func (_m *Factory) LogsForObject(object runtime.Object, options runtime.Object, timeout time.Duration) (*rest.Request, error)
LogsForObject provides a mock function with given fields: object, options, timeout
func (*Factory) MapBasedSelectorForObject ¶
MapBasedSelectorForObject provides a mock function with given fields: object
func (*Factory) NewBuilder ¶
NewBuilder provides a mock function with given fields:
func (*Factory) Object ¶
func (_m *Factory) Object() (meta.RESTMapper, runtime.ObjectTyper)
Object provides a mock function with given fields:
func (*Factory) OpenAPISchema ¶
OpenAPISchema provides a mock function with given fields:
func (*Factory) PluginLoader ¶
func (_m *Factory) PluginLoader() plugins.PluginLoader
PluginLoader provides a mock function with given fields:
func (*Factory) PluginRunner ¶
func (_m *Factory) PluginRunner() plugins.PluginRunner
PluginRunner provides a mock function with given fields:
func (*Factory) PortsForObject ¶
PortsForObject provides a mock function with given fields: object
func (*Factory) ProtocolsForObject ¶
ProtocolsForObject provides a mock function with given fields: object
func (*Factory) RESTClient ¶
func (_m *Factory) RESTClient() (*rest.RESTClient, error)
RESTClient provides a mock function with given fields:
func (*Factory) ResolveImage ¶
ResolveImage provides a mock function with given fields: imageName
func (*Factory) Rollbacker ¶
func (_m *Factory) Rollbacker(mapping *meta.RESTMapping) (kubectl.Rollbacker, error)
Rollbacker provides a mock function with given fields: mapping
func (*Factory) StatusViewer ¶
func (_m *Factory) StatusViewer(mapping *meta.RESTMapping) (kubectl.StatusViewer, error)
StatusViewer provides a mock function with given fields: mapping
func (*Factory) SuggestedPodTemplateResources ¶
func (_m *Factory) SuggestedPodTemplateResources() []schema.GroupResource
SuggestedPodTemplateResources provides a mock function with given fields:
func (*Factory) UnstructuredClientForMapping ¶
func (_m *Factory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
UnstructuredClientForMapping provides a mock function with given fields: mapping
type ObjectInfo ¶
ObjectInfo is an autogenerated mock type for the ObjectInfo type
func (*ObjectInfo) ResourceName ¶
func (_m *ObjectInfo) ResourceName(d discovery.ServerResourcesInterface, o runtime.Object) string
ResourceName provides a mock function with given fields: d, o
type ResourceClient ¶
ResourceClient is an autogenerated mock type for the ResourceClient type
func (*ResourceClient) Create ¶
func (_m *ResourceClient) Create() (*unstructured.Unstructured, error)
Create provides a mock function with given fields:
func (*ResourceClient) Delete ¶
func (_m *ResourceClient) Delete(options *v1.DeleteOptions) error
Delete provides a mock function with given fields: options
func (*ResourceClient) Get ¶
func (_m *ResourceClient) Get(options v1.GetOptions) (*unstructured.Unstructured, error)
Get provides a mock function with given fields: options
func (*ResourceClient) Patch ¶
func (_m *ResourceClient) Patch(pt types.PatchType, data []byte) (*unstructured.Unstructured, error)
Patch provides a mock function with given fields: pt, data