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 ¶
- type FakeApps
- type FakePacks
- func (c *FakePacks) Create(pack *apps.Pack) (result *apps.Pack, err error)
- func (c *FakePacks) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePacks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePacks) Get(name string, options v1.GetOptions) (result *apps.Pack, err error)
- func (c *FakePacks) List(opts v1.ListOptions) (result *apps.PackList, err error)
- func (c *FakePacks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.Pack, err error)
- func (c *FakePacks) Update(pack *apps.Pack) (result *apps.Pack, err error)
- func (c *FakePacks) UpdateStatus(pack *apps.Pack) (*apps.Pack, error)
- func (c *FakePacks) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeUsers
- func (c *FakeUsers) Create(user *apps.User) (result *apps.User, err error)
- func (c *FakeUsers) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeUsers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *apps.User, err error)
- func (c *FakeUsers) List(opts v1.ListOptions) (result *apps.UserList, err error)
- func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.User, err error)
- func (c *FakeUsers) Update(user *apps.User) (result *apps.User, err error)
- func (c *FakeUsers) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeApps ¶
func (*FakeApps) Packs ¶
func (c *FakeApps) Packs(namespace string) internalversion.PackInterface
func (*FakeApps) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeApps) Users ¶
func (c *FakeApps) Users() internalversion.UserInterface
type FakePacks ¶
type FakePacks struct { Fake *FakeApps // contains filtered or unexported fields }
FakePacks implements PackInterface
func (*FakePacks) Create ¶
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 ¶
Get takes name of the pack, and returns the corresponding pack object, and an error if there is any.
func (*FakePacks) List ¶
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 ¶
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 ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
type FakeUsers ¶
type FakeUsers struct {
Fake *FakeApps
}
FakeUsers implements UserInterface
func (*FakeUsers) Create ¶
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 ¶
Get takes name of the user, and returns the corresponding user object, and an error if there is any.
func (*FakeUsers) List ¶
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.