Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeConfigMaps
- func (c *FakeConfigMaps) Create(configMap *core_v1.ConfigMap) (result *core_v1.ConfigMap, err error)
- func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *core_v1.ConfigMap, err error)
- func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *core_v1.ConfigMapList, err error)
- func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ConfigMap, err error)
- func (c *FakeConfigMaps) Update(configMap *core_v1.ConfigMap) (result *core_v1.ConfigMap, err error)
- func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeCoreV1
- func (c *FakeCoreV1) ConfigMaps(namespace string) v1.ConfigMapInterface
- func (c *FakeCoreV1) Events(namespace string) v1.EventInterface
- func (c *FakeCoreV1) Namespaces() v1.NamespaceInterface
- func (c *FakeCoreV1) RESTClient() rest.Interface
- func (c *FakeCoreV1) Secrets(namespace string) v1.SecretInterface
- func (c *FakeCoreV1) Services(namespace string) v1.ServiceInterface
- type FakeEvents
- func (c *FakeEvents) Create(event *core_v1.Event) (result *core_v1.Event, err error)
- func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *core_v1.Event, err error)
- func (c *FakeEvents) List(opts v1.ListOptions) (result *core_v1.EventList, err error)
- func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Event, err error)
- func (c *FakeEvents) Update(event *core_v1.Event) (result *core_v1.Event, err error)
- func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeNamespaces
- func (c *FakeNamespaces) Create(namespace *core_v1.Namespace) (result *core_v1.Namespace, err error)
- func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeNamespaces) Finalize(namespace *v1.Namespace) (*v1.Namespace, error)
- func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *core_v1.Namespace, err error)
- func (c *FakeNamespaces) List(opts v1.ListOptions) (result *core_v1.NamespaceList, err error)
- func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Namespace, err error)
- func (c *FakeNamespaces) Update(namespace *core_v1.Namespace) (result *core_v1.Namespace, err error)
- func (c *FakeNamespaces) UpdateStatus(namespace *core_v1.Namespace) (*core_v1.Namespace, error)
- func (c *FakeNamespaces) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSecrets
- func (c *FakeSecrets) Create(secret *core_v1.Secret) (result *core_v1.Secret, err error)
- func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *core_v1.Secret, err error)
- func (c *FakeSecrets) List(opts v1.ListOptions) (result *core_v1.SecretList, err error)
- func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Secret, err error)
- func (c *FakeSecrets) Update(secret *core_v1.Secret) (result *core_v1.Secret, err error)
- func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeServices
- func (c *FakeServices) Create(service *core_v1.Service) (result *core_v1.Service, err error)
- func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeServices) Get(name string, options v1.GetOptions) (result *core_v1.Service, err error)
- func (c *FakeServices) List(opts v1.ListOptions) (result *core_v1.ServiceList, err error)
- func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Service, err error)
- func (c *FakeServices) Update(service *core_v1.Service) (result *core_v1.Service, err error)
- func (c *FakeServices) UpdateStatus(service *core_v1.Service) (*core_v1.Service, error)
- func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeConfigMaps ¶
type FakeConfigMaps struct { Fake *FakeCoreV1 // contains filtered or unexported fields }
FakeConfigMaps implements ConfigMapInterface
func (*FakeConfigMaps) Create ¶
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 ¶
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 ¶
func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeConfigMaps) Get ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested configMaps.
type FakeCoreV1 ¶
func (*FakeCoreV1) ConfigMaps ¶
func (c *FakeCoreV1) ConfigMaps(namespace string) v1.ConfigMapInterface
func (*FakeCoreV1) Events ¶
func (c *FakeCoreV1) Events(namespace string) v1.EventInterface
func (*FakeCoreV1) Namespaces ¶
func (c *FakeCoreV1) Namespaces() v1.NamespaceInterface
func (*FakeCoreV1) RESTClient ¶
func (c *FakeCoreV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeCoreV1) Secrets ¶
func (c *FakeCoreV1) Secrets(namespace string) v1.SecretInterface
func (*FakeCoreV1) Services ¶
func (c *FakeCoreV1) Services(namespace string) v1.ServiceInterface
type FakeEvents ¶
type FakeEvents struct { Fake *FakeCoreV1 // contains filtered or unexported fields }
FakeEvents implements EventInterface
func (*FakeEvents) Create ¶
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) Delete ¶
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 ¶
func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEvents) Get ¶
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) List ¶
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 ¶
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) Update ¶
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) Watch ¶
func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested events.
type FakeNamespaces ¶
type FakeNamespaces struct {
Fake *FakeCoreV1
}
FakeNamespaces implements NamespaceInterface
func (*FakeNamespaces) Create ¶
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 ¶
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 ¶
func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNamespaces) Get ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *FakeNamespaces) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested namespaces.
type FakeSecrets ¶
type FakeSecrets struct { Fake *FakeCoreV1 // contains filtered or unexported fields }
FakeSecrets implements SecretInterface
func (*FakeSecrets) Create ¶
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 ¶
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 ¶
func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSecrets) Get ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested secrets.
type FakeServices ¶
type FakeServices struct { Fake *FakeCoreV1 // contains filtered or unexported fields }
FakeServices implements ServiceInterface
func (*FakeServices) Create ¶
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 ¶
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 ¶
func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeServices) Get ¶
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 ¶
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 ¶
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) Update ¶
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 ¶
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 ¶
func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested services.