fake

package
v0.0.0-...-3e82ac8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeChecks

type FakeChecks struct {
	Fake *FakeIcingaV1
	// contains filtered or unexported fields
}

FakeChecks implements CheckInterface

func (*FakeChecks) Create

func (c *FakeChecks) Create(check *icinga_nexinto_com_v1.Check) (result *icinga_nexinto_com_v1.Check, err error)

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

func (*FakeChecks) Delete

func (c *FakeChecks) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeChecks) DeleteCollection

func (c *FakeChecks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeChecks) Get

func (c *FakeChecks) Get(name string, options v1.GetOptions) (result *icinga_nexinto_com_v1.Check, err error)

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

func (*FakeChecks) List

func (c *FakeChecks) List(opts v1.ListOptions) (result *icinga_nexinto_com_v1.CheckList, err error)

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

func (*FakeChecks) Patch

func (c *FakeChecks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *icinga_nexinto_com_v1.Check, err error)

Patch applies the patch and returns the patched check.

func (*FakeChecks) Update

func (c *FakeChecks) Update(check *icinga_nexinto_com_v1.Check) (result *icinga_nexinto_com_v1.Check, err error)

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

func (*FakeChecks) Watch

func (c *FakeChecks) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeHostGroups

type FakeHostGroups struct {
	Fake *FakeIcingaV1
	// contains filtered or unexported fields
}

FakeHostGroups implements HostGroupInterface

func (*FakeHostGroups) Create

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

func (*FakeHostGroups) Delete

func (c *FakeHostGroups) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeHostGroups) DeleteCollection

func (c *FakeHostGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHostGroups) Get

func (c *FakeHostGroups) Get(name string, options v1.GetOptions) (result *icinga_nexinto_com_v1.HostGroup, err error)

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

func (*FakeHostGroups) List

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

func (*FakeHostGroups) Patch

func (c *FakeHostGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *icinga_nexinto_com_v1.HostGroup, err error)

Patch applies the patch and returns the patched hostGroup.

func (*FakeHostGroups) Update

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

func (*FakeHostGroups) Watch

func (c *FakeHostGroups) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeHosts

type FakeHosts struct {
	Fake *FakeIcingaV1
	// contains filtered or unexported fields
}

FakeHosts implements HostInterface

func (*FakeHosts) Create

func (c *FakeHosts) Create(host *icinga_nexinto_com_v1.Host) (result *icinga_nexinto_com_v1.Host, err error)

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

func (*FakeHosts) Delete

func (c *FakeHosts) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeHosts) DeleteCollection

func (c *FakeHosts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHosts) Get

func (c *FakeHosts) Get(name string, options v1.GetOptions) (result *icinga_nexinto_com_v1.Host, err error)

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

func (*FakeHosts) List

func (c *FakeHosts) List(opts v1.ListOptions) (result *icinga_nexinto_com_v1.HostList, err error)

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

func (*FakeHosts) Patch

func (c *FakeHosts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *icinga_nexinto_com_v1.Host, err error)

Patch applies the patch and returns the patched host.

func (*FakeHosts) Update

func (c *FakeHosts) Update(host *icinga_nexinto_com_v1.Host) (result *icinga_nexinto_com_v1.Host, err error)

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

func (*FakeHosts) Watch

func (c *FakeHosts) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeIcingaV1

type FakeIcingaV1 struct {
	*testing.Fake
}

func (*FakeIcingaV1) Checks

func (c *FakeIcingaV1) Checks(namespace string) v1.CheckInterface

func (*FakeIcingaV1) HostGroups

func (c *FakeIcingaV1) HostGroups(namespace string) v1.HostGroupInterface

func (*FakeIcingaV1) Hosts

func (c *FakeIcingaV1) Hosts(namespace string) v1.HostInterface

func (*FakeIcingaV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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