fake

package
v0.0.0-...-27fb5c3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHiveTables

type FakeHiveTables struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakeHiveTables implements HiveTableInterface

func (*FakeHiveTables) Create

func (c *FakeHiveTables) Create(hiveTable *meteringv1.HiveTable) (result *meteringv1.HiveTable, err error)

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

func (*FakeHiveTables) Delete

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

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

func (*FakeHiveTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHiveTables) Get

func (c *FakeHiveTables) Get(name string, options v1.GetOptions) (result *meteringv1.HiveTable, err error)

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

func (*FakeHiveTables) List

func (c *FakeHiveTables) List(opts v1.ListOptions) (result *meteringv1.HiveTableList, err error)

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

func (*FakeHiveTables) Patch

func (c *FakeHiveTables) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.HiveTable, err error)

Patch applies the patch and returns the patched hiveTable.

func (*FakeHiveTables) Update

func (c *FakeHiveTables) Update(hiveTable *meteringv1.HiveTable) (result *meteringv1.HiveTable, err error)

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

func (*FakeHiveTables) UpdateStatus

func (c *FakeHiveTables) UpdateStatus(hiveTable *meteringv1.HiveTable) (*meteringv1.HiveTable, error)

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

func (*FakeHiveTables) Watch

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

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

type FakeMeteringConfigs

type FakeMeteringConfigs struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakeMeteringConfigs implements MeteringConfigInterface

func (*FakeMeteringConfigs) Create

func (c *FakeMeteringConfigs) Create(meteringConfig *meteringv1.MeteringConfig) (result *meteringv1.MeteringConfig, err error)

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

func (*FakeMeteringConfigs) Delete

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

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

func (*FakeMeteringConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMeteringConfigs) Get

func (c *FakeMeteringConfigs) Get(name string, options v1.GetOptions) (result *meteringv1.MeteringConfig, err error)

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

func (*FakeMeteringConfigs) List

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

func (*FakeMeteringConfigs) Patch

func (c *FakeMeteringConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.MeteringConfig, err error)

Patch applies the patch and returns the patched meteringConfig.

func (*FakeMeteringConfigs) Update

func (c *FakeMeteringConfigs) Update(meteringConfig *meteringv1.MeteringConfig) (result *meteringv1.MeteringConfig, err error)

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

func (*FakeMeteringConfigs) UpdateStatus

func (c *FakeMeteringConfigs) UpdateStatus(meteringConfig *meteringv1.MeteringConfig) (*meteringv1.MeteringConfig, error)

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

func (*FakeMeteringConfigs) Watch

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

type FakeMeteringV1

type FakeMeteringV1 struct {
	*testing.Fake
}

func (*FakeMeteringV1) HiveTables

func (c *FakeMeteringV1) HiveTables(namespace string) v1.HiveTableInterface

func (*FakeMeteringV1) MeteringConfigs

func (c *FakeMeteringV1) MeteringConfigs(namespace string) v1.MeteringConfigInterface

func (*FakeMeteringV1) PrestoTables

func (c *FakeMeteringV1) PrestoTables(namespace string) v1.PrestoTableInterface

func (*FakeMeteringV1) RESTClient

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

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

func (*FakeMeteringV1) ReportDataSources

func (c *FakeMeteringV1) ReportDataSources(namespace string) v1.ReportDataSourceInterface

func (*FakeMeteringV1) ReportQueries

func (c *FakeMeteringV1) ReportQueries(namespace string) v1.ReportQueryInterface

func (*FakeMeteringV1) Reports

func (c *FakeMeteringV1) Reports(namespace string) v1.ReportInterface

func (*FakeMeteringV1) StorageLocations

func (c *FakeMeteringV1) StorageLocations(namespace string) v1.StorageLocationInterface

type FakePrestoTables

type FakePrestoTables struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakePrestoTables implements PrestoTableInterface

func (*FakePrestoTables) Create

func (c *FakePrestoTables) Create(prestoTable *meteringv1.PrestoTable) (result *meteringv1.PrestoTable, err error)

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

func (*FakePrestoTables) Delete

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

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

func (*FakePrestoTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePrestoTables) Get

func (c *FakePrestoTables) Get(name string, options v1.GetOptions) (result *meteringv1.PrestoTable, err error)

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

func (*FakePrestoTables) List

func (c *FakePrestoTables) List(opts v1.ListOptions) (result *meteringv1.PrestoTableList, err error)

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

func (*FakePrestoTables) Patch

func (c *FakePrestoTables) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.PrestoTable, err error)

Patch applies the patch and returns the patched prestoTable.

func (*FakePrestoTables) Update

func (c *FakePrestoTables) Update(prestoTable *meteringv1.PrestoTable) (result *meteringv1.PrestoTable, err error)

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

func (*FakePrestoTables) UpdateStatus

func (c *FakePrestoTables) UpdateStatus(prestoTable *meteringv1.PrestoTable) (*meteringv1.PrestoTable, error)

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

func (*FakePrestoTables) Watch

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

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

type FakeReportDataSources

type FakeReportDataSources struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakeReportDataSources implements ReportDataSourceInterface

func (*FakeReportDataSources) Create

func (c *FakeReportDataSources) Create(reportDataSource *meteringv1.ReportDataSource) (result *meteringv1.ReportDataSource, err error)

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

func (*FakeReportDataSources) Delete

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

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

func (*FakeReportDataSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReportDataSources) Get

func (c *FakeReportDataSources) Get(name string, options v1.GetOptions) (result *meteringv1.ReportDataSource, err error)

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

func (*FakeReportDataSources) List

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

func (*FakeReportDataSources) Patch

func (c *FakeReportDataSources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.ReportDataSource, err error)

Patch applies the patch and returns the patched reportDataSource.

func (*FakeReportDataSources) Update

func (c *FakeReportDataSources) Update(reportDataSource *meteringv1.ReportDataSource) (result *meteringv1.ReportDataSource, err error)

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

func (*FakeReportDataSources) UpdateStatus

func (c *FakeReportDataSources) UpdateStatus(reportDataSource *meteringv1.ReportDataSource) (*meteringv1.ReportDataSource, error)

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

func (*FakeReportDataSources) Watch

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

type FakeReportQueries

type FakeReportQueries struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakeReportQueries implements ReportQueryInterface

func (*FakeReportQueries) Create

func (c *FakeReportQueries) Create(reportQuery *meteringv1.ReportQuery) (result *meteringv1.ReportQuery, err error)

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

func (*FakeReportQueries) Delete

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

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

func (*FakeReportQueries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReportQueries) Get

func (c *FakeReportQueries) Get(name string, options v1.GetOptions) (result *meteringv1.ReportQuery, err error)

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

func (*FakeReportQueries) List

func (c *FakeReportQueries) List(opts v1.ListOptions) (result *meteringv1.ReportQueryList, err error)

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

func (*FakeReportQueries) Patch

func (c *FakeReportQueries) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.ReportQuery, err error)

Patch applies the patch and returns the patched reportQuery.

func (*FakeReportQueries) Update

func (c *FakeReportQueries) Update(reportQuery *meteringv1.ReportQuery) (result *meteringv1.ReportQuery, err error)

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

func (*FakeReportQueries) UpdateStatus

func (c *FakeReportQueries) UpdateStatus(reportQuery *meteringv1.ReportQuery) (*meteringv1.ReportQuery, error)

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

func (*FakeReportQueries) Watch

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

type FakeReports

type FakeReports struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakeReports implements ReportInterface

func (*FakeReports) Create

func (c *FakeReports) Create(report *meteringv1.Report) (result *meteringv1.Report, err error)

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

func (*FakeReports) Delete

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

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

func (*FakeReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReports) Get

func (c *FakeReports) Get(name string, options v1.GetOptions) (result *meteringv1.Report, err error)

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

func (*FakeReports) List

func (c *FakeReports) List(opts v1.ListOptions) (result *meteringv1.ReportList, err error)

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

func (*FakeReports) Patch

func (c *FakeReports) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.Report, err error)

Patch applies the patch and returns the patched report.

func (*FakeReports) Update

func (c *FakeReports) Update(report *meteringv1.Report) (result *meteringv1.Report, err error)

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

func (*FakeReports) UpdateStatus

func (c *FakeReports) UpdateStatus(report *meteringv1.Report) (*meteringv1.Report, error)

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

func (*FakeReports) Watch

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

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

type FakeStorageLocations

type FakeStorageLocations struct {
	Fake *FakeMeteringV1
	// contains filtered or unexported fields
}

FakeStorageLocations implements StorageLocationInterface

func (*FakeStorageLocations) Create

func (c *FakeStorageLocations) Create(storageLocation *meteringv1.StorageLocation) (result *meteringv1.StorageLocation, err error)

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

func (*FakeStorageLocations) Delete

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

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

func (*FakeStorageLocations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStorageLocations) Get

func (c *FakeStorageLocations) Get(name string, options v1.GetOptions) (result *meteringv1.StorageLocation, err error)

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

func (*FakeStorageLocations) List

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

func (*FakeStorageLocations) Patch

func (c *FakeStorageLocations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *meteringv1.StorageLocation, err error)

Patch applies the patch and returns the patched storageLocation.

func (*FakeStorageLocations) Update

func (c *FakeStorageLocations) Update(storageLocation *meteringv1.StorageLocation) (result *meteringv1.StorageLocation, err error)

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

func (*FakeStorageLocations) UpdateStatus

func (c *FakeStorageLocations) UpdateStatus(storageLocation *meteringv1.StorageLocation) (*meteringv1.StorageLocation, error)

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

func (*FakeStorageLocations) Watch

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

Jump to

Keyboard shortcuts

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