Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Copyright 2017 the Heptio Ark contributors.
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 2017 the Heptio Ark contributors.
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 2017 the Heptio Ark contributors.
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 2017 the Heptio Ark contributors.
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 2017 the Heptio Ark contributors.
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 2017 the Heptio Ark contributors.
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 FakeArkV1
- func (c *FakeArkV1) Backups(namespace string) v1.BackupInterface
- func (c *FakeArkV1) Configs(namespace string) v1.ConfigInterface
- func (c *FakeArkV1) DownloadRequests(namespace string) v1.DownloadRequestInterface
- func (c *FakeArkV1) RESTClient() rest.Interface
- func (c *FakeArkV1) Restores(namespace string) v1.RestoreInterface
- func (c *FakeArkV1) Schedules(namespace string) v1.ScheduleInterface
- type FakeBackups
- func (c *FakeBackups) Create(backup *ark_v1.Backup) (result *ark_v1.Backup, err error)
- func (c *FakeBackups) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeBackups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeBackups) Get(name string, options v1.GetOptions) (result *ark_v1.Backup, err error)
- func (c *FakeBackups) List(opts v1.ListOptions) (result *ark_v1.BackupList, err error)
- func (c *FakeBackups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Backup, err error)
- func (c *FakeBackups) Update(backup *ark_v1.Backup) (result *ark_v1.Backup, err error)
- func (c *FakeBackups) UpdateStatus(backup *ark_v1.Backup) (*ark_v1.Backup, error)
- func (c *FakeBackups) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeConfigs
- func (c *FakeConfigs) Create(config *ark_v1.Config) (result *ark_v1.Config, err error)
- func (c *FakeConfigs) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeConfigs) Get(name string, options v1.GetOptions) (result *ark_v1.Config, err error)
- func (c *FakeConfigs) List(opts v1.ListOptions) (result *ark_v1.ConfigList, err error)
- func (c *FakeConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Config, err error)
- func (c *FakeConfigs) Update(config *ark_v1.Config) (result *ark_v1.Config, err error)
- func (c *FakeConfigs) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeDownloadRequests
- func (c *FakeDownloadRequests) Create(downloadRequest *ark_v1.DownloadRequest) (result *ark_v1.DownloadRequest, err error)
- func (c *FakeDownloadRequests) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDownloadRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDownloadRequests) Get(name string, options v1.GetOptions) (result *ark_v1.DownloadRequest, err error)
- func (c *FakeDownloadRequests) List(opts v1.ListOptions) (result *ark_v1.DownloadRequestList, err error)
- func (c *FakeDownloadRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.DownloadRequest, err error)
- func (c *FakeDownloadRequests) Update(downloadRequest *ark_v1.DownloadRequest) (result *ark_v1.DownloadRequest, err error)
- func (c *FakeDownloadRequests) UpdateStatus(downloadRequest *ark_v1.DownloadRequest) (*ark_v1.DownloadRequest, error)
- func (c *FakeDownloadRequests) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRestores
- func (c *FakeRestores) Create(restore *ark_v1.Restore) (result *ark_v1.Restore, err error)
- func (c *FakeRestores) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRestores) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRestores) Get(name string, options v1.GetOptions) (result *ark_v1.Restore, err error)
- func (c *FakeRestores) List(opts v1.ListOptions) (result *ark_v1.RestoreList, err error)
- func (c *FakeRestores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Restore, err error)
- func (c *FakeRestores) Update(restore *ark_v1.Restore) (result *ark_v1.Restore, err error)
- func (c *FakeRestores) UpdateStatus(restore *ark_v1.Restore) (*ark_v1.Restore, error)
- func (c *FakeRestores) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSchedules
- func (c *FakeSchedules) Create(schedule *ark_v1.Schedule) (result *ark_v1.Schedule, err error)
- func (c *FakeSchedules) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeSchedules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeSchedules) Get(name string, options v1.GetOptions) (result *ark_v1.Schedule, err error)
- func (c *FakeSchedules) List(opts v1.ListOptions) (result *ark_v1.ScheduleList, err error)
- func (c *FakeSchedules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Schedule, err error)
- func (c *FakeSchedules) Update(schedule *ark_v1.Schedule) (result *ark_v1.Schedule, err error)
- func (c *FakeSchedules) UpdateStatus(schedule *ark_v1.Schedule) (*ark_v1.Schedule, error)
- func (c *FakeSchedules) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeArkV1 ¶
func (*FakeArkV1) DownloadRequests ¶
func (c *FakeArkV1) DownloadRequests(namespace string) v1.DownloadRequestInterface
func (*FakeArkV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeBackups ¶
type FakeBackups struct { Fake *FakeArkV1 // contains filtered or unexported fields }
FakeBackups implements BackupInterface
func (*FakeBackups) Create ¶
Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any.
func (*FakeBackups) Delete ¶
func (c *FakeBackups) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the backup and deletes it. Returns an error if one occurs.
func (*FakeBackups) DeleteCollection ¶
func (c *FakeBackups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBackups) Get ¶
func (c *FakeBackups) Get(name string, options v1.GetOptions) (result *ark_v1.Backup, err error)
Get takes name of the backup, and returns the corresponding backup object, and an error if there is any.
func (*FakeBackups) List ¶
func (c *FakeBackups) List(opts v1.ListOptions) (result *ark_v1.BackupList, err error)
List takes label and field selectors, and returns the list of Backups that match those selectors.
func (*FakeBackups) Patch ¶
func (c *FakeBackups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Backup, err error)
Patch applies the patch and returns the patched backup.
func (*FakeBackups) Update ¶
Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any.
func (*FakeBackups) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBackups) Watch ¶
func (c *FakeBackups) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested backups.
type FakeConfigs ¶
type FakeConfigs struct { Fake *FakeArkV1 // contains filtered or unexported fields }
FakeConfigs implements ConfigInterface
func (*FakeConfigs) Create ¶
Create takes the representation of a config and creates it. Returns the server's representation of the config, and an error, if there is any.
func (*FakeConfigs) Delete ¶
func (c *FakeConfigs) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the config and deletes it. Returns an error if one occurs.
func (*FakeConfigs) DeleteCollection ¶
func (c *FakeConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeConfigs) Get ¶
func (c *FakeConfigs) Get(name string, options v1.GetOptions) (result *ark_v1.Config, err error)
Get takes name of the config, and returns the corresponding config object, and an error if there is any.
func (*FakeConfigs) List ¶
func (c *FakeConfigs) List(opts v1.ListOptions) (result *ark_v1.ConfigList, err error)
List takes label and field selectors, and returns the list of Configs that match those selectors.
func (*FakeConfigs) Patch ¶
func (c *FakeConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Config, err error)
Patch applies the patch and returns the patched config.
func (*FakeConfigs) Update ¶
Update takes the representation of a config and updates it. Returns the server's representation of the config, and an error, if there is any.
func (*FakeConfigs) Watch ¶
func (c *FakeConfigs) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested configs.
type FakeDownloadRequests ¶
type FakeDownloadRequests struct { Fake *FakeArkV1 // contains filtered or unexported fields }
FakeDownloadRequests implements DownloadRequestInterface
func (*FakeDownloadRequests) Create ¶
func (c *FakeDownloadRequests) Create(downloadRequest *ark_v1.DownloadRequest) (result *ark_v1.DownloadRequest, err error)
Create takes the representation of a downloadRequest and creates it. Returns the server's representation of the downloadRequest, and an error, if there is any.
func (*FakeDownloadRequests) Delete ¶
func (c *FakeDownloadRequests) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the downloadRequest and deletes it. Returns an error if one occurs.
func (*FakeDownloadRequests) DeleteCollection ¶
func (c *FakeDownloadRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDownloadRequests) Get ¶
func (c *FakeDownloadRequests) Get(name string, options v1.GetOptions) (result *ark_v1.DownloadRequest, err error)
Get takes name of the downloadRequest, and returns the corresponding downloadRequest object, and an error if there is any.
func (*FakeDownloadRequests) List ¶
func (c *FakeDownloadRequests) List(opts v1.ListOptions) (result *ark_v1.DownloadRequestList, err error)
List takes label and field selectors, and returns the list of DownloadRequests that match those selectors.
func (*FakeDownloadRequests) Patch ¶
func (c *FakeDownloadRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.DownloadRequest, err error)
Patch applies the patch and returns the patched downloadRequest.
func (*FakeDownloadRequests) Update ¶
func (c *FakeDownloadRequests) Update(downloadRequest *ark_v1.DownloadRequest) (result *ark_v1.DownloadRequest, err error)
Update takes the representation of a downloadRequest and updates it. Returns the server's representation of the downloadRequest, and an error, if there is any.
func (*FakeDownloadRequests) UpdateStatus ¶
func (c *FakeDownloadRequests) UpdateStatus(downloadRequest *ark_v1.DownloadRequest) (*ark_v1.DownloadRequest, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDownloadRequests) Watch ¶
func (c *FakeDownloadRequests) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested downloadRequests.
type FakeRestores ¶
type FakeRestores struct { Fake *FakeArkV1 // contains filtered or unexported fields }
FakeRestores implements RestoreInterface
func (*FakeRestores) Create ¶
Create takes the representation of a restore and creates it. Returns the server's representation of the restore, and an error, if there is any.
func (*FakeRestores) Delete ¶
func (c *FakeRestores) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the restore and deletes it. Returns an error if one occurs.
func (*FakeRestores) DeleteCollection ¶
func (c *FakeRestores) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRestores) Get ¶
func (c *FakeRestores) Get(name string, options v1.GetOptions) (result *ark_v1.Restore, err error)
Get takes name of the restore, and returns the corresponding restore object, and an error if there is any.
func (*FakeRestores) List ¶
func (c *FakeRestores) List(opts v1.ListOptions) (result *ark_v1.RestoreList, err error)
List takes label and field selectors, and returns the list of Restores that match those selectors.
func (*FakeRestores) Patch ¶
func (c *FakeRestores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Restore, err error)
Patch applies the patch and returns the patched restore.
func (*FakeRestores) Update ¶
Update takes the representation of a restore and updates it. Returns the server's representation of the restore, and an error, if there is any.
func (*FakeRestores) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRestores) Watch ¶
func (c *FakeRestores) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested restores.
type FakeSchedules ¶
type FakeSchedules struct { Fake *FakeArkV1 // contains filtered or unexported fields }
FakeSchedules implements ScheduleInterface
func (*FakeSchedules) Create ¶
Create takes the representation of a schedule and creates it. Returns the server's representation of the schedule, and an error, if there is any.
func (*FakeSchedules) Delete ¶
func (c *FakeSchedules) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the schedule and deletes it. Returns an error if one occurs.
func (*FakeSchedules) DeleteCollection ¶
func (c *FakeSchedules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSchedules) Get ¶
func (c *FakeSchedules) Get(name string, options v1.GetOptions) (result *ark_v1.Schedule, err error)
Get takes name of the schedule, and returns the corresponding schedule object, and an error if there is any.
func (*FakeSchedules) List ¶
func (c *FakeSchedules) List(opts v1.ListOptions) (result *ark_v1.ScheduleList, err error)
List takes label and field selectors, and returns the list of Schedules that match those selectors.
func (*FakeSchedules) Patch ¶
func (c *FakeSchedules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *ark_v1.Schedule, err error)
Patch applies the patch and returns the patched schedule.
func (*FakeSchedules) Update ¶
Update takes the representation of a schedule and updates it. Returns the server's representation of the schedule, and an error, if there is any.
func (*FakeSchedules) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSchedules) Watch ¶
func (c *FakeSchedules) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested schedules.