fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 9 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 FakeAkoV1beta1

type FakeAkoV1beta1 struct {
	*testing.Fake
}

func (*FakeAkoV1beta1) AviInfraSettings

func (c *FakeAkoV1beta1) AviInfraSettings() v1beta1.AviInfraSettingInterface

func (*FakeAkoV1beta1) HTTPRules

func (c *FakeAkoV1beta1) HTTPRules(namespace string) v1beta1.HTTPRuleInterface

func (*FakeAkoV1beta1) HostRules

func (c *FakeAkoV1beta1) HostRules(namespace string) v1beta1.HostRuleInterface

func (*FakeAkoV1beta1) RESTClient

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

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

type FakeAviInfraSettings

type FakeAviInfraSettings struct {
	Fake *FakeAkoV1beta1
}

FakeAviInfraSettings implements AviInfraSettingInterface

func (*FakeAviInfraSettings) Create

func (c *FakeAviInfraSettings) Create(ctx context.Context, aviInfraSetting *v1beta1.AviInfraSetting, opts v1.CreateOptions) (result *v1beta1.AviInfraSetting, err error)

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

func (*FakeAviInfraSettings) Delete

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

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

func (*FakeAviInfraSettings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAviInfraSettings) Get

func (c *FakeAviInfraSettings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.AviInfraSetting, err error)

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

func (*FakeAviInfraSettings) List

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

func (*FakeAviInfraSettings) Patch

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

Patch applies the patch and returns the patched aviInfraSetting.

func (*FakeAviInfraSettings) Update

func (c *FakeAviInfraSettings) Update(ctx context.Context, aviInfraSetting *v1beta1.AviInfraSetting, opts v1.UpdateOptions) (result *v1beta1.AviInfraSetting, err error)

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

func (*FakeAviInfraSettings) UpdateStatus

func (c *FakeAviInfraSettings) UpdateStatus(ctx context.Context, aviInfraSetting *v1beta1.AviInfraSetting, opts v1.UpdateOptions) (*v1beta1.AviInfraSetting, error)

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

func (*FakeAviInfraSettings) Watch

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

type FakeHTTPRules

type FakeHTTPRules struct {
	Fake *FakeAkoV1beta1
	// contains filtered or unexported fields
}

FakeHTTPRules implements HTTPRuleInterface

func (*FakeHTTPRules) Create

func (c *FakeHTTPRules) Create(ctx context.Context, hTTPRule *v1beta1.HTTPRule, opts v1.CreateOptions) (result *v1beta1.HTTPRule, err error)

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

func (*FakeHTTPRules) Delete

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

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

func (*FakeHTTPRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHTTPRules) Get

func (c *FakeHTTPRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.HTTPRule, err error)

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

func (*FakeHTTPRules) List

func (c *FakeHTTPRules) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.HTTPRuleList, err error)

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

func (*FakeHTTPRules) Patch

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

Patch applies the patch and returns the patched hTTPRule.

func (*FakeHTTPRules) Update

func (c *FakeHTTPRules) Update(ctx context.Context, hTTPRule *v1beta1.HTTPRule, opts v1.UpdateOptions) (result *v1beta1.HTTPRule, err error)

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

func (*FakeHTTPRules) UpdateStatus

func (c *FakeHTTPRules) UpdateStatus(ctx context.Context, hTTPRule *v1beta1.HTTPRule, opts v1.UpdateOptions) (*v1beta1.HTTPRule, error)

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

func (*FakeHTTPRules) Watch

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

type FakeHostRules

type FakeHostRules struct {
	Fake *FakeAkoV1beta1
	// contains filtered or unexported fields
}

FakeHostRules implements HostRuleInterface

func (*FakeHostRules) Create

func (c *FakeHostRules) Create(ctx context.Context, hostRule *v1beta1.HostRule, opts v1.CreateOptions) (result *v1beta1.HostRule, err error)

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

func (*FakeHostRules) Delete

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

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

func (*FakeHostRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHostRules) Get

func (c *FakeHostRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.HostRule, err error)

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

func (*FakeHostRules) List

func (c *FakeHostRules) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.HostRuleList, err error)

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

func (*FakeHostRules) Patch

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

Patch applies the patch and returns the patched hostRule.

func (*FakeHostRules) Update

func (c *FakeHostRules) Update(ctx context.Context, hostRule *v1beta1.HostRule, opts v1.UpdateOptions) (result *v1beta1.HostRule, err error)

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

func (*FakeHostRules) UpdateStatus

func (c *FakeHostRules) UpdateStatus(ctx context.Context, hostRule *v1beta1.HostRule, opts v1.UpdateOptions) (*v1beta1.HostRule, error)

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

func (*FakeHostRules) Watch

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

Jump to

Keyboard shortcuts

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