fake

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 10 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 FakeChartGroups

type FakeChartGroups struct {
	Fake *FakeRegistryV1
}

FakeChartGroups implements ChartGroupInterface

func (*FakeChartGroups) Create

func (c *FakeChartGroups) Create(ctx context.Context, chartGroup *registryv1.ChartGroup, opts v1.CreateOptions) (result *registryv1.ChartGroup, err error)

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

func (*FakeChartGroups) Delete

func (c *FakeChartGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeChartGroups) Get

func (c *FakeChartGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *registryv1.ChartGroup, err error)

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

func (*FakeChartGroups) List

func (c *FakeChartGroups) List(ctx context.Context, opts v1.ListOptions) (result *registryv1.ChartGroupList, err error)

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

func (*FakeChartGroups) Patch

func (c *FakeChartGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *registryv1.ChartGroup, err error)

Patch applies the patch and returns the patched chartGroup.

func (*FakeChartGroups) Update

func (c *FakeChartGroups) Update(ctx context.Context, chartGroup *registryv1.ChartGroup, opts v1.UpdateOptions) (result *registryv1.ChartGroup, err error)

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

func (*FakeChartGroups) UpdateStatus

func (c *FakeChartGroups) UpdateStatus(ctx context.Context, chartGroup *registryv1.ChartGroup, opts v1.UpdateOptions) (*registryv1.ChartGroup, error)

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

func (*FakeChartGroups) Watch

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

type FakeChartInfos added in v1.4.0

type FakeChartInfos struct {
	Fake *FakeRegistryV1
	// contains filtered or unexported fields
}

FakeChartInfos implements ChartInfoInterface

type FakeCharts

type FakeCharts struct {
	Fake *FakeRegistryV1
	// contains filtered or unexported fields
}

FakeCharts implements ChartInterface

func (*FakeCharts) Create

func (c *FakeCharts) Create(ctx context.Context, chart *registryv1.Chart, opts v1.CreateOptions) (result *registryv1.Chart, err error)

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

func (*FakeCharts) Delete

func (c *FakeCharts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeCharts) DeleteCollection

func (c *FakeCharts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCharts) Get

func (c *FakeCharts) Get(ctx context.Context, name string, options v1.GetOptions) (result *registryv1.Chart, err error)

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

func (*FakeCharts) List

func (c *FakeCharts) List(ctx context.Context, opts v1.ListOptions) (result *registryv1.ChartList, err error)

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

func (*FakeCharts) Patch

func (c *FakeCharts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *registryv1.Chart, err error)

Patch applies the patch and returns the patched chart.

func (*FakeCharts) Update

func (c *FakeCharts) Update(ctx context.Context, chart *registryv1.Chart, opts v1.UpdateOptions) (result *registryv1.Chart, err error)

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

func (*FakeCharts) UpdateStatus

func (c *FakeCharts) UpdateStatus(ctx context.Context, chart *registryv1.Chart, opts v1.UpdateOptions) (*registryv1.Chart, error)

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

func (*FakeCharts) Watch

func (c *FakeCharts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeRegistryV1
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *registryv1.ConfigMap, opts v1.CreateOptions) (result *registryv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Delete

func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *registryv1.ConfigMap, err error)

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

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *registryv1.ConfigMapList, err error)

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

func (*FakeConfigMaps) Patch

func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *registryv1.ConfigMap, err error)

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *registryv1.ConfigMap, opts v1.UpdateOptions) (result *registryv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Watch

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

type FakeNamespaces

type FakeNamespaces struct {
	Fake *FakeRegistryV1
}

FakeNamespaces implements NamespaceInterface

func (*FakeNamespaces) Create

func (c *FakeNamespaces) Create(ctx context.Context, namespace *registryv1.Namespace, opts v1.CreateOptions) (result *registryv1.Namespace, err error)

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

func (*FakeNamespaces) Delete

func (c *FakeNamespaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeNamespaces) Get

func (c *FakeNamespaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *registryv1.Namespace, err error)

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

func (*FakeNamespaces) List

func (c *FakeNamespaces) List(ctx context.Context, opts v1.ListOptions) (result *registryv1.NamespaceList, err error)

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

func (*FakeNamespaces) Patch

func (c *FakeNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *registryv1.Namespace, err error)

Patch applies the patch and returns the patched namespace.

func (*FakeNamespaces) Update

func (c *FakeNamespaces) Update(ctx context.Context, namespace *registryv1.Namespace, opts v1.UpdateOptions) (result *registryv1.Namespace, err error)

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

func (*FakeNamespaces) UpdateStatus

func (c *FakeNamespaces) UpdateStatus(ctx context.Context, namespace *registryv1.Namespace, opts v1.UpdateOptions) (*registryv1.Namespace, error)

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

func (*FakeNamespaces) Watch

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

type FakeRegistryV1

type FakeRegistryV1 struct {
	*testing.Fake
}

func (*FakeRegistryV1) ChartGroups

func (c *FakeRegistryV1) ChartGroups() v1.ChartGroupInterface

func (*FakeRegistryV1) ChartInfos added in v1.4.0

func (c *FakeRegistryV1) ChartInfos(namespace string) v1.ChartInfoInterface

func (*FakeRegistryV1) Charts

func (c *FakeRegistryV1) Charts(namespace string) v1.ChartInterface

func (*FakeRegistryV1) ConfigMaps

func (c *FakeRegistryV1) ConfigMaps() v1.ConfigMapInterface

func (*FakeRegistryV1) Namespaces

func (c *FakeRegistryV1) Namespaces() v1.NamespaceInterface

func (*FakeRegistryV1) RESTClient

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

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

func (*FakeRegistryV1) Repositories

func (c *FakeRegistryV1) Repositories(namespace string) v1.RepositoryInterface

type FakeRepositories

type FakeRepositories struct {
	Fake *FakeRegistryV1
	// contains filtered or unexported fields
}

FakeRepositories implements RepositoryInterface

func (*FakeRepositories) Create

func (c *FakeRepositories) Create(ctx context.Context, repository *registryv1.Repository, opts v1.CreateOptions) (result *registryv1.Repository, err error)

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

func (*FakeRepositories) Delete

func (c *FakeRepositories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeRepositories) DeleteCollection

func (c *FakeRepositories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRepositories) Get

func (c *FakeRepositories) Get(ctx context.Context, name string, options v1.GetOptions) (result *registryv1.Repository, err error)

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

func (*FakeRepositories) List

func (c *FakeRepositories) List(ctx context.Context, opts v1.ListOptions) (result *registryv1.RepositoryList, err error)

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

func (*FakeRepositories) Patch

func (c *FakeRepositories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *registryv1.Repository, err error)

Patch applies the patch and returns the patched repository.

func (*FakeRepositories) Update

func (c *FakeRepositories) Update(ctx context.Context, repository *registryv1.Repository, opts v1.UpdateOptions) (result *registryv1.Repository, err error)

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

func (*FakeRepositories) UpdateStatus

func (c *FakeRepositories) UpdateStatus(ctx context.Context, repository *registryv1.Repository, opts v1.UpdateOptions) (*registryv1.Repository, error)

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

func (*FakeRepositories) Watch

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

Jump to

Keyboard shortcuts

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