fake

package
v1.13.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 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 FakeClusterConfigs

type FakeClusterConfigs struct {
	Fake *FakeConfigmanagementV1
}

FakeClusterConfigs implements ClusterConfigInterface

func (*FakeClusterConfigs) Create

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

func (*FakeClusterConfigs) Delete

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

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

func (*FakeClusterConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterConfigs) Get

func (c *FakeClusterConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *configmanagementv1.ClusterConfig, err error)

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

func (*FakeClusterConfigs) List

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

func (*FakeClusterConfigs) Patch

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

Patch applies the patch and returns the patched clusterConfig.

func (*FakeClusterConfigs) Update

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

func (*FakeClusterConfigs) UpdateStatus

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

func (*FakeClusterConfigs) Watch

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

type FakeClusterSelectors

type FakeClusterSelectors struct {
	Fake *FakeConfigmanagementV1
}

FakeClusterSelectors implements ClusterSelectorInterface

func (*FakeClusterSelectors) Create

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

func (*FakeClusterSelectors) Delete

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

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

func (*FakeClusterSelectors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSelectors) Get

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

func (*FakeClusterSelectors) List

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

func (*FakeClusterSelectors) Patch

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

Patch applies the patch and returns the patched clusterSelector.

func (*FakeClusterSelectors) Update

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

func (*FakeClusterSelectors) Watch

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

type FakeConfigmanagementV1

type FakeConfigmanagementV1 struct {
	*testing.Fake
}

func (*FakeConfigmanagementV1) ClusterConfigs

func (c *FakeConfigmanagementV1) ClusterConfigs() v1.ClusterConfigInterface

func (*FakeConfigmanagementV1) ClusterSelectors

func (c *FakeConfigmanagementV1) ClusterSelectors() v1.ClusterSelectorInterface

func (*FakeConfigmanagementV1) HierarchyConfigs

func (c *FakeConfigmanagementV1) HierarchyConfigs() v1.HierarchyConfigInterface

func (*FakeConfigmanagementV1) NamespaceConfigs

func (c *FakeConfigmanagementV1) NamespaceConfigs() v1.NamespaceConfigInterface

func (*FakeConfigmanagementV1) NamespaceSelectors

func (c *FakeConfigmanagementV1) NamespaceSelectors() v1.NamespaceSelectorInterface

func (*FakeConfigmanagementV1) RESTClient

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

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

func (*FakeConfigmanagementV1) Repos

func (*FakeConfigmanagementV1) Syncs

type FakeHierarchyConfigs

type FakeHierarchyConfigs struct {
	Fake *FakeConfigmanagementV1
}

FakeHierarchyConfigs implements HierarchyConfigInterface

func (*FakeHierarchyConfigs) Create

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

func (*FakeHierarchyConfigs) Delete

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

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

func (*FakeHierarchyConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHierarchyConfigs) Get

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

func (*FakeHierarchyConfigs) List

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

func (*FakeHierarchyConfigs) Patch

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

Patch applies the patch and returns the patched hierarchyConfig.

func (*FakeHierarchyConfigs) Update

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

func (*FakeHierarchyConfigs) Watch

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

type FakeNamespaceConfigs

type FakeNamespaceConfigs struct {
	Fake *FakeConfigmanagementV1
}

FakeNamespaceConfigs implements NamespaceConfigInterface

func (*FakeNamespaceConfigs) Create

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

func (*FakeNamespaceConfigs) Delete

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

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

func (*FakeNamespaceConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaceConfigs) Get

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

func (*FakeNamespaceConfigs) List

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

func (*FakeNamespaceConfigs) Patch

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

Patch applies the patch and returns the patched namespaceConfig.

func (*FakeNamespaceConfigs) Update

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

func (*FakeNamespaceConfigs) UpdateStatus

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

func (*FakeNamespaceConfigs) Watch

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

type FakeNamespaceSelectors

type FakeNamespaceSelectors struct {
	Fake *FakeConfigmanagementV1
}

FakeNamespaceSelectors implements NamespaceSelectorInterface

func (*FakeNamespaceSelectors) Create

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

func (*FakeNamespaceSelectors) Delete

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

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

func (*FakeNamespaceSelectors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaceSelectors) Get

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

func (*FakeNamespaceSelectors) List

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

func (*FakeNamespaceSelectors) Patch

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

Patch applies the patch and returns the patched namespaceSelector.

func (*FakeNamespaceSelectors) Update

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

func (*FakeNamespaceSelectors) Watch

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

type FakeRepos

type FakeRepos struct {
	Fake *FakeConfigmanagementV1
}

FakeRepos implements RepoInterface

func (*FakeRepos) Create

func (c *FakeRepos) Create(ctx context.Context, repo *configmanagementv1.Repo, opts v1.CreateOptions) (result *configmanagementv1.Repo, err error)

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

func (*FakeRepos) Delete

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

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

func (*FakeRepos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRepos) Get

func (c *FakeRepos) Get(ctx context.Context, name string, options v1.GetOptions) (result *configmanagementv1.Repo, err error)

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

func (*FakeRepos) List

func (c *FakeRepos) List(ctx context.Context, opts v1.ListOptions) (result *configmanagementv1.RepoList, err error)

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

func (*FakeRepos) Patch

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

Patch applies the patch and returns the patched repo.

func (*FakeRepos) Update

func (c *FakeRepos) Update(ctx context.Context, repo *configmanagementv1.Repo, opts v1.UpdateOptions) (result *configmanagementv1.Repo, err error)

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

func (*FakeRepos) UpdateStatus

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

func (*FakeRepos) Watch

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

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

type FakeSyncs

type FakeSyncs struct {
	Fake *FakeConfigmanagementV1
}

FakeSyncs implements SyncInterface

func (*FakeSyncs) Create

func (c *FakeSyncs) Create(ctx context.Context, sync *configmanagementv1.Sync, opts v1.CreateOptions) (result *configmanagementv1.Sync, err error)

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

func (*FakeSyncs) Delete

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

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

func (*FakeSyncs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSyncs) Get

func (c *FakeSyncs) Get(ctx context.Context, name string, options v1.GetOptions) (result *configmanagementv1.Sync, err error)

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

func (*FakeSyncs) List

func (c *FakeSyncs) List(ctx context.Context, opts v1.ListOptions) (result *configmanagementv1.SyncList, err error)

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

func (*FakeSyncs) Patch

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

Patch applies the patch and returns the patched sync.

func (*FakeSyncs) Update

func (c *FakeSyncs) Update(ctx context.Context, sync *configmanagementv1.Sync, opts v1.UpdateOptions) (result *configmanagementv1.Sync, err error)

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

func (*FakeSyncs) UpdateStatus

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

func (*FakeSyncs) Watch

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

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

Jump to

Keyboard shortcuts

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