Documentation ¶
Overview ¶
Copyright 2018 Nerdalize
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 Nerdalize ¶
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 Nerdalize ¶
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 FakeDatasets
- func (c *FakeDatasets) Create(dataset *stable_nerdalize_com_v1.Dataset) (result *stable_nerdalize_com_v1.Dataset, err error)
- func (c *FakeDatasets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDatasets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDatasets) Get(name string, options v1.GetOptions) (result *stable_nerdalize_com_v1.Dataset, err error)
- func (c *FakeDatasets) List(opts v1.ListOptions) (result *stable_nerdalize_com_v1.DatasetList, err error)
- func (c *FakeDatasets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *stable_nerdalize_com_v1.Dataset, err error)
- func (c *FakeDatasets) Update(dataset *stable_nerdalize_com_v1.Dataset) (result *stable_nerdalize_com_v1.Dataset, err error)
- func (c *FakeDatasets) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeNerdalizeV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDatasets ¶
type FakeDatasets struct { Fake *FakeNerdalizeV1 // contains filtered or unexported fields }
FakeDatasets implements DatasetInterface
func (*FakeDatasets) Create ¶
func (c *FakeDatasets) Create(dataset *stable_nerdalize_com_v1.Dataset) (result *stable_nerdalize_com_v1.Dataset, err error)
Create takes the representation of a dataset and creates it. Returns the server's representation of the dataset, and an error, if there is any.
func (*FakeDatasets) Delete ¶
func (c *FakeDatasets) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the dataset and deletes it. Returns an error if one occurs.
func (*FakeDatasets) DeleteCollection ¶
func (c *FakeDatasets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDatasets) Get ¶
func (c *FakeDatasets) Get(name string, options v1.GetOptions) (result *stable_nerdalize_com_v1.Dataset, err error)
Get takes name of the dataset, and returns the corresponding dataset object, and an error if there is any.
func (*FakeDatasets) List ¶
func (c *FakeDatasets) List(opts v1.ListOptions) (result *stable_nerdalize_com_v1.DatasetList, err error)
List takes label and field selectors, and returns the list of Datasets that match those selectors.
func (*FakeDatasets) Patch ¶
func (c *FakeDatasets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *stable_nerdalize_com_v1.Dataset, err error)
Patch applies the patch and returns the patched dataset.
func (*FakeDatasets) Update ¶
func (c *FakeDatasets) Update(dataset *stable_nerdalize_com_v1.Dataset) (result *stable_nerdalize_com_v1.Dataset, err error)
Update takes the representation of a dataset and updates it. Returns the server's representation of the dataset, and an error, if there is any.
func (*FakeDatasets) Watch ¶
func (c *FakeDatasets) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested datasets.
type FakeNerdalizeV1 ¶
func (*FakeNerdalizeV1) Datasets ¶
func (c *FakeNerdalizeV1) Datasets(namespace string) v1.DatasetInterface
func (*FakeNerdalizeV1) RESTClient ¶
func (c *FakeNerdalizeV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.