Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCalicoV1
- type FakeIPPools
- func (c *FakeIPPools) Create(ctx context.Context, iPPool *calicov1.IPPool, opts v1.CreateOptions) (result *calicov1.IPPool, err error)
- func (c *FakeIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *calicov1.IPPool, err error)
- func (c *FakeIPPools) List(ctx context.Context, opts v1.ListOptions) (result *calicov1.IPPoolList, err error)
- func (c *FakeIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *calicov1.IPPool, err error)
- func (c *FakeIPPools) Update(ctx context.Context, iPPool *calicov1.IPPool, opts v1.UpdateOptions) (result *calicov1.IPPool, err error)
- func (c *FakeIPPools) 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 FakeCalicoV1 ¶
func (*FakeCalicoV1) IPPools ¶
func (c *FakeCalicoV1) IPPools() v1.IPPoolInterface
func (*FakeCalicoV1) RESTClient ¶
func (c *FakeCalicoV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeIPPools ¶
type FakeIPPools struct {
Fake *FakeCalicoV1
}
FakeIPPools implements IPPoolInterface
func (*FakeIPPools) Create ¶
func (c *FakeIPPools) Create(ctx context.Context, iPPool *calicov1.IPPool, opts v1.CreateOptions) (result *calicov1.IPPool, err error)
Create takes the representation of a iPPool and creates it. Returns the server's representation of the iPPool, and an error, if there is any.
func (*FakeIPPools) Delete ¶
func (c *FakeIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the iPPool and deletes it. Returns an error if one occurs.
func (*FakeIPPools) DeleteCollection ¶
func (c *FakeIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIPPools) Get ¶
func (c *FakeIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *calicov1.IPPool, err error)
Get takes name of the iPPool, and returns the corresponding iPPool object, and an error if there is any.
func (*FakeIPPools) List ¶
func (c *FakeIPPools) List(ctx context.Context, opts v1.ListOptions) (result *calicov1.IPPoolList, err error)
List takes label and field selectors, and returns the list of IPPools that match those selectors.
func (*FakeIPPools) Patch ¶
func (c *FakeIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *calicov1.IPPool, err error)
Patch applies the patch and returns the patched iPPool.
func (*FakeIPPools) Update ¶
func (c *FakeIPPools) Update(ctx context.Context, iPPool *calicov1.IPPool, opts v1.UpdateOptions) (result *calicov1.IPPool, err error)
Update takes the representation of a iPPool and updates it. Returns the server's representation of the iPPool, and an error, if there is any.
func (*FakeIPPools) Watch ¶
func (c *FakeIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested iPPools.