fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 10 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 FakeBinddnsV1

type FakeBinddnsV1 struct {
	*testing.Fake
}

func (*FakeBinddnsV1) DnsDomains

func (c *FakeBinddnsV1) DnsDomains() v1.DnsDomainInterface

func (*FakeBinddnsV1) DnsRules

func (c *FakeBinddnsV1) DnsRules() v1.DnsRuleInterface

func (*FakeBinddnsV1) RESTClient

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

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

type FakeDnsDomains

type FakeDnsDomains struct {
	Fake *FakeBinddnsV1
}

FakeDnsDomains implements DnsDomainInterface

func (*FakeDnsDomains) Create

func (c *FakeDnsDomains) Create(ctx context.Context, dnsDomain *binddnsv1.DnsDomain, opts v1.CreateOptions) (result *binddnsv1.DnsDomain, err error)

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

func (*FakeDnsDomains) Delete

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

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

func (*FakeDnsDomains) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDnsDomains) Get

func (c *FakeDnsDomains) Get(ctx context.Context, name string, options v1.GetOptions) (result *binddnsv1.DnsDomain, err error)

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

func (*FakeDnsDomains) List

func (c *FakeDnsDomains) List(ctx context.Context, opts v1.ListOptions) (result *binddnsv1.DnsDomainList, err error)

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

func (*FakeDnsDomains) Patch

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

Patch applies the patch and returns the patched dnsDomain.

func (*FakeDnsDomains) Update

func (c *FakeDnsDomains) Update(ctx context.Context, dnsDomain *binddnsv1.DnsDomain, opts v1.UpdateOptions) (result *binddnsv1.DnsDomain, err error)

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

func (*FakeDnsDomains) UpdateStatus

func (c *FakeDnsDomains) UpdateStatus(ctx context.Context, dnsDomain *binddnsv1.DnsDomain, opts v1.UpdateOptions) (*binddnsv1.DnsDomain, error)

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

func (*FakeDnsDomains) Watch

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

type FakeDnsRules

type FakeDnsRules struct {
	Fake *FakeBinddnsV1
}

FakeDnsRules implements DnsRuleInterface

func (*FakeDnsRules) Create

func (c *FakeDnsRules) Create(ctx context.Context, dnsRule *binddnsv1.DnsRule, opts v1.CreateOptions) (result *binddnsv1.DnsRule, err error)

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

func (*FakeDnsRules) Delete

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

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

func (*FakeDnsRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDnsRules) Get

func (c *FakeDnsRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *binddnsv1.DnsRule, err error)

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

func (*FakeDnsRules) List

func (c *FakeDnsRules) List(ctx context.Context, opts v1.ListOptions) (result *binddnsv1.DnsRuleList, err error)

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

func (*FakeDnsRules) Patch

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

Patch applies the patch and returns the patched dnsRule.

func (*FakeDnsRules) Update

func (c *FakeDnsRules) Update(ctx context.Context, dnsRule *binddnsv1.DnsRule, opts v1.UpdateOptions) (result *binddnsv1.DnsRule, err error)

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

func (*FakeDnsRules) UpdateStatus

func (c *FakeDnsRules) UpdateStatus(ctx context.Context, dnsRule *binddnsv1.DnsRule, opts v1.UpdateOptions) (*binddnsv1.DnsRule, error)

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

func (*FakeDnsRules) Watch

func (c *FakeDnsRules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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