fake

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Copyright (c) 2016-2017 Bitnami

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package fake has the automatically generated clients.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHTTPTriggers

type FakeHTTPTriggers struct {
	Fake *FakeKubelessV1beta1
	// contains filtered or unexported fields
}

FakeHTTPTriggers implements HTTPTriggerInterface

func (*FakeHTTPTriggers) Create

func (c *FakeHTTPTriggers) Create(hTTPTrigger *v1beta1.HTTPTrigger) (result *v1beta1.HTTPTrigger, err error)

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

func (*FakeHTTPTriggers) Delete

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

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

func (*FakeHTTPTriggers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHTTPTriggers) Get

func (c *FakeHTTPTriggers) Get(name string, options v1.GetOptions) (result *v1beta1.HTTPTrigger, err error)

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

func (*FakeHTTPTriggers) List

func (c *FakeHTTPTriggers) List(opts v1.ListOptions) (result *v1beta1.HTTPTriggerList, err error)

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

func (*FakeHTTPTriggers) Patch

func (c *FakeHTTPTriggers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.HTTPTrigger, err error)

Patch applies the patch and returns the patched hTTPTrigger.

func (*FakeHTTPTriggers) Update

func (c *FakeHTTPTriggers) Update(hTTPTrigger *v1beta1.HTTPTrigger) (result *v1beta1.HTTPTrigger, err error)

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

func (*FakeHTTPTriggers) Watch

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

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

type FakeKubelessV1beta1

type FakeKubelessV1beta1 struct {
	*testing.Fake
}

func (*FakeKubelessV1beta1) HTTPTriggers

func (c *FakeKubelessV1beta1) HTTPTriggers(namespace string) v1beta1.HTTPTriggerInterface

func (*FakeKubelessV1beta1) RESTClient

func (c *FakeKubelessV1beta1) 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