fake

package
v0.0.0-...-d1b097e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2018 Weaveworks Ltd.

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.

Copyright 2018 Weaveworks Ltd.

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.

Copyright 2018 Weaveworks Ltd.

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 FakeFluxHelmReleases

type FakeFluxHelmReleases struct {
	Fake *FakeHelmV1alpha2
	// contains filtered or unexported fields
}

FakeFluxHelmReleases implements FluxHelmReleaseInterface

func (*FakeFluxHelmReleases) Create

func (c *FakeFluxHelmReleases) Create(fluxHelmRelease *v1alpha2.FluxHelmRelease) (result *v1alpha2.FluxHelmRelease, err error)

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

func (*FakeFluxHelmReleases) Delete

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

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

func (*FakeFluxHelmReleases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFluxHelmReleases) Get

func (c *FakeFluxHelmReleases) Get(name string, options v1.GetOptions) (result *v1alpha2.FluxHelmRelease, err error)

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

func (*FakeFluxHelmReleases) List

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

func (*FakeFluxHelmReleases) Patch

func (c *FakeFluxHelmReleases) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.FluxHelmRelease, err error)

Patch applies the patch and returns the patched fluxHelmRelease.

func (*FakeFluxHelmReleases) Update

func (c *FakeFluxHelmReleases) Update(fluxHelmRelease *v1alpha2.FluxHelmRelease) (result *v1alpha2.FluxHelmRelease, err error)

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

func (*FakeFluxHelmReleases) Watch

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

type FakeHelmV1alpha2

type FakeHelmV1alpha2 struct {
	*testing.Fake
}

func (*FakeHelmV1alpha2) FluxHelmReleases

func (c *FakeHelmV1alpha2) FluxHelmReleases(namespace string) v1alpha2.FluxHelmReleaseInterface

func (*FakeHelmV1alpha2) RESTClient

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