fake

package
v0.0.0-...-a052cf5 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2018 The Kubepack Authors.

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 The Kubepack Authors.

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 The Kubepack Authors.

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 The Kubepack Authors.

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 FakeApps

type FakeApps struct {
	*testing.Fake
}

func (*FakeApps) Packs

func (c *FakeApps) Packs(namespace string) internalversion.PackInterface

func (*FakeApps) RESTClient

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

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

func (*FakeApps) Users

type FakePacks

type FakePacks struct {
	Fake *FakeApps
	// contains filtered or unexported fields
}

FakePacks implements PackInterface

func (*FakePacks) Create

func (c *FakePacks) Create(pack *apps.Pack) (result *apps.Pack, err error)

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

func (*FakePacks) Delete

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

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

func (*FakePacks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePacks) Get

func (c *FakePacks) Get(name string, options v1.GetOptions) (result *apps.Pack, err error)

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

func (*FakePacks) List

func (c *FakePacks) List(opts v1.ListOptions) (result *apps.PackList, err error)

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

func (*FakePacks) Patch

func (c *FakePacks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.Pack, err error)

Patch applies the patch and returns the patched pack.

func (*FakePacks) Update

func (c *FakePacks) Update(pack *apps.Pack) (result *apps.Pack, err error)

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

func (*FakePacks) UpdateStatus

func (c *FakePacks) UpdateStatus(pack *apps.Pack) (*apps.Pack, error)

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

func (*FakePacks) Watch

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

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeApps
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(user *apps.User) (result *apps.User, err error)

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

func (*FakeUsers) Delete

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

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

func (*FakeUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *apps.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(opts v1.ListOptions) (result *apps.UserList, err error)

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

func (*FakeUsers) Patch

func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.User, err error)

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(user *apps.User) (result *apps.User, err error)

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

func (*FakeUsers) Watch

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

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

Jump to

Keyboard shortcuts

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