fake

package
v2.18.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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 FakeAlertmanagers added in v2.18.0

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

FakeAlertmanagers implements AlertmanagerInterface

func (*FakeAlertmanagers) Create added in v2.18.0

func (c *FakeAlertmanagers) Create(ctx context.Context, alertmanager *kubermaticv1.Alertmanager, opts v1.CreateOptions) (result *kubermaticv1.Alertmanager, err error)

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

func (*FakeAlertmanagers) Delete added in v2.18.0

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

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

func (*FakeAlertmanagers) DeleteCollection added in v2.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeAlertmanagers) Get added in v2.18.0

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

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

func (*FakeAlertmanagers) List added in v2.18.0

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

func (*FakeAlertmanagers) Patch added in v2.18.0

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

Patch applies the patch and returns the patched alertmanager.

func (*FakeAlertmanagers) Update added in v2.18.0

func (c *FakeAlertmanagers) Update(ctx context.Context, alertmanager *kubermaticv1.Alertmanager, opts v1.UpdateOptions) (result *kubermaticv1.Alertmanager, err error)

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

func (*FakeAlertmanagers) Watch added in v2.18.0

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

type FakeAllowedRegistries added in v2.18.0

type FakeAllowedRegistries struct {
	Fake *FakeKubermaticV1
}

FakeAllowedRegistries implements AllowedRegistryInterface

func (*FakeAllowedRegistries) Create added in v2.18.0

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

func (*FakeAllowedRegistries) Delete added in v2.18.0

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

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

func (*FakeAllowedRegistries) DeleteCollection added in v2.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeAllowedRegistries) Get added in v2.18.0

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

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

func (*FakeAllowedRegistries) List added in v2.18.0

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

func (*FakeAllowedRegistries) Patch added in v2.18.0

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

Patch applies the patch and returns the patched allowedRegistry.

func (*FakeAllowedRegistries) Update added in v2.18.0

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

func (*FakeAllowedRegistries) Watch added in v2.18.0

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

type FakeClusterTemplateInstances added in v2.18.0

type FakeClusterTemplateInstances struct {
	Fake *FakeKubermaticV1
}

FakeClusterTemplateInstances implements ClusterTemplateInstanceInterface

func (*FakeClusterTemplateInstances) Create added in v2.18.0

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

func (*FakeClusterTemplateInstances) Delete added in v2.18.0

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

func (*FakeClusterTemplateInstances) DeleteCollection added in v2.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterTemplateInstances) Get added in v2.18.0

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

func (*FakeClusterTemplateInstances) List added in v2.18.0

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

func (*FakeClusterTemplateInstances) Patch added in v2.18.0

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

Patch applies the patch and returns the patched clusterTemplateInstance.

func (*FakeClusterTemplateInstances) Update added in v2.18.0

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

func (*FakeClusterTemplateInstances) Watch added in v2.18.0

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

type FakeClusterTemplates added in v2.18.0

type FakeClusterTemplates struct {
	Fake *FakeKubermaticV1
}

FakeClusterTemplates implements ClusterTemplateInterface

func (*FakeClusterTemplates) Create added in v2.18.0

func (c *FakeClusterTemplates) Create(ctx context.Context, clusterTemplate *kubermaticv1.ClusterTemplate, opts v1.CreateOptions) (result *kubermaticv1.ClusterTemplate, err error)

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

func (*FakeClusterTemplates) Delete added in v2.18.0

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

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

func (*FakeClusterTemplates) DeleteCollection added in v2.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterTemplates) Get added in v2.18.0

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

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

func (*FakeClusterTemplates) List added in v2.18.0

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

func (*FakeClusterTemplates) Patch added in v2.18.0

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

Patch applies the patch and returns the patched clusterTemplate.

func (*FakeClusterTemplates) Update added in v2.18.0

func (c *FakeClusterTemplates) Update(ctx context.Context, clusterTemplate *kubermaticv1.ClusterTemplate, opts v1.UpdateOptions) (result *kubermaticv1.ClusterTemplate, err error)

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

func (*FakeClusterTemplates) Watch added in v2.18.0

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

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 FakeEtcdBackupConfigs added in v2.17.0

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

FakeEtcdBackupConfigs implements EtcdBackupConfigInterface

func (*FakeEtcdBackupConfigs) Create added in v2.17.0

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

func (*FakeEtcdBackupConfigs) Delete added in v2.17.0

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

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

func (*FakeEtcdBackupConfigs) DeleteCollection added in v2.17.0

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdBackupConfigs) Get added in v2.17.0

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

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

func (*FakeEtcdBackupConfigs) List added in v2.17.0

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

func (*FakeEtcdBackupConfigs) Patch added in v2.17.0

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

Patch applies the patch and returns the patched etcdBackupConfig.

func (*FakeEtcdBackupConfigs) Update added in v2.17.0

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

func (*FakeEtcdBackupConfigs) UpdateStatus added in v2.17.0

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

func (*FakeEtcdBackupConfigs) Watch added in v2.17.0

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

type FakeEtcdRestores added in v2.17.0

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

FakeEtcdRestores implements EtcdRestoreInterface

func (*FakeEtcdRestores) Create added in v2.17.0

func (c *FakeEtcdRestores) Create(ctx context.Context, etcdRestore *kubermaticv1.EtcdRestore, opts v1.CreateOptions) (result *kubermaticv1.EtcdRestore, err error)

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

func (*FakeEtcdRestores) Delete added in v2.17.0

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

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

func (*FakeEtcdRestores) DeleteCollection added in v2.17.0

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdRestores) Get added in v2.17.0

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

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

func (*FakeEtcdRestores) List added in v2.17.0

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

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

func (*FakeEtcdRestores) Patch added in v2.17.0

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

Patch applies the patch and returns the patched etcdRestore.

func (*FakeEtcdRestores) Update added in v2.17.0

func (c *FakeEtcdRestores) Update(ctx context.Context, etcdRestore *kubermaticv1.EtcdRestore, opts v1.UpdateOptions) (result *kubermaticv1.EtcdRestore, err error)

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

func (*FakeEtcdRestores) UpdateStatus added in v2.17.0

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

func (*FakeEtcdRestores) Watch added in v2.17.0

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

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) Alertmanagers added in v2.18.0

func (c *FakeKubermaticV1) Alertmanagers(namespace string) v1.AlertmanagerInterface

func (*FakeKubermaticV1) AllowedRegistries added in v2.18.0

func (c *FakeKubermaticV1) AllowedRegistries() v1.AllowedRegistryInterface

func (*FakeKubermaticV1) ClusterTemplateInstances added in v2.18.0

func (c *FakeKubermaticV1) ClusterTemplateInstances() v1.ClusterTemplateInstanceInterface

func (*FakeKubermaticV1) ClusterTemplates added in v2.18.0

func (c *FakeKubermaticV1) ClusterTemplates() v1.ClusterTemplateInterface

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) EtcdBackupConfigs added in v2.17.0

func (c *FakeKubermaticV1) EtcdBackupConfigs(namespace string) v1.EtcdBackupConfigInterface

func (*FakeKubermaticV1) EtcdRestores added in v2.17.0

func (c *FakeKubermaticV1) EtcdRestores(namespace string) v1.EtcdRestoreInterface

func (*FakeKubermaticV1) ExternalClusters

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

func (*FakeKubermaticV1) KubermaticSettings

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

func (*FakeKubermaticV1) MLAAdminSettings added in v2.18.0

func (c *FakeKubermaticV1) MLAAdminSettings(namespace string) v1.MLAAdminSettingInterface

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) RuleGroups added in v2.18.0

func (c *FakeKubermaticV1) RuleGroups(namespace string) v1.RuleGroupInterface

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 FakeMLAAdminSettings added in v2.18.0

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

FakeMLAAdminSettings implements MLAAdminSettingInterface

func (*FakeMLAAdminSettings) Create added in v2.18.0

func (c *FakeMLAAdminSettings) Create(ctx context.Context, mLAAdminSetting *kubermaticv1.MLAAdminSetting, opts v1.CreateOptions) (result *kubermaticv1.MLAAdminSetting, err error)

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

func (*FakeMLAAdminSettings) Delete added in v2.18.0

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

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

func (*FakeMLAAdminSettings) DeleteCollection added in v2.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeMLAAdminSettings) Get added in v2.18.0

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

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

func (*FakeMLAAdminSettings) List added in v2.18.0

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

func (*FakeMLAAdminSettings) Patch added in v2.18.0

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

Patch applies the patch and returns the patched mLAAdminSetting.

func (*FakeMLAAdminSettings) Update added in v2.18.0

func (c *FakeMLAAdminSettings) Update(ctx context.Context, mLAAdminSetting *kubermaticv1.MLAAdminSetting, opts v1.UpdateOptions) (result *kubermaticv1.MLAAdminSetting, err error)

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

func (*FakeMLAAdminSettings) Watch added in v2.18.0

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

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 FakeRuleGroups added in v2.18.0

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

FakeRuleGroups implements RuleGroupInterface

func (*FakeRuleGroups) Create added in v2.18.0

func (c *FakeRuleGroups) Create(ctx context.Context, ruleGroup *kubermaticv1.RuleGroup, opts v1.CreateOptions) (result *kubermaticv1.RuleGroup, err error)

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

func (*FakeRuleGroups) Delete added in v2.18.0

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

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

func (*FakeRuleGroups) DeleteCollection added in v2.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeRuleGroups) Get added in v2.18.0

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

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

func (*FakeRuleGroups) List added in v2.18.0

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

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

func (*FakeRuleGroups) Patch added in v2.18.0

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

Patch applies the patch and returns the patched ruleGroup.

func (*FakeRuleGroups) Update added in v2.18.0

func (c *FakeRuleGroups) Update(ctx context.Context, ruleGroup *kubermaticv1.RuleGroup, opts v1.UpdateOptions) (result *kubermaticv1.RuleGroup, err error)

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

func (*FakeRuleGroups) Watch added in v2.18.0

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

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