fake

package
v2.16.12 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 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 FakeAddonConfigs

type FakeAddonConfigs struct {
	Fake *FakeKubermaticV1
}

FakeAddonConfigs implements AddonConfigInterface

func (*FakeAddonConfigs) Create

func (c *FakeAddonConfigs) Create(ctx context.Context, addonConfig *kubermaticv1.AddonConfig, opts v1.CreateOptions) (result *kubermaticv1.AddonConfig, err error)

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

func (*FakeAddonConfigs) Delete

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

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

func (*FakeAddonConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAddonConfigs) Get

func (c *FakeAddonConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.AddonConfig, err error)

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

func (*FakeAddonConfigs) List

func (c *FakeAddonConfigs) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.AddonConfigList, err error)

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

func (*FakeAddonConfigs) Patch

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

Patch applies the patch and returns the patched addonConfig.

func (*FakeAddonConfigs) Update

func (c *FakeAddonConfigs) Update(ctx context.Context, addonConfig *kubermaticv1.AddonConfig, opts v1.UpdateOptions) (result *kubermaticv1.AddonConfig, err error)

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

func (*FakeAddonConfigs) Watch

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

type FakeAddons

type FakeAddons struct {
	Fake *FakeKubermaticV1
	// contains filtered or unexported fields
}

FakeAddons implements AddonInterface

func (*FakeAddons) Create

func (c *FakeAddons) Create(ctx context.Context, addon *kubermaticv1.Addon, opts v1.CreateOptions) (result *kubermaticv1.Addon, err error)

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

func (*FakeAddons) Delete

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

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

func (*FakeAddons) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAddons) Get

func (c *FakeAddons) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.Addon, err error)

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

func (*FakeAddons) List

func (c *FakeAddons) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.AddonList, err error)

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

func (*FakeAddons) Patch

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

Patch applies the patch and returns the patched addon.

func (*FakeAddons) Update

func (c *FakeAddons) Update(ctx context.Context, addon *kubermaticv1.Addon, opts v1.UpdateOptions) (result *kubermaticv1.Addon, err error)

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

func (*FakeAddons) UpdateStatus

func (c *FakeAddons) UpdateStatus(ctx context.Context, addon *kubermaticv1.Addon, opts v1.UpdateOptions) (*kubermaticv1.Addon, error)

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

func (*FakeAddons) Watch

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

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

type FakeClusters

type FakeClusters struct {
	Fake *FakeKubermaticV1
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *kubermaticv1.Cluster, opts v1.CreateOptions) (result *kubermaticv1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.Cluster, err error)

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

func (*FakeClusters) List

func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.ClusterList, err error)

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *kubermaticv1.Cluster, opts v1.UpdateOptions) (result *kubermaticv1.Cluster, err error)

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

func (*FakeClusters) UpdateStatus

func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *kubermaticv1.Cluster, opts v1.UpdateOptions) (*kubermaticv1.Cluster, error)

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

func (*FakeClusters) Watch

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

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

type FakeConstraintTemplates added in v2.16.3

type FakeConstraintTemplates struct {
	Fake *FakeKubermaticV1
}

FakeConstraintTemplates implements ConstraintTemplateInterface

func (*FakeConstraintTemplates) Create added in v2.16.3

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

func (*FakeConstraintTemplates) Delete added in v2.16.3

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

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

func (*FakeConstraintTemplates) DeleteCollection added in v2.16.3

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

DeleteCollection deletes a collection of objects.

func (*FakeConstraintTemplates) Get added in v2.16.3

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

func (*FakeConstraintTemplates) List added in v2.16.3

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

func (*FakeConstraintTemplates) Patch added in v2.16.3

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

Patch applies the patch and returns the patched constraintTemplate.

func (*FakeConstraintTemplates) Update added in v2.16.3

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

func (*FakeConstraintTemplates) Watch added in v2.16.3

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

type FakeConstraints added in v2.16.3

type FakeConstraints struct {
	Fake *FakeKubermaticV1
	// contains filtered or unexported fields
}

FakeConstraints implements ConstraintInterface

func (*FakeConstraints) Create added in v2.16.3

func (c *FakeConstraints) Create(ctx context.Context, constraint *kubermaticv1.Constraint, opts v1.CreateOptions) (result *kubermaticv1.Constraint, err error)

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

func (*FakeConstraints) Delete added in v2.16.3

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

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

func (*FakeConstraints) DeleteCollection added in v2.16.3

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

DeleteCollection deletes a collection of objects.

func (*FakeConstraints) Get added in v2.16.3

func (c *FakeConstraints) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.Constraint, err error)

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

func (*FakeConstraints) List added in v2.16.3

func (c *FakeConstraints) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.ConstraintList, err error)

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

func (*FakeConstraints) Patch added in v2.16.3

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

Patch applies the patch and returns the patched constraint.

func (*FakeConstraints) Update added in v2.16.3

func (c *FakeConstraints) Update(ctx context.Context, constraint *kubermaticv1.Constraint, opts v1.UpdateOptions) (result *kubermaticv1.Constraint, err error)

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

func (*FakeConstraints) Watch added in v2.16.3

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

type FakeExternalClusters

type FakeExternalClusters struct {
	Fake *FakeKubermaticV1
}

FakeExternalClusters implements ExternalClusterInterface

func (*FakeExternalClusters) Create

func (c *FakeExternalClusters) Create(ctx context.Context, externalCluster *kubermaticv1.ExternalCluster, opts v1.CreateOptions) (result *kubermaticv1.ExternalCluster, err error)

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

func (*FakeExternalClusters) Delete

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

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

func (*FakeExternalClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalClusters) Get

func (c *FakeExternalClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.ExternalCluster, err error)

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

func (*FakeExternalClusters) List

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

func (*FakeExternalClusters) Patch

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

Patch applies the patch and returns the patched externalCluster.

func (*FakeExternalClusters) Update

func (c *FakeExternalClusters) Update(ctx context.Context, externalCluster *kubermaticv1.ExternalCluster, opts v1.UpdateOptions) (result *kubermaticv1.ExternalCluster, err error)

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

func (*FakeExternalClusters) Watch

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

type FakeKubermaticSettings

type FakeKubermaticSettings struct {
	Fake *FakeKubermaticV1
}

FakeKubermaticSettings implements KubermaticSettingInterface

func (*FakeKubermaticSettings) Create

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

func (*FakeKubermaticSettings) Delete

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

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

func (*FakeKubermaticSettings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubermaticSettings) Get

func (c *FakeKubermaticSettings) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.KubermaticSetting, err error)

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

func (*FakeKubermaticSettings) List

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

func (*FakeKubermaticSettings) Patch

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

Patch applies the patch and returns the patched kubermaticSetting.

func (*FakeKubermaticSettings) Update

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

func (*FakeKubermaticSettings) Watch

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

type FakeKubermaticV1

type FakeKubermaticV1 struct {
	*testing.Fake
}

func (*FakeKubermaticV1) AddonConfigs

func (c *FakeKubermaticV1) AddonConfigs() v1.AddonConfigInterface

func (*FakeKubermaticV1) Addons

func (c *FakeKubermaticV1) Addons(namespace string) v1.AddonInterface

func (*FakeKubermaticV1) Clusters

func (c *FakeKubermaticV1) Clusters() v1.ClusterInterface

func (*FakeKubermaticV1) ConstraintTemplates added in v2.16.3

func (c *FakeKubermaticV1) ConstraintTemplates() v1.ConstraintTemplateInterface

func (*FakeKubermaticV1) Constraints added in v2.16.3

func (c *FakeKubermaticV1) Constraints(namespace string) v1.ConstraintInterface

func (*FakeKubermaticV1) ExternalClusters

func (c *FakeKubermaticV1) ExternalClusters() v1.ExternalClusterInterface

func (*FakeKubermaticV1) KubermaticSettings

func (c *FakeKubermaticV1) KubermaticSettings() v1.KubermaticSettingInterface

func (*FakeKubermaticV1) Projects

func (c *FakeKubermaticV1) Projects() v1.ProjectInterface

func (*FakeKubermaticV1) RESTClient

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

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

func (*FakeKubermaticV1) UserProjectBindings

func (c *FakeKubermaticV1) UserProjectBindings() v1.UserProjectBindingInterface

func (*FakeKubermaticV1) UserSSHKeys

func (c *FakeKubermaticV1) UserSSHKeys() v1.UserSSHKeyInterface

func (*FakeKubermaticV1) Users

func (c *FakeKubermaticV1) Users() v1.UserInterface

type FakeProjects

type FakeProjects struct {
	Fake *FakeKubermaticV1
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(ctx context.Context, project *kubermaticv1.Project, opts v1.CreateOptions) (result *kubermaticv1.Project, err error)

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

func (*FakeProjects) Delete

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

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

func (*FakeProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

func (c *FakeProjects) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.Project, err error)

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

func (*FakeProjects) List

func (c *FakeProjects) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.ProjectList, err error)

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

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(ctx context.Context, project *kubermaticv1.Project, opts v1.UpdateOptions) (result *kubermaticv1.Project, err error)

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

func (*FakeProjects) UpdateStatus

func (c *FakeProjects) UpdateStatus(ctx context.Context, project *kubermaticv1.Project, opts v1.UpdateOptions) (*kubermaticv1.Project, error)

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

func (*FakeProjects) Watch

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

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

type FakeUserProjectBindings

type FakeUserProjectBindings struct {
	Fake *FakeKubermaticV1
}

FakeUserProjectBindings implements UserProjectBindingInterface

func (*FakeUserProjectBindings) Create

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

func (*FakeUserProjectBindings) Delete

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

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

func (*FakeUserProjectBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUserProjectBindings) Get

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

func (*FakeUserProjectBindings) List

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

func (*FakeUserProjectBindings) Patch

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

Patch applies the patch and returns the patched userProjectBinding.

func (*FakeUserProjectBindings) Update

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

func (*FakeUserProjectBindings) Watch

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

type FakeUserSSHKeys

type FakeUserSSHKeys struct {
	Fake *FakeKubermaticV1
}

FakeUserSSHKeys implements UserSSHKeyInterface

func (*FakeUserSSHKeys) Create

func (c *FakeUserSSHKeys) Create(ctx context.Context, userSSHKey *kubermaticv1.UserSSHKey, opts v1.CreateOptions) (result *kubermaticv1.UserSSHKey, err error)

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

func (*FakeUserSSHKeys) Delete

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

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

func (*FakeUserSSHKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUserSSHKeys) Get

func (c *FakeUserSSHKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.UserSSHKey, err error)

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

func (*FakeUserSSHKeys) List

func (c *FakeUserSSHKeys) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.UserSSHKeyList, err error)

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

func (*FakeUserSSHKeys) Patch

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

Patch applies the patch and returns the patched userSSHKey.

func (*FakeUserSSHKeys) Update

func (c *FakeUserSSHKeys) Update(ctx context.Context, userSSHKey *kubermaticv1.UserSSHKey, opts v1.UpdateOptions) (result *kubermaticv1.UserSSHKey, err error)

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

func (*FakeUserSSHKeys) Watch

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeKubermaticV1
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(ctx context.Context, user *kubermaticv1.User, opts v1.CreateOptions) (result *kubermaticv1.User, err error)

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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubermaticv1.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *kubermaticv1.UserList, err error)

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

func (*FakeUsers) Patch

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

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(ctx context.Context, user *kubermaticv1.User, opts v1.UpdateOptions) (result *kubermaticv1.User, err error)

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

func (*FakeUsers) Watch

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

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

Jump to

Keyboard shortcuts

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