mocks

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryInterface

type DiscoveryInterface struct {
	mock.Mock
}

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 added in v0.12.0

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func (*Factory) ApproximatePodTemplateForObject added in v0.12.0

func (_m *Factory) ApproximatePodTemplateForObject(_a0 runtime.Object) (*core.PodTemplateSpec, error)

ApproximatePodTemplateForObject provides a mock function with given fields: _a0

func (*Factory) AttachablePodForObject added in v0.12.0

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 added in v0.12.0

func (_m *Factory) BareClientConfig() (*rest.Config, error)

BareClientConfig provides a mock function with given fields:

func (*Factory) BindExternalFlags added in v0.12.0

func (_m *Factory) BindExternalFlags(flags *pflag.FlagSet)

BindExternalFlags provides a mock function with given fields: flags

func (*Factory) BindFlags added in v0.12.0

func (_m *Factory) BindFlags(flags *pflag.FlagSet)

BindFlags provides a mock function with given fields: flags

func (*Factory) CanBeAutoscaled added in v0.12.0

func (_m *Factory) CanBeAutoscaled(kind schema.GroupKind) error

CanBeAutoscaled provides a mock function with given fields: kind

func (*Factory) CanBeExposed added in v0.12.0

func (_m *Factory) CanBeExposed(kind schema.GroupKind) error

CanBeExposed provides a mock function with given fields: kind

func (*Factory) CategoryExpander added in v0.12.0

func (_m *Factory) CategoryExpander() categories.CategoryExpander

CategoryExpander provides a mock function with given fields:

func (*Factory) ClientConfig added in v0.12.0

func (_m *Factory) ClientConfig() (*rest.Config, error)

ClientConfig provides a mock function with given fields:

func (*Factory) ClientForMapping added in v0.12.0

func (_m *Factory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)

ClientForMapping provides a mock function with given fields: mapping

func (*Factory) ClientSet added in v0.12.0

func (_m *Factory) ClientSet() (internalclientset.Interface, error)

ClientSet provides a mock function with given fields:

func (*Factory) Command added in v0.12.0

func (_m *Factory) Command(cmd *cobra.Command, showSecrets bool) string

Command provides a mock function with given fields: cmd, showSecrets

func (*Factory) DefaultNamespace added in v0.12.0

func (_m *Factory) DefaultNamespace() (string, bool, error)

DefaultNamespace provides a mock function with given fields:

func (*Factory) DefaultResourceFilterFunc added in v0.12.0

func (_m *Factory) DefaultResourceFilterFunc() kubectl.Filters

DefaultResourceFilterFunc provides a mock function with given fields:

func (*Factory) Describer added in v0.12.0

func (_m *Factory) Describer(mapping *meta.RESTMapping) (printers.Describer, error)

Describer provides a mock function with given fields: mapping

func (*Factory) DiscoveryClient added in v0.12.0

func (_m *Factory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)

DiscoveryClient provides a mock function with given fields:

func (*Factory) EditorEnvs added in v0.12.0

func (_m *Factory) EditorEnvs() []string

EditorEnvs provides a mock function with given fields:

func (*Factory) FlagSet added in v0.12.0

func (_m *Factory) FlagSet() *pflag.FlagSet

FlagSet provides a mock function with given fields:

func (*Factory) Generators added in v0.12.0

func (_m *Factory) Generators(cmdName string) map[string]kubectl.Generator

Generators provides a mock function with given fields: cmdName

func (*Factory) HistoryViewer added in v0.12.0

func (_m *Factory) HistoryViewer(mapping *meta.RESTMapping) (kubectl.HistoryViewer, error)

HistoryViewer provides a mock function with given fields: mapping

func (*Factory) KubernetesClientSet added in v0.12.0

func (_m *Factory) KubernetesClientSet() (*kubernetes.Clientset, error)

KubernetesClientSet provides a mock function with given fields:

func (*Factory) LabelsForObject added in v0.12.0

func (_m *Factory) LabelsForObject(object runtime.Object) (map[string]string, error)

LabelsForObject provides a mock function with given fields: object

func (*Factory) LogsForObject added in v0.12.0

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 added in v0.12.0

func (_m *Factory) MapBasedSelectorForObject(object runtime.Object) (string, error)

MapBasedSelectorForObject provides a mock function with given fields: object

func (*Factory) NewBuilder added in v0.12.0

func (_m *Factory) NewBuilder() *resource.Builder

NewBuilder provides a mock function with given fields:

func (*Factory) Object added in v0.12.0

func (_m *Factory) Object() (meta.RESTMapper, runtime.ObjectTyper)

Object provides a mock function with given fields:

func (*Factory) OpenAPISchema added in v0.12.0

func (_m *Factory) OpenAPISchema() (openapi.Resources, error)

OpenAPISchema provides a mock function with given fields:

func (*Factory) Pauser added in v0.12.0

func (_m *Factory) Pauser(info *resource.Info) ([]byte, error)

Pauser provides a mock function with given fields: info

func (*Factory) PluginLoader added in v0.12.0

func (_m *Factory) PluginLoader() plugins.PluginLoader

PluginLoader provides a mock function with given fields:

func (*Factory) PluginRunner added in v0.12.0

func (_m *Factory) PluginRunner() plugins.PluginRunner

PluginRunner provides a mock function with given fields:

func (*Factory) PortsForObject added in v0.12.0

func (_m *Factory) PortsForObject(object runtime.Object) ([]string, error)

PortsForObject provides a mock function with given fields: object

func (*Factory) ProtocolsForObject added in v0.12.0

func (_m *Factory) ProtocolsForObject(object runtime.Object) (map[string]string, error)

ProtocolsForObject provides a mock function with given fields: object

func (*Factory) RESTClient added in v0.12.0

func (_m *Factory) RESTClient() (*rest.RESTClient, error)

RESTClient provides a mock function with given fields:

func (*Factory) Reaper added in v0.12.0

func (_m *Factory) Reaper(mapping *meta.RESTMapping) (kubectl.Reaper, error)

Reaper provides a mock function with given fields: mapping

func (*Factory) ResolveImage added in v0.12.0

func (_m *Factory) ResolveImage(imageName string) (string, error)

ResolveImage provides a mock function with given fields: imageName

func (*Factory) Resumer added in v0.12.0

func (_m *Factory) Resumer(info *resource.Info) ([]byte, error)

Resumer provides a mock function with given fields: info

func (*Factory) Rollbacker added in v0.12.0

func (_m *Factory) Rollbacker(mapping *meta.RESTMapping) (kubectl.Rollbacker, error)

Rollbacker provides a mock function with given fields: mapping

func (*Factory) Scaler added in v0.12.0

func (_m *Factory) Scaler(mapping *meta.RESTMapping) (kubectl.Scaler, error)

Scaler provides a mock function with given fields: mapping

func (*Factory) StatusViewer added in v0.12.0

func (_m *Factory) StatusViewer(mapping *meta.RESTMapping) (kubectl.StatusViewer, error)

StatusViewer provides a mock function with given fields: mapping

func (*Factory) SuggestedPodTemplateResources added in v0.12.0

func (_m *Factory) SuggestedPodTemplateResources() []schema.GroupResource

SuggestedPodTemplateResources provides a mock function with given fields:

func (*Factory) UnstructuredClientForMapping added in v0.12.0

func (_m *Factory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)

UnstructuredClientForMapping provides a mock function with given fields: mapping

func (*Factory) UpdatePodSpecForObject added in v0.12.0

func (_m *Factory) UpdatePodSpecForObject(obj runtime.Object, fn func(*v1.PodSpec) error) (bool, error)

UpdatePodSpecForObject provides a mock function with given fields: obj, fn

func (*Factory) Validator added in v0.12.0

func (_m *Factory) Validator(validate bool) (validation.Schema, error)

Validator provides a mock function with given fields: validate

type ObjectInfo

type ObjectInfo struct {
	mock.Mock
}

ObjectInfo is an autogenerated mock type for the ObjectInfo type

func (*ObjectInfo) ResourceName

ResourceName provides a mock function with given fields: d, o

type ResourceClient

type ResourceClient struct {
	mock.Mock
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL