fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 10 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 FakeContainerV1alpha1

type FakeContainerV1alpha1 struct {
	*testing.Fake
}

func (*FakeContainerV1alpha1) Groups

func (c *FakeContainerV1alpha1) Groups(namespace string) v1alpha1.GroupInterface

func (*FakeContainerV1alpha1) RESTClient

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

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

func (*FakeContainerV1alpha1) Registries

func (c *FakeContainerV1alpha1) Registries(namespace string) v1alpha1.RegistryInterface

func (*FakeContainerV1alpha1) RegistryScopeMaps

func (c *FakeContainerV1alpha1) RegistryScopeMaps(namespace string) v1alpha1.RegistryScopeMapInterface

func (*FakeContainerV1alpha1) RegistryTasks added in v0.5.0

func (c *FakeContainerV1alpha1) RegistryTasks(namespace string) v1alpha1.RegistryTaskInterface

func (*FakeContainerV1alpha1) RegistryTokens

func (c *FakeContainerV1alpha1) RegistryTokens(namespace string) v1alpha1.RegistryTokenInterface

func (*FakeContainerV1alpha1) RegistryWebhooks

func (c *FakeContainerV1alpha1) RegistryWebhooks(namespace string) v1alpha1.RegistryWebhookInterface

type FakeGroups

type FakeGroups struct {
	Fake *FakeContainerV1alpha1
	// contains filtered or unexported fields
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create

func (c *FakeGroups) Create(ctx context.Context, group *v1alpha1.Group, opts v1.CreateOptions) (result *v1alpha1.Group, err error)

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

func (*FakeGroups) Delete

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

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

func (*FakeGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get

func (c *FakeGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Group, err error)

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

func (*FakeGroups) List

func (c *FakeGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.GroupList, err error)

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

func (*FakeGroups) Patch

func (c *FakeGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Group, err error)

Patch applies the patch and returns the patched group.

func (*FakeGroups) Update

func (c *FakeGroups) Update(ctx context.Context, group *v1alpha1.Group, opts v1.UpdateOptions) (result *v1alpha1.Group, err error)

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

func (*FakeGroups) UpdateStatus

func (c *FakeGroups) UpdateStatus(ctx context.Context, group *v1alpha1.Group, opts v1.UpdateOptions) (*v1alpha1.Group, error)

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

func (*FakeGroups) Watch

func (c *FakeGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeRegistries

type FakeRegistries struct {
	Fake *FakeContainerV1alpha1
	// contains filtered or unexported fields
}

FakeRegistries implements RegistryInterface

func (*FakeRegistries) Create

func (c *FakeRegistries) Create(ctx context.Context, registry *v1alpha1.Registry, opts v1.CreateOptions) (result *v1alpha1.Registry, err error)

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

func (*FakeRegistries) Delete

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

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

func (*FakeRegistries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRegistries) Get

func (c *FakeRegistries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Registry, err error)

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

func (*FakeRegistries) List

func (c *FakeRegistries) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RegistryList, err error)

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

func (*FakeRegistries) Patch

func (c *FakeRegistries) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Registry, err error)

Patch applies the patch and returns the patched registry.

func (*FakeRegistries) Update

func (c *FakeRegistries) Update(ctx context.Context, registry *v1alpha1.Registry, opts v1.UpdateOptions) (result *v1alpha1.Registry, err error)

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

func (*FakeRegistries) UpdateStatus

func (c *FakeRegistries) UpdateStatus(ctx context.Context, registry *v1alpha1.Registry, opts v1.UpdateOptions) (*v1alpha1.Registry, error)

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

func (*FakeRegistries) Watch

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

type FakeRegistryScopeMaps

type FakeRegistryScopeMaps struct {
	Fake *FakeContainerV1alpha1
	// contains filtered or unexported fields
}

FakeRegistryScopeMaps implements RegistryScopeMapInterface

func (*FakeRegistryScopeMaps) Create

func (c *FakeRegistryScopeMaps) Create(ctx context.Context, registryScopeMap *v1alpha1.RegistryScopeMap, opts v1.CreateOptions) (result *v1alpha1.RegistryScopeMap, err error)

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

func (*FakeRegistryScopeMaps) Delete

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

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

func (*FakeRegistryScopeMaps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRegistryScopeMaps) Get

func (c *FakeRegistryScopeMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RegistryScopeMap, err error)

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

func (*FakeRegistryScopeMaps) List

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

func (*FakeRegistryScopeMaps) Patch

func (c *FakeRegistryScopeMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RegistryScopeMap, err error)

Patch applies the patch and returns the patched registryScopeMap.

func (*FakeRegistryScopeMaps) Update

func (c *FakeRegistryScopeMaps) Update(ctx context.Context, registryScopeMap *v1alpha1.RegistryScopeMap, opts v1.UpdateOptions) (result *v1alpha1.RegistryScopeMap, err error)

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

func (*FakeRegistryScopeMaps) UpdateStatus

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

func (*FakeRegistryScopeMaps) Watch

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

type FakeRegistryTasks added in v0.5.0

type FakeRegistryTasks struct {
	Fake *FakeContainerV1alpha1
	// contains filtered or unexported fields
}

FakeRegistryTasks implements RegistryTaskInterface

func (*FakeRegistryTasks) Create added in v0.5.0

func (c *FakeRegistryTasks) Create(ctx context.Context, registryTask *v1alpha1.RegistryTask, opts v1.CreateOptions) (result *v1alpha1.RegistryTask, err error)

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

func (*FakeRegistryTasks) Delete added in v0.5.0

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

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

func (*FakeRegistryTasks) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeRegistryTasks) Get added in v0.5.0

func (c *FakeRegistryTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RegistryTask, err error)

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

func (*FakeRegistryTasks) List added in v0.5.0

func (c *FakeRegistryTasks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RegistryTaskList, err error)

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

func (*FakeRegistryTasks) Patch added in v0.5.0

func (c *FakeRegistryTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RegistryTask, err error)

Patch applies the patch and returns the patched registryTask.

func (*FakeRegistryTasks) Update added in v0.5.0

func (c *FakeRegistryTasks) Update(ctx context.Context, registryTask *v1alpha1.RegistryTask, opts v1.UpdateOptions) (result *v1alpha1.RegistryTask, err error)

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

func (*FakeRegistryTasks) UpdateStatus added in v0.5.0

func (c *FakeRegistryTasks) UpdateStatus(ctx context.Context, registryTask *v1alpha1.RegistryTask, opts v1.UpdateOptions) (*v1alpha1.RegistryTask, error)

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

func (*FakeRegistryTasks) Watch added in v0.5.0

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

type FakeRegistryTokens

type FakeRegistryTokens struct {
	Fake *FakeContainerV1alpha1
	// contains filtered or unexported fields
}

FakeRegistryTokens implements RegistryTokenInterface

func (*FakeRegistryTokens) Create

func (c *FakeRegistryTokens) Create(ctx context.Context, registryToken *v1alpha1.RegistryToken, opts v1.CreateOptions) (result *v1alpha1.RegistryToken, err error)

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

func (*FakeRegistryTokens) Delete

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

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

func (*FakeRegistryTokens) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRegistryTokens) Get

func (c *FakeRegistryTokens) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RegistryToken, err error)

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

func (*FakeRegistryTokens) List

func (c *FakeRegistryTokens) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RegistryTokenList, err error)

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

func (*FakeRegistryTokens) Patch

func (c *FakeRegistryTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RegistryToken, err error)

Patch applies the patch and returns the patched registryToken.

func (*FakeRegistryTokens) Update

func (c *FakeRegistryTokens) Update(ctx context.Context, registryToken *v1alpha1.RegistryToken, opts v1.UpdateOptions) (result *v1alpha1.RegistryToken, err error)

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

func (*FakeRegistryTokens) UpdateStatus

func (c *FakeRegistryTokens) UpdateStatus(ctx context.Context, registryToken *v1alpha1.RegistryToken, opts v1.UpdateOptions) (*v1alpha1.RegistryToken, error)

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

func (*FakeRegistryTokens) Watch

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

type FakeRegistryWebhooks

type FakeRegistryWebhooks struct {
	Fake *FakeContainerV1alpha1
	// contains filtered or unexported fields
}

FakeRegistryWebhooks implements RegistryWebhookInterface

func (*FakeRegistryWebhooks) Create

func (c *FakeRegistryWebhooks) Create(ctx context.Context, registryWebhook *v1alpha1.RegistryWebhook, opts v1.CreateOptions) (result *v1alpha1.RegistryWebhook, err error)

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

func (*FakeRegistryWebhooks) Delete

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

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

func (*FakeRegistryWebhooks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRegistryWebhooks) Get

func (c *FakeRegistryWebhooks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RegistryWebhook, err error)

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

func (*FakeRegistryWebhooks) List

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

func (*FakeRegistryWebhooks) Patch

func (c *FakeRegistryWebhooks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RegistryWebhook, err error)

Patch applies the patch and returns the patched registryWebhook.

func (*FakeRegistryWebhooks) Update

func (c *FakeRegistryWebhooks) Update(ctx context.Context, registryWebhook *v1alpha1.RegistryWebhook, opts v1.UpdateOptions) (result *v1alpha1.RegistryWebhook, err error)

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

func (*FakeRegistryWebhooks) UpdateStatus

func (c *FakeRegistryWebhooks) UpdateStatus(ctx context.Context, registryWebhook *v1alpha1.RegistryWebhook, opts v1.UpdateOptions) (*v1alpha1.RegistryWebhook, error)

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

func (*FakeRegistryWebhooks) Watch

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

Jump to

Keyboard shortcuts

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