fake

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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 FakeVaultPolicies

type FakeVaultPolicies struct {
	Fake *FakeVaultPolicyV1
}

FakeVaultPolicies implements VaultPolicyInterface

func (*FakeVaultPolicies) Create

func (c *FakeVaultPolicies) Create(vaultpolicy *vaultpolicy_v1.VaultPolicy) (result *vaultpolicy_v1.VaultPolicy, err error)

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

func (*FakeVaultPolicies) Delete

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

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

func (*FakeVaultPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVaultPolicies) Get

func (c *FakeVaultPolicies) Get(name string, options v1.GetOptions) (result *vaultpolicy_v1.VaultPolicy, err error)

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

func (*FakeVaultPolicies) List

func (c *FakeVaultPolicies) List(opts v1.ListOptions) (result *vaultpolicy_v1.VaultPolicyList, err error)

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

func (*FakeVaultPolicies) Patch

func (c *FakeVaultPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *vaultpolicy_v1.VaultPolicy, err error)

Patch applies the patch and returns the patched vaultpolicy.

func (*FakeVaultPolicies) Update

func (c *FakeVaultPolicies) Update(vaultpolicy *vaultpolicy_v1.VaultPolicy) (result *vaultpolicy_v1.VaultPolicy, err error)

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

func (*FakeVaultPolicies) Watch

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

type FakeVaultPolicyV1

type FakeVaultPolicyV1 struct {
	*testing.Fake
}

func (*FakeVaultPolicyV1) RESTClient

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

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

func (*FakeVaultPolicyV1) VaultPolicies

func (c *FakeVaultPolicyV1) VaultPolicies() v1.VaultPolicyInterface

Jump to

Keyboard shortcuts

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