Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCceV1
- type FakeSubnets
- func (c *FakeSubnets) Create(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.CreateOptions) (result *ccebaidubcecomv1.Subnet, err error)
- func (c *FakeSubnets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSubnets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *ccebaidubcecomv1.Subnet, err error)
- func (c *FakeSubnets) List(ctx context.Context, opts v1.ListOptions) (result *ccebaidubcecomv1.SubnetList, err error)
- func (c *FakeSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *ccebaidubcecomv1.Subnet, err error)
- func (c *FakeSubnets) Update(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.UpdateOptions) (result *ccebaidubcecomv1.Subnet, err error)
- func (c *FakeSubnets) UpdateStatus(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.UpdateOptions) (*ccebaidubcecomv1.Subnet, error)
- func (c *FakeSubnets) 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 FakeCceV1 ¶
func (*FakeCceV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeCceV1) Subnets ¶
func (c *FakeCceV1) Subnets() v1.SubnetInterface
type FakeSubnets ¶
type FakeSubnets struct {
Fake *FakeCceV1
}
FakeSubnets implements SubnetInterface
func (*FakeSubnets) Create ¶
func (c *FakeSubnets) Create(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.CreateOptions) (result *ccebaidubcecomv1.Subnet, err error)
Create takes the representation of a subnet and creates it. Returns the server's representation of the subnet, and an error, if there is any.
func (*FakeSubnets) Delete ¶
func (c *FakeSubnets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the subnet and deletes it. Returns an error if one occurs.
func (*FakeSubnets) DeleteCollection ¶
func (c *FakeSubnets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSubnets) Get ¶
func (c *FakeSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *ccebaidubcecomv1.Subnet, err error)
Get takes name of the subnet, and returns the corresponding subnet object, and an error if there is any.
func (*FakeSubnets) List ¶
func (c *FakeSubnets) List(ctx context.Context, opts v1.ListOptions) (result *ccebaidubcecomv1.SubnetList, err error)
List takes label and field selectors, and returns the list of Subnets that match those selectors.
func (*FakeSubnets) Patch ¶
func (c *FakeSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ccebaidubcecomv1.Subnet, err error)
Patch applies the patch and returns the patched subnet.
func (*FakeSubnets) Update ¶
func (c *FakeSubnets) Update(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.UpdateOptions) (result *ccebaidubcecomv1.Subnet, err error)
Update takes the representation of a subnet and updates it. Returns the server's representation of the subnet, and an error, if there is any.
func (*FakeSubnets) UpdateStatus ¶
func (c *FakeSubnets) UpdateStatus(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.UpdateOptions) (*ccebaidubcecomv1.Subnet, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSubnets) Watch ¶
func (c *FakeSubnets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested subnets.