fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

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(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (result *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(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeConfigMaps) DeleteCollection

func (c *FakeConfigMaps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *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(ctx context.Context, opts metav1.ListOptions) (result *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(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConfigMap, err error)

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (result *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

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

type FakeCoreV1

type FakeCoreV1 struct {
	*testing.Fake
}

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

type FakeEvents

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

FakeEvents implements EventInterface

func (*FakeEvents) Create

func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *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) Delete

func (c *FakeEvents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeEvents) DeleteCollection

func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEvents) Get

func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *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(ctx context.Context, opts metav1.ListOptions) (result *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(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error)

Patch applies the patch and returns the patched event.

func (*FakeEvents) Update

func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *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) Watch

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(ctx context.Context, namespace *v1.Namespace, opts metav1.CreateOptions) (result *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(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeNamespaces) Finalize

func (c *FakeNamespaces) Finalize(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (result *v1.Namespace, err error)

Finalize takes the representation of a namespace to update. Returns the server's representation of the namespace, and an error, if it occurs.

func (*FakeNamespaces) Get

func (c *FakeNamespaces) Get(ctx context.Context, name string, options metav1.GetOptions) (result *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(ctx context.Context, opts metav1.ListOptions) (result *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(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Namespace, err error)

Patch applies the patch and returns the patched namespace.

func (*FakeNamespaces) Update

func (c *FakeNamespaces) Update(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (result *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

func (c *FakeNamespaces) UpdateStatus(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (*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

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

func (c *FakeSecrets) Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (result *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

func (c *FakeSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeSecrets) DeleteCollection

func (c *FakeSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSecrets) Get

func (c *FakeSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *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(ctx context.Context, opts metav1.ListOptions) (result *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(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Secret, err error)

Patch applies the patch and returns the patched secret.

func (*FakeSecrets) Update

func (c *FakeSecrets) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (result *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

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

Jump to

Keyboard shortcuts

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