Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCoreV1alpha1
- type FakeLogicalClusters
- func (c *FakeLogicalClusters) Apply(ctx context.Context, ...) (result *v1alpha1.LogicalCluster, err error)
- func (c *FakeLogicalClusters) ApplyStatus(ctx context.Context, ...) (result *v1alpha1.LogicalCluster, err error)
- func (c *FakeLogicalClusters) Create(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, ...) (result *v1alpha1.LogicalCluster, err error)
- func (c *FakeLogicalClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeLogicalClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeLogicalClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.LogicalCluster, err error)
- func (c *FakeLogicalClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LogicalClusterList, err error)
- func (c *FakeLogicalClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.LogicalCluster, err error)
- func (c *FakeLogicalClusters) Update(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, ...) (result *v1alpha1.LogicalCluster, err error)
- func (c *FakeLogicalClusters) UpdateStatus(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, ...) (*v1alpha1.LogicalCluster, error)
- func (c *FakeLogicalClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeShards
- func (c *FakeShards) Apply(ctx context.Context, shard *corev1alpha1.ShardApplyConfiguration, ...) (result *v1alpha1.Shard, err error)
- func (c *FakeShards) ApplyStatus(ctx context.Context, shard *corev1alpha1.ShardApplyConfiguration, ...) (result *v1alpha1.Shard, err error)
- func (c *FakeShards) Create(ctx context.Context, shard *v1alpha1.Shard, opts v1.CreateOptions) (result *v1alpha1.Shard, err error)
- func (c *FakeShards) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeShards) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeShards) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Shard, err error)
- func (c *FakeShards) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ShardList, err error)
- func (c *FakeShards) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Shard, err error)
- func (c *FakeShards) Update(ctx context.Context, shard *v1alpha1.Shard, opts v1.UpdateOptions) (result *v1alpha1.Shard, err error)
- func (c *FakeShards) UpdateStatus(ctx context.Context, shard *v1alpha1.Shard, opts v1.UpdateOptions) (*v1alpha1.Shard, error)
- func (c *FakeShards) 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 FakeCoreV1alpha1 ¶
func (*FakeCoreV1alpha1) LogicalClusters ¶
func (c *FakeCoreV1alpha1) LogicalClusters() v1alpha1.LogicalClusterInterface
func (*FakeCoreV1alpha1) RESTClient ¶
func (c *FakeCoreV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeCoreV1alpha1) Shards ¶
func (c *FakeCoreV1alpha1) Shards() v1alpha1.ShardInterface
type FakeLogicalClusters ¶
type FakeLogicalClusters struct {
Fake *FakeCoreV1alpha1
}
FakeLogicalClusters implements LogicalClusterInterface
func (*FakeLogicalClusters) Apply ¶
func (c *FakeLogicalClusters) Apply(ctx context.Context, logicalCluster *corev1alpha1.LogicalClusterApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.LogicalCluster, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied logicalCluster.
func (*FakeLogicalClusters) ApplyStatus ¶
func (c *FakeLogicalClusters) ApplyStatus(ctx context.Context, logicalCluster *corev1alpha1.LogicalClusterApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.LogicalCluster, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeLogicalClusters) Create ¶
func (c *FakeLogicalClusters) Create(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, opts v1.CreateOptions) (result *v1alpha1.LogicalCluster, err error)
Create takes the representation of a logicalCluster and creates it. Returns the server's representation of the logicalCluster, and an error, if there is any.
func (*FakeLogicalClusters) Delete ¶
func (c *FakeLogicalClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the logicalCluster and deletes it. Returns an error if one occurs.
func (*FakeLogicalClusters) DeleteCollection ¶
func (c *FakeLogicalClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeLogicalClusters) Get ¶
func (c *FakeLogicalClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.LogicalCluster, err error)
Get takes name of the logicalCluster, and returns the corresponding logicalCluster object, and an error if there is any.
func (*FakeLogicalClusters) List ¶
func (c *FakeLogicalClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LogicalClusterList, err error)
List takes label and field selectors, and returns the list of LogicalClusters that match those selectors.
func (*FakeLogicalClusters) Patch ¶
func (c *FakeLogicalClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.LogicalCluster, err error)
Patch applies the patch and returns the patched logicalCluster.
func (*FakeLogicalClusters) Update ¶
func (c *FakeLogicalClusters) Update(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, opts v1.UpdateOptions) (result *v1alpha1.LogicalCluster, err error)
Update takes the representation of a logicalCluster and updates it. Returns the server's representation of the logicalCluster, and an error, if there is any.
func (*FakeLogicalClusters) UpdateStatus ¶
func (c *FakeLogicalClusters) UpdateStatus(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, opts v1.UpdateOptions) (*v1alpha1.LogicalCluster, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeLogicalClusters) Watch ¶
func (c *FakeLogicalClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested logicalClusters.
type FakeShards ¶
type FakeShards struct {
Fake *FakeCoreV1alpha1
}
FakeShards implements ShardInterface
func (*FakeShards) Apply ¶
func (c *FakeShards) Apply(ctx context.Context, shard *corev1alpha1.ShardApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Shard, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied shard.
func (*FakeShards) ApplyStatus ¶
func (c *FakeShards) ApplyStatus(ctx context.Context, shard *corev1alpha1.ShardApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Shard, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeShards) Create ¶
func (c *FakeShards) Create(ctx context.Context, shard *v1alpha1.Shard, opts v1.CreateOptions) (result *v1alpha1.Shard, err error)
Create takes the representation of a shard and creates it. Returns the server's representation of the shard, and an error, if there is any.
func (*FakeShards) Delete ¶
func (c *FakeShards) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the shard and deletes it. Returns an error if one occurs.
func (*FakeShards) DeleteCollection ¶
func (c *FakeShards) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeShards) Get ¶
func (c *FakeShards) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Shard, err error)
Get takes name of the shard, and returns the corresponding shard object, and an error if there is any.
func (*FakeShards) List ¶
func (c *FakeShards) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ShardList, err error)
List takes label and field selectors, and returns the list of Shards that match those selectors.
func (*FakeShards) Patch ¶
func (c *FakeShards) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Shard, err error)
Patch applies the patch and returns the patched shard.
func (*FakeShards) Update ¶
func (c *FakeShards) Update(ctx context.Context, shard *v1alpha1.Shard, opts v1.UpdateOptions) (result *v1alpha1.Shard, err error)
Update takes the representation of a shard and updates it. Returns the server's representation of the shard, and an error, if there is any.
func (*FakeShards) UpdateStatus ¶
func (c *FakeShards) UpdateStatus(ctx context.Context, shard *v1alpha1.Shard, opts v1.UpdateOptions) (*v1alpha1.Shard, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeShards) Watch ¶
func (c *FakeShards) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested shards.