Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeApps
- func (c *FakeApps) Create(ctx context.Context, app *catalogcattleiov1.App, opts v1.CreateOptions) (result *catalogcattleiov1.App, err error)
- func (c *FakeApps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeApps) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeApps) Get(ctx context.Context, name string, options v1.GetOptions) (result *catalogcattleiov1.App, err error)
- func (c *FakeApps) List(ctx context.Context, opts v1.ListOptions) (result *catalogcattleiov1.AppList, err error)
- func (c *FakeApps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *catalogcattleiov1.App, err error)
- func (c *FakeApps) Update(ctx context.Context, app *catalogcattleiov1.App, opts v1.UpdateOptions) (result *catalogcattleiov1.App, err error)
- func (c *FakeApps) UpdateStatus(ctx context.Context, app *catalogcattleiov1.App, opts v1.UpdateOptions) (*catalogcattleiov1.App, error)
- func (c *FakeApps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeCatalogV1
- type FakeClusterRepos
- func (c *FakeClusterRepos) Create(ctx context.Context, clusterRepo *catalogcattleiov1.ClusterRepo, ...) (result *catalogcattleiov1.ClusterRepo, err error)
- func (c *FakeClusterRepos) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterRepos) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterRepos) Get(ctx context.Context, name string, options v1.GetOptions) (result *catalogcattleiov1.ClusterRepo, err error)
- func (c *FakeClusterRepos) List(ctx context.Context, opts v1.ListOptions) (result *catalogcattleiov1.ClusterRepoList, err error)
- func (c *FakeClusterRepos) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *catalogcattleiov1.ClusterRepo, err error)
- func (c *FakeClusterRepos) Update(ctx context.Context, clusterRepo *catalogcattleiov1.ClusterRepo, ...) (result *catalogcattleiov1.ClusterRepo, err error)
- func (c *FakeClusterRepos) UpdateStatus(ctx context.Context, clusterRepo *catalogcattleiov1.ClusterRepo, ...) (*catalogcattleiov1.ClusterRepo, error)
- func (c *FakeClusterRepos) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeOperations
- func (c *FakeOperations) Create(ctx context.Context, operation *catalogcattleiov1.Operation, ...) (result *catalogcattleiov1.Operation, err error)
- func (c *FakeOperations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeOperations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeOperations) Get(ctx context.Context, name string, options v1.GetOptions) (result *catalogcattleiov1.Operation, err error)
- func (c *FakeOperations) List(ctx context.Context, opts v1.ListOptions) (result *catalogcattleiov1.OperationList, err error)
- func (c *FakeOperations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *catalogcattleiov1.Operation, err error)
- func (c *FakeOperations) Update(ctx context.Context, operation *catalogcattleiov1.Operation, ...) (result *catalogcattleiov1.Operation, err error)
- func (c *FakeOperations) UpdateStatus(ctx context.Context, operation *catalogcattleiov1.Operation, ...) (*catalogcattleiov1.Operation, error)
- func (c *FakeOperations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeApps ¶
type FakeApps struct { Fake *FakeCatalogV1 // contains filtered or unexported fields }
FakeApps implements AppInterface
func (*FakeApps) Create ¶
func (c *FakeApps) Create(ctx context.Context, app *catalogcattleiov1.App, opts v1.CreateOptions) (result *catalogcattleiov1.App, err error)
Create takes the representation of a app and creates it. Returns the server's representation of the app, and an error, if there is any.
func (*FakeApps) Delete ¶
Delete takes name of the app and deletes it. Returns an error if one occurs.
func (*FakeApps) DeleteCollection ¶
func (c *FakeApps) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeApps) Get ¶
func (c *FakeApps) Get(ctx context.Context, name string, options v1.GetOptions) (result *catalogcattleiov1.App, err error)
Get takes name of the app, and returns the corresponding app object, and an error if there is any.
func (*FakeApps) List ¶
func (c *FakeApps) List(ctx context.Context, opts v1.ListOptions) (result *catalogcattleiov1.AppList, err error)
List takes label and field selectors, and returns the list of Apps that match those selectors.
func (*FakeApps) Patch ¶
func (c *FakeApps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *catalogcattleiov1.App, err error)
Patch applies the patch and returns the patched app.
func (*FakeApps) Update ¶
func (c *FakeApps) Update(ctx context.Context, app *catalogcattleiov1.App, opts v1.UpdateOptions) (result *catalogcattleiov1.App, err error)
Update takes the representation of a app and updates it. Returns the server's representation of the app, and an error, if there is any.
func (*FakeApps) UpdateStatus ¶
func (c *FakeApps) UpdateStatus(ctx context.Context, app *catalogcattleiov1.App, opts v1.UpdateOptions) (*catalogcattleiov1.App, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
type FakeCatalogV1 ¶
func (*FakeCatalogV1) Apps ¶
func (c *FakeCatalogV1) Apps(namespace string) v1.AppInterface
func (*FakeCatalogV1) ClusterRepos ¶
func (c *FakeCatalogV1) ClusterRepos() v1.ClusterRepoInterface
func (*FakeCatalogV1) Operations ¶
func (c *FakeCatalogV1) Operations(namespace string) v1.OperationInterface
func (*FakeCatalogV1) RESTClient ¶
func (c *FakeCatalogV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeClusterRepos ¶
type FakeClusterRepos struct {
Fake *FakeCatalogV1
}
FakeClusterRepos implements ClusterRepoInterface
func (*FakeClusterRepos) Create ¶
func (c *FakeClusterRepos) Create(ctx context.Context, clusterRepo *catalogcattleiov1.ClusterRepo, opts v1.CreateOptions) (result *catalogcattleiov1.ClusterRepo, err error)
Create takes the representation of a clusterRepo and creates it. Returns the server's representation of the clusterRepo, and an error, if there is any.
func (*FakeClusterRepos) Delete ¶
func (c *FakeClusterRepos) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterRepo and deletes it. Returns an error if one occurs.
func (*FakeClusterRepos) DeleteCollection ¶
func (c *FakeClusterRepos) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterRepos) Get ¶
func (c *FakeClusterRepos) Get(ctx context.Context, name string, options v1.GetOptions) (result *catalogcattleiov1.ClusterRepo, err error)
Get takes name of the clusterRepo, and returns the corresponding clusterRepo object, and an error if there is any.
func (*FakeClusterRepos) List ¶
func (c *FakeClusterRepos) List(ctx context.Context, opts v1.ListOptions) (result *catalogcattleiov1.ClusterRepoList, err error)
List takes label and field selectors, and returns the list of ClusterRepos that match those selectors.
func (*FakeClusterRepos) Patch ¶
func (c *FakeClusterRepos) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *catalogcattleiov1.ClusterRepo, err error)
Patch applies the patch and returns the patched clusterRepo.
func (*FakeClusterRepos) Update ¶
func (c *FakeClusterRepos) Update(ctx context.Context, clusterRepo *catalogcattleiov1.ClusterRepo, opts v1.UpdateOptions) (result *catalogcattleiov1.ClusterRepo, err error)
Update takes the representation of a clusterRepo and updates it. Returns the server's representation of the clusterRepo, and an error, if there is any.
func (*FakeClusterRepos) UpdateStatus ¶
func (c *FakeClusterRepos) UpdateStatus(ctx context.Context, clusterRepo *catalogcattleiov1.ClusterRepo, opts v1.UpdateOptions) (*catalogcattleiov1.ClusterRepo, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterRepos) Watch ¶
func (c *FakeClusterRepos) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterRepos.
type FakeOperations ¶
type FakeOperations struct { Fake *FakeCatalogV1 // contains filtered or unexported fields }
FakeOperations implements OperationInterface
func (*FakeOperations) Create ¶
func (c *FakeOperations) Create(ctx context.Context, operation *catalogcattleiov1.Operation, opts v1.CreateOptions) (result *catalogcattleiov1.Operation, err error)
Create takes the representation of a operation and creates it. Returns the server's representation of the operation, and an error, if there is any.
func (*FakeOperations) Delete ¶
func (c *FakeOperations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the operation and deletes it. Returns an error if one occurs.
func (*FakeOperations) DeleteCollection ¶
func (c *FakeOperations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeOperations) Get ¶
func (c *FakeOperations) Get(ctx context.Context, name string, options v1.GetOptions) (result *catalogcattleiov1.Operation, err error)
Get takes name of the operation, and returns the corresponding operation object, and an error if there is any.
func (*FakeOperations) List ¶
func (c *FakeOperations) List(ctx context.Context, opts v1.ListOptions) (result *catalogcattleiov1.OperationList, err error)
List takes label and field selectors, and returns the list of Operations that match those selectors.
func (*FakeOperations) Patch ¶
func (c *FakeOperations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *catalogcattleiov1.Operation, err error)
Patch applies the patch and returns the patched operation.
func (*FakeOperations) Update ¶
func (c *FakeOperations) Update(ctx context.Context, operation *catalogcattleiov1.Operation, opts v1.UpdateOptions) (result *catalogcattleiov1.Operation, err error)
Update takes the representation of a operation and updates it. Returns the server's representation of the operation, and an error, if there is any.
func (*FakeOperations) UpdateStatus ¶
func (c *FakeOperations) UpdateStatus(ctx context.Context, operation *catalogcattleiov1.Operation, opts v1.UpdateOptions) (*catalogcattleiov1.Operation, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeOperations) Watch ¶
func (c *FakeOperations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested operations.