client-go: k8s.io/client-go/kubernetes/typed/core/v1/fake Index | Files

package fake

import "k8s.io/client-go/kubernetes/typed/core/v1/fake"

Package fake has the automatically generated clients.

Index

Package Files

doc.go fake_componentstatus.go fake_configmap.go fake_core_client.go fake_endpoints.go fake_event.go fake_event_expansion.go fake_limitrange.go fake_namespace.go fake_namespace_expansion.go fake_node.go fake_node_expansion.go fake_persistentvolume.go fake_persistentvolumeclaim.go fake_pod.go fake_pod_expansion.go fake_podtemplate.go fake_replicationcontroller.go fake_resourcequota.go fake_secret.go fake_service.go fake_service_expansion.go fake_serviceaccount.go

type FakeComponentStatuses Uses

type FakeComponentStatuses struct {
    Fake *FakeCoreV1
}

FakeComponentStatuses implements ComponentStatusInterface

func (*FakeComponentStatuses) Create Uses

func (c *FakeComponentStatuses) Create(componentStatus *core_v1.ComponentStatus) (result *core_v1.ComponentStatus, err error)

Create takes the representation of a componentStatus and creates it. Returns the server's representation of the componentStatus, and an error, if there is any.

func (*FakeComponentStatuses) Delete Uses

func (c *FakeComponentStatuses) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the componentStatus and deletes it. Returns an error if one occurs.

func (*FakeComponentStatuses) DeleteCollection Uses

func (c *FakeComponentStatuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeComponentStatuses) Get Uses

func (c *FakeComponentStatuses) Get(name string, options v1.GetOptions) (result *core_v1.ComponentStatus, err error)

Get takes name of the componentStatus, and returns the corresponding componentStatus object, and an error if there is any.

func (*FakeComponentStatuses) List Uses

func (c *FakeComponentStatuses) List(opts v1.ListOptions) (result *core_v1.ComponentStatusList, err error)

List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors.

func (*FakeComponentStatuses) Patch Uses

func (c *FakeComponentStatuses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ComponentStatus, err error)

Patch applies the patch and returns the patched componentStatus.

func (*FakeComponentStatuses) Update Uses

func (c *FakeComponentStatuses) Update(componentStatus *core_v1.ComponentStatus) (result *core_v1.ComponentStatus, err error)

Update takes the representation of a componentStatus and updates it. Returns the server's representation of the componentStatus, and an error, if there is any.

func (*FakeComponentStatuses) Watch Uses

func (c *FakeComponentStatuses) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested componentStatuses.

type FakeConfigMaps Uses

type FakeConfigMaps struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create Uses

func (c *FakeConfigMaps) Create(configMap *core_v1.ConfigMap) (result *core_v1.ConfigMap, err error)

Create takes the representation of a configMap and creates it. Returns the server's representation of the configMap, and an error, if there is any.

func (*FakeConfigMaps) Delete Uses

func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the configMap and deletes it. Returns an error if one occurs.

func (*FakeConfigMaps) DeleteCollection Uses

func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigMaps) Get Uses

func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *core_v1.ConfigMap, err error)

Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any.

func (*FakeConfigMaps) List Uses

func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *core_v1.ConfigMapList, err error)

List takes label and field selectors, and returns the list of ConfigMaps that match those selectors.

func (*FakeConfigMaps) Patch Uses

func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ConfigMap, err error)

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update Uses

func (c *FakeConfigMaps) Update(configMap *core_v1.ConfigMap) (result *core_v1.ConfigMap, err error)

Update takes the representation of a configMap and updates it. Returns the server's representation of the configMap, and an error, if there is any.

func (*FakeConfigMaps) Watch Uses

func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested configMaps.

type FakeCoreV1 Uses

type FakeCoreV1 struct {
    *testing.Fake
}

func (*FakeCoreV1) ComponentStatuses Uses

func (c *FakeCoreV1) ComponentStatuses() v1.ComponentStatusInterface

func (*FakeCoreV1) ConfigMaps Uses

func (c *FakeCoreV1) ConfigMaps(namespace string) v1.ConfigMapInterface

func (*FakeCoreV1) Endpoints Uses

func (c *FakeCoreV1) Endpoints(namespace string) v1.EndpointsInterface

func (*FakeCoreV1) Events Uses

func (c *FakeCoreV1) Events(namespace string) v1.EventInterface

func (*FakeCoreV1) LimitRanges Uses

func (c *FakeCoreV1) LimitRanges(namespace string) v1.LimitRangeInterface

func (*FakeCoreV1) Namespaces Uses

func (c *FakeCoreV1) Namespaces() v1.NamespaceInterface

func (*FakeCoreV1) Nodes Uses

func (c *FakeCoreV1) Nodes() v1.NodeInterface

func (*FakeCoreV1) PersistentVolumeClaims Uses

func (c *FakeCoreV1) PersistentVolumeClaims(namespace string) v1.PersistentVolumeClaimInterface

func (*FakeCoreV1) PersistentVolumes Uses

func (c *FakeCoreV1) PersistentVolumes() v1.PersistentVolumeInterface

func (*FakeCoreV1) PodTemplates Uses

func (c *FakeCoreV1) PodTemplates(namespace string) v1.PodTemplateInterface

func (*FakeCoreV1) Pods Uses

func (c *FakeCoreV1) Pods(namespace string) v1.PodInterface

func (*FakeCoreV1) RESTClient Uses

func (c *FakeCoreV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeCoreV1) ReplicationControllers Uses

func (c *FakeCoreV1) ReplicationControllers(namespace string) v1.ReplicationControllerInterface

func (*FakeCoreV1) ResourceQuotas Uses

func (c *FakeCoreV1) ResourceQuotas(namespace string) v1.ResourceQuotaInterface

func (*FakeCoreV1) Secrets Uses

func (c *FakeCoreV1) Secrets(namespace string) v1.SecretInterface

func (*FakeCoreV1) ServiceAccounts Uses

func (c *FakeCoreV1) ServiceAccounts(namespace string) v1.ServiceAccountInterface

func (*FakeCoreV1) Services Uses

func (c *FakeCoreV1) Services(namespace string) v1.ServiceInterface

type FakeEndpoints Uses

type FakeEndpoints struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeEndpoints implements EndpointsInterface

func (*FakeEndpoints) Create Uses

func (c *FakeEndpoints) Create(endpoints *core_v1.Endpoints) (result *core_v1.Endpoints, err error)

Create takes the representation of a endpoints and creates it. Returns the server's representation of the endpoints, and an error, if there is any.

func (*FakeEndpoints) Delete Uses

func (c *FakeEndpoints) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the endpoints and deletes it. Returns an error if one occurs.

func (*FakeEndpoints) DeleteCollection Uses

func (c *FakeEndpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEndpoints) Get Uses

func (c *FakeEndpoints) Get(name string, options v1.GetOptions) (result *core_v1.Endpoints, err error)

Get takes name of the endpoints, and returns the corresponding endpoints object, and an error if there is any.

func (*FakeEndpoints) List Uses

func (c *FakeEndpoints) List(opts v1.ListOptions) (result *core_v1.EndpointsList, err error)

List takes label and field selectors, and returns the list of Endpoints that match those selectors.

func (*FakeEndpoints) Patch Uses

func (c *FakeEndpoints) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Endpoints, err error)

Patch applies the patch and returns the patched endpoints.

func (*FakeEndpoints) Update Uses

func (c *FakeEndpoints) Update(endpoints *core_v1.Endpoints) (result *core_v1.Endpoints, err error)

Update takes the representation of a endpoints and updates it. Returns the server's representation of the endpoints, and an error, if there is any.

func (*FakeEndpoints) Watch Uses

func (c *FakeEndpoints) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested endpoints.

type FakeEvents Uses

type FakeEvents struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeEvents implements EventInterface

func (*FakeEvents) Create Uses

func (c *FakeEvents) Create(event *core_v1.Event) (result *core_v1.Event, err error)

Create takes the representation of a event and creates it. Returns the server's representation of the event, and an error, if there is any.

func (*FakeEvents) CreateWithEventNamespace Uses

func (c *FakeEvents) CreateWithEventNamespace(event *v1.Event) (*v1.Event, error)

func (*FakeEvents) Delete Uses

func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the event and deletes it. Returns an error if one occurs.

func (*FakeEvents) DeleteCollection Uses

func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEvents) Get Uses

func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *core_v1.Event, err error)

Get takes name of the event, and returns the corresponding event object, and an error if there is any.

func (*FakeEvents) GetFieldSelector Uses

func (c *FakeEvents) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector

func (*FakeEvents) List Uses

func (c *FakeEvents) List(opts v1.ListOptions) (result *core_v1.EventList, err error)

List takes label and field selectors, and returns the list of Events that match those selectors.

func (*FakeEvents) Patch Uses

func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Event, err error)

Patch applies the patch and returns the patched event.

func (*FakeEvents) PatchWithEventNamespace Uses

func (c *FakeEvents) PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.Event, error)

PatchWithEventNamespace patches an existing event. Returns the copy of the event the server returns, or an error.

func (*FakeEvents) Search Uses

func (c *FakeEvents) Search(scheme *runtime.Scheme, objOrRef runtime.Object) (*v1.EventList, error)

Search returns a list of events matching the specified object.

func (*FakeEvents) Update Uses

func (c *FakeEvents) Update(event *core_v1.Event) (result *core_v1.Event, err error)

Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any.

func (*FakeEvents) UpdateWithEventNamespace Uses

func (c *FakeEvents) UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error)

Update replaces an existing event. Returns the copy of the event the server returns, or an error.

func (*FakeEvents) Watch Uses

func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested events.

type FakeLimitRanges Uses

type FakeLimitRanges struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeLimitRanges implements LimitRangeInterface

func (*FakeLimitRanges) Create Uses

func (c *FakeLimitRanges) Create(limitRange *core_v1.LimitRange) (result *core_v1.LimitRange, err error)

Create takes the representation of a limitRange and creates it. Returns the server's representation of the limitRange, and an error, if there is any.

func (*FakeLimitRanges) Delete Uses

func (c *FakeLimitRanges) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the limitRange and deletes it. Returns an error if one occurs.

func (*FakeLimitRanges) DeleteCollection Uses

func (c *FakeLimitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeLimitRanges) Get Uses

func (c *FakeLimitRanges) Get(name string, options v1.GetOptions) (result *core_v1.LimitRange, err error)

Get takes name of the limitRange, and returns the corresponding limitRange object, and an error if there is any.

func (*FakeLimitRanges) List Uses

func (c *FakeLimitRanges) List(opts v1.ListOptions) (result *core_v1.LimitRangeList, err error)

List takes label and field selectors, and returns the list of LimitRanges that match those selectors.

func (*FakeLimitRanges) Patch Uses

func (c *FakeLimitRanges) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.LimitRange, err error)

Patch applies the patch and returns the patched limitRange.

func (*FakeLimitRanges) Update Uses

func (c *FakeLimitRanges) Update(limitRange *core_v1.LimitRange) (result *core_v1.LimitRange, err error)

Update takes the representation of a limitRange and updates it. Returns the server's representation of the limitRange, and an error, if there is any.

func (*FakeLimitRanges) Watch Uses

func (c *FakeLimitRanges) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested limitRanges.

type FakeNamespaces Uses

type FakeNamespaces struct {
    Fake *FakeCoreV1
}

FakeNamespaces implements NamespaceInterface

func (*FakeNamespaces) Create Uses

func (c *FakeNamespaces) Create(namespace *core_v1.Namespace) (result *core_v1.Namespace, err error)

Create takes the representation of a namespace and creates it. Returns the server's representation of the namespace, and an error, if there is any.

func (*FakeNamespaces) Delete Uses

func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the namespace and deletes it. Returns an error if one occurs.

func (*FakeNamespaces) DeleteCollection Uses

func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNamespaces) Finalize Uses

func (c *FakeNamespaces) Finalize(namespace *v1.Namespace) (*v1.Namespace, error)

func (*FakeNamespaces) Get Uses

func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *core_v1.Namespace, err error)

Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any.

func (*FakeNamespaces) List Uses

func (c *FakeNamespaces) List(opts v1.ListOptions) (result *core_v1.NamespaceList, err error)

List takes label and field selectors, and returns the list of Namespaces that match those selectors.

func (*FakeNamespaces) Patch Uses

func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Namespace, err error)

Patch applies the patch and returns the patched namespace.

func (*FakeNamespaces) Update Uses

func (c *FakeNamespaces) Update(namespace *core_v1.Namespace) (result *core_v1.Namespace, err error)

Update takes the representation of a namespace and updates it. Returns the server's representation of the namespace, and an error, if there is any.

func (*FakeNamespaces) UpdateStatus Uses

func (c *FakeNamespaces) UpdateStatus(namespace *core_v1.Namespace) (*core_v1.Namespace, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNamespaces) Watch Uses

func (c *FakeNamespaces) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested namespaces.

type FakeNodes Uses

type FakeNodes struct {
    Fake *FakeCoreV1
}

FakeNodes implements NodeInterface

func (*FakeNodes) Create Uses

func (c *FakeNodes) Create(node *core_v1.Node) (result *core_v1.Node, err error)

Create takes the representation of a node and creates it. Returns the server's representation of the node, and an error, if there is any.

func (*FakeNodes) Delete Uses

func (c *FakeNodes) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the node and deletes it. Returns an error if one occurs.

func (*FakeNodes) DeleteCollection Uses

func (c *FakeNodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNodes) Get Uses

func (c *FakeNodes) Get(name string, options v1.GetOptions) (result *core_v1.Node, err error)

Get takes name of the node, and returns the corresponding node object, and an error if there is any.

func (*FakeNodes) List Uses

func (c *FakeNodes) List(opts v1.ListOptions) (result *core_v1.NodeList, err error)

List takes label and field selectors, and returns the list of Nodes that match those selectors.

func (*FakeNodes) Patch Uses

func (c *FakeNodes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Node, err error)

Patch applies the patch and returns the patched node.

func (*FakeNodes) PatchStatus Uses

func (c *FakeNodes) PatchStatus(nodeName string, data []byte) (*v1.Node, error)

func (*FakeNodes) Update Uses

func (c *FakeNodes) Update(node *core_v1.Node) (result *core_v1.Node, err error)

Update takes the representation of a node and updates it. Returns the server's representation of the node, and an error, if there is any.

func (*FakeNodes) UpdateStatus Uses

func (c *FakeNodes) UpdateStatus(node *core_v1.Node) (*core_v1.Node, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNodes) Watch Uses

func (c *FakeNodes) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested nodes.

type FakePersistentVolumeClaims Uses

type FakePersistentVolumeClaims struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakePersistentVolumeClaims implements PersistentVolumeClaimInterface

func (*FakePersistentVolumeClaims) Create Uses

func (c *FakePersistentVolumeClaims) Create(persistentVolumeClaim *core_v1.PersistentVolumeClaim) (result *core_v1.PersistentVolumeClaim, err error)

Create takes the representation of a persistentVolumeClaim and creates it. Returns the server's representation of the persistentVolumeClaim, and an error, if there is any.

func (*FakePersistentVolumeClaims) Delete Uses

func (c *FakePersistentVolumeClaims) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the persistentVolumeClaim and deletes it. Returns an error if one occurs.

func (*FakePersistentVolumeClaims) DeleteCollection Uses

func (c *FakePersistentVolumeClaims) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePersistentVolumeClaims) Get Uses

func (c *FakePersistentVolumeClaims) Get(name string, options v1.GetOptions) (result *core_v1.PersistentVolumeClaim, err error)

Get takes name of the persistentVolumeClaim, and returns the corresponding persistentVolumeClaim object, and an error if there is any.

func (*FakePersistentVolumeClaims) List Uses

func (c *FakePersistentVolumeClaims) List(opts v1.ListOptions) (result *core_v1.PersistentVolumeClaimList, err error)

List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors.

func (*FakePersistentVolumeClaims) Patch Uses

func (c *FakePersistentVolumeClaims) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.PersistentVolumeClaim, err error)

Patch applies the patch and returns the patched persistentVolumeClaim.

func (*FakePersistentVolumeClaims) Update Uses

func (c *FakePersistentVolumeClaims) Update(persistentVolumeClaim *core_v1.PersistentVolumeClaim) (result *core_v1.PersistentVolumeClaim, err error)

Update takes the representation of a persistentVolumeClaim and updates it. Returns the server's representation of the persistentVolumeClaim, and an error, if there is any.

func (*FakePersistentVolumeClaims) UpdateStatus Uses

func (c *FakePersistentVolumeClaims) UpdateStatus(persistentVolumeClaim *core_v1.PersistentVolumeClaim) (*core_v1.PersistentVolumeClaim, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePersistentVolumeClaims) Watch Uses

func (c *FakePersistentVolumeClaims) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested persistentVolumeClaims.

type FakePersistentVolumes Uses

type FakePersistentVolumes struct {
    Fake *FakeCoreV1
}

FakePersistentVolumes implements PersistentVolumeInterface

func (*FakePersistentVolumes) Create Uses

func (c *FakePersistentVolumes) Create(persistentVolume *core_v1.PersistentVolume) (result *core_v1.PersistentVolume, err error)

Create takes the representation of a persistentVolume and creates it. Returns the server's representation of the persistentVolume, and an error, if there is any.

func (*FakePersistentVolumes) Delete Uses

func (c *FakePersistentVolumes) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the persistentVolume and deletes it. Returns an error if one occurs.

func (*FakePersistentVolumes) DeleteCollection Uses

func (c *FakePersistentVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePersistentVolumes) Get Uses

func (c *FakePersistentVolumes) Get(name string, options v1.GetOptions) (result *core_v1.PersistentVolume, err error)

Get takes name of the persistentVolume, and returns the corresponding persistentVolume object, and an error if there is any.

func (*FakePersistentVolumes) List Uses

func (c *FakePersistentVolumes) List(opts v1.ListOptions) (result *core_v1.PersistentVolumeList, err error)

List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors.

func (*FakePersistentVolumes) Patch Uses

func (c *FakePersistentVolumes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.PersistentVolume, err error)

Patch applies the patch and returns the patched persistentVolume.

func (*FakePersistentVolumes) Update Uses

func (c *FakePersistentVolumes) Update(persistentVolume *core_v1.PersistentVolume) (result *core_v1.PersistentVolume, err error)

Update takes the representation of a persistentVolume and updates it. Returns the server's representation of the persistentVolume, and an error, if there is any.

func (*FakePersistentVolumes) UpdateStatus Uses

func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *core_v1.PersistentVolume) (*core_v1.PersistentVolume, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePersistentVolumes) Watch Uses

func (c *FakePersistentVolumes) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested persistentVolumes.

type FakePodTemplates Uses

type FakePodTemplates struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakePodTemplates implements PodTemplateInterface

func (*FakePodTemplates) Create Uses

func (c *FakePodTemplates) Create(podTemplate *core_v1.PodTemplate) (result *core_v1.PodTemplate, err error)

Create takes the representation of a podTemplate and creates it. Returns the server's representation of the podTemplate, and an error, if there is any.

func (*FakePodTemplates) Delete Uses

func (c *FakePodTemplates) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the podTemplate and deletes it. Returns an error if one occurs.

func (*FakePodTemplates) DeleteCollection Uses

func (c *FakePodTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePodTemplates) Get Uses

func (c *FakePodTemplates) Get(name string, options v1.GetOptions) (result *core_v1.PodTemplate, err error)

Get takes name of the podTemplate, and returns the corresponding podTemplate object, and an error if there is any.

func (*FakePodTemplates) List Uses

func (c *FakePodTemplates) List(opts v1.ListOptions) (result *core_v1.PodTemplateList, err error)

List takes label and field selectors, and returns the list of PodTemplates that match those selectors.

func (*FakePodTemplates) Patch Uses

func (c *FakePodTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.PodTemplate, err error)

Patch applies the patch and returns the patched podTemplate.

func (*FakePodTemplates) Update Uses

func (c *FakePodTemplates) Update(podTemplate *core_v1.PodTemplate) (result *core_v1.PodTemplate, err error)

Update takes the representation of a podTemplate and updates it. Returns the server's representation of the podTemplate, and an error, if there is any.

func (*FakePodTemplates) Watch Uses

func (c *FakePodTemplates) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested podTemplates.

type FakePods Uses

type FakePods struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakePods implements PodInterface

func (*FakePods) Bind Uses

func (c *FakePods) Bind(binding *v1.Binding) error

func (*FakePods) Create Uses

func (c *FakePods) Create(pod *core_v1.Pod) (result *core_v1.Pod, err error)

Create takes the representation of a pod and creates it. Returns the server's representation of the pod, and an error, if there is any.

func (*FakePods) Delete Uses

func (c *FakePods) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the pod and deletes it. Returns an error if one occurs.

func (*FakePods) DeleteCollection Uses

func (c *FakePods) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePods) Evict Uses

func (c *FakePods) Evict(eviction *policy.Eviction) error

func (*FakePods) Get Uses

func (c *FakePods) Get(name string, options v1.GetOptions) (result *core_v1.Pod, err error)

Get takes name of the pod, and returns the corresponding pod object, and an error if there is any.

func (*FakePods) GetLogs Uses

func (c *FakePods) GetLogs(name string, opts *v1.PodLogOptions) *restclient.Request

func (*FakePods) List Uses

func (c *FakePods) List(opts v1.ListOptions) (result *core_v1.PodList, err error)

List takes label and field selectors, and returns the list of Pods that match those selectors.

func (*FakePods) Patch Uses

func (c *FakePods) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Pod, err error)

Patch applies the patch and returns the patched pod.

func (*FakePods) Update Uses

func (c *FakePods) Update(pod *core_v1.Pod) (result *core_v1.Pod, err error)

Update takes the representation of a pod and updates it. Returns the server's representation of the pod, and an error, if there is any.

func (*FakePods) UpdateStatus Uses

func (c *FakePods) UpdateStatus(pod *core_v1.Pod) (*core_v1.Pod, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePods) Watch Uses

func (c *FakePods) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested pods.

type FakeReplicationControllers Uses

type FakeReplicationControllers struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeReplicationControllers implements ReplicationControllerInterface

func (*FakeReplicationControllers) Create Uses

func (c *FakeReplicationControllers) Create(replicationController *core_v1.ReplicationController) (result *core_v1.ReplicationController, err error)

Create takes the representation of a replicationController and creates it. Returns the server's representation of the replicationController, and an error, if there is any.

func (*FakeReplicationControllers) Delete Uses

func (c *FakeReplicationControllers) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the replicationController and deletes it. Returns an error if one occurs.

func (*FakeReplicationControllers) DeleteCollection Uses

func (c *FakeReplicationControllers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeReplicationControllers) Get Uses

func (c *FakeReplicationControllers) Get(name string, options v1.GetOptions) (result *core_v1.ReplicationController, err error)

Get takes name of the replicationController, and returns the corresponding replicationController object, and an error if there is any.

func (*FakeReplicationControllers) GetScale Uses

func (c *FakeReplicationControllers) GetScale(replicationControllerName string, options v1.GetOptions) (result *v1beta1.Scale, err error)

GetScale takes name of the replicationController, and returns the corresponding scale object, and an error if there is any.

func (*FakeReplicationControllers) List Uses

func (c *FakeReplicationControllers) List(opts v1.ListOptions) (result *core_v1.ReplicationControllerList, err error)

List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors.

func (*FakeReplicationControllers) Patch Uses

func (c *FakeReplicationControllers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ReplicationController, err error)

Patch applies the patch and returns the patched replicationController.

func (*FakeReplicationControllers) Update Uses

func (c *FakeReplicationControllers) Update(replicationController *core_v1.ReplicationController) (result *core_v1.ReplicationController, err error)

Update takes the representation of a replicationController and updates it. Returns the server's representation of the replicationController, and an error, if there is any.

func (*FakeReplicationControllers) UpdateScale Uses

func (c *FakeReplicationControllers) UpdateScale(replicationControllerName string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error)

UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.

func (*FakeReplicationControllers) UpdateStatus Uses

func (c *FakeReplicationControllers) UpdateStatus(replicationController *core_v1.ReplicationController) (*core_v1.ReplicationController, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeReplicationControllers) Watch Uses

func (c *FakeReplicationControllers) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested replicationControllers.

type FakeResourceQuotas Uses

type FakeResourceQuotas struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeResourceQuotas implements ResourceQuotaInterface

func (*FakeResourceQuotas) Create Uses

func (c *FakeResourceQuotas) Create(resourceQuota *core_v1.ResourceQuota) (result *core_v1.ResourceQuota, err error)

Create takes the representation of a resourceQuota and creates it. Returns the server's representation of the resourceQuota, and an error, if there is any.

func (*FakeResourceQuotas) Delete Uses

func (c *FakeResourceQuotas) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the resourceQuota and deletes it. Returns an error if one occurs.

func (*FakeResourceQuotas) DeleteCollection Uses

func (c *FakeResourceQuotas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeResourceQuotas) Get Uses

func (c *FakeResourceQuotas) Get(name string, options v1.GetOptions) (result *core_v1.ResourceQuota, err error)

Get takes name of the resourceQuota, and returns the corresponding resourceQuota object, and an error if there is any.

func (*FakeResourceQuotas) List Uses

func (c *FakeResourceQuotas) List(opts v1.ListOptions) (result *core_v1.ResourceQuotaList, err error)

List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors.

func (*FakeResourceQuotas) Patch Uses

func (c *FakeResourceQuotas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ResourceQuota, err error)

Patch applies the patch and returns the patched resourceQuota.

func (*FakeResourceQuotas) Update Uses

func (c *FakeResourceQuotas) Update(resourceQuota *core_v1.ResourceQuota) (result *core_v1.ResourceQuota, err error)

Update takes the representation of a resourceQuota and updates it. Returns the server's representation of the resourceQuota, and an error, if there is any.

func (*FakeResourceQuotas) UpdateStatus Uses

func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *core_v1.ResourceQuota) (*core_v1.ResourceQuota, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeResourceQuotas) Watch Uses

func (c *FakeResourceQuotas) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested resourceQuotas.

type FakeSecrets Uses

type FakeSecrets struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeSecrets implements SecretInterface

func (*FakeSecrets) Create Uses

func (c *FakeSecrets) Create(secret *core_v1.Secret) (result *core_v1.Secret, err error)

Create takes the representation of a secret and creates it. Returns the server's representation of the secret, and an error, if there is any.

func (*FakeSecrets) Delete Uses

func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the secret and deletes it. Returns an error if one occurs.

func (*FakeSecrets) DeleteCollection Uses

func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSecrets) Get Uses

func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *core_v1.Secret, err error)

Get takes name of the secret, and returns the corresponding secret object, and an error if there is any.

func (*FakeSecrets) List Uses

func (c *FakeSecrets) List(opts v1.ListOptions) (result *core_v1.SecretList, err error)

List takes label and field selectors, and returns the list of Secrets that match those selectors.

func (*FakeSecrets) Patch Uses

func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Secret, err error)

Patch applies the patch and returns the patched secret.

func (*FakeSecrets) Update Uses

func (c *FakeSecrets) Update(secret *core_v1.Secret) (result *core_v1.Secret, err error)

Update takes the representation of a secret and updates it. Returns the server's representation of the secret, and an error, if there is any.

func (*FakeSecrets) Watch Uses

func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested secrets.

type FakeServiceAccounts Uses

type FakeServiceAccounts struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeServiceAccounts implements ServiceAccountInterface

func (*FakeServiceAccounts) Create Uses

func (c *FakeServiceAccounts) Create(serviceAccount *core_v1.ServiceAccount) (result *core_v1.ServiceAccount, err error)

Create takes the representation of a serviceAccount and creates it. Returns the server's representation of the serviceAccount, and an error, if there is any.

func (*FakeServiceAccounts) Delete Uses

func (c *FakeServiceAccounts) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the serviceAccount and deletes it. Returns an error if one occurs.

func (*FakeServiceAccounts) DeleteCollection Uses

func (c *FakeServiceAccounts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServiceAccounts) Get Uses

func (c *FakeServiceAccounts) Get(name string, options v1.GetOptions) (result *core_v1.ServiceAccount, err error)

Get takes name of the serviceAccount, and returns the corresponding serviceAccount object, and an error if there is any.

func (*FakeServiceAccounts) List Uses

func (c *FakeServiceAccounts) List(opts v1.ListOptions) (result *core_v1.ServiceAccountList, err error)

List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors.

func (*FakeServiceAccounts) Patch Uses

func (c *FakeServiceAccounts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ServiceAccount, err error)

Patch applies the patch and returns the patched serviceAccount.

func (*FakeServiceAccounts) Update Uses

func (c *FakeServiceAccounts) Update(serviceAccount *core_v1.ServiceAccount) (result *core_v1.ServiceAccount, err error)

Update takes the representation of a serviceAccount and updates it. Returns the server's representation of the serviceAccount, and an error, if there is any.

func (*FakeServiceAccounts) Watch Uses

func (c *FakeServiceAccounts) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested serviceAccounts.

type FakeServices Uses

type FakeServices struct {
    Fake *FakeCoreV1
    // contains filtered or unexported fields
}

FakeServices implements ServiceInterface

func (*FakeServices) Create Uses

func (c *FakeServices) Create(service *core_v1.Service) (result *core_v1.Service, err error)

Create takes the representation of a service and creates it. Returns the server's representation of the service, and an error, if there is any.

func (*FakeServices) Delete Uses

func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the service and deletes it. Returns an error if one occurs.

func (*FakeServices) DeleteCollection Uses

func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServices) Get Uses

func (c *FakeServices) Get(name string, options v1.GetOptions) (result *core_v1.Service, err error)

Get takes name of the service, and returns the corresponding service object, and an error if there is any.

func (*FakeServices) List Uses

func (c *FakeServices) List(opts v1.ListOptions) (result *core_v1.ServiceList, err error)

List takes label and field selectors, and returns the list of Services that match those selectors.

func (*FakeServices) Patch Uses

func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Service, err error)

Patch applies the patch and returns the patched service.

func (*FakeServices) ProxyGet Uses

func (c *FakeServices) ProxyGet(scheme, name, port, path string, params map[string]string) restclient.ResponseWrapper

func (*FakeServices) Update Uses

func (c *FakeServices) Update(service *core_v1.Service) (result *core_v1.Service, err error)

Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any.

func (*FakeServices) UpdateStatus Uses

func (c *FakeServices) UpdateStatus(service *core_v1.Service) (*core_v1.Service, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeServices) Watch Uses

func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested services.

Package fake imports 13 packages (graph) and is imported by 4 packages. Updated 2018-01-05. Refresh now. Tools for package owners.