fake

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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 FakeOLMConfigs added in v0.20.0

type FakeOLMConfigs struct {
	Fake *FakeOperatorsV1
}

FakeOLMConfigs implements OLMConfigInterface

func (*FakeOLMConfigs) Create added in v0.20.0

func (c *FakeOLMConfigs) Create(ctx context.Context, oLMConfig *v1.OLMConfig, opts metav1.CreateOptions) (result *v1.OLMConfig, err error)

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

func (*FakeOLMConfigs) Delete added in v0.20.0

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

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

func (*FakeOLMConfigs) DeleteCollection added in v0.20.0

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

DeleteCollection deletes a collection of objects.

func (*FakeOLMConfigs) Get added in v0.20.0

func (c *FakeOLMConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OLMConfig, err error)

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

func (*FakeOLMConfigs) List added in v0.20.0

func (c *FakeOLMConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OLMConfigList, err error)

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

func (*FakeOLMConfigs) Patch added in v0.20.0

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

Patch applies the patch and returns the patched oLMConfig.

func (*FakeOLMConfigs) Update added in v0.20.0

func (c *FakeOLMConfigs) Update(ctx context.Context, oLMConfig *v1.OLMConfig, opts metav1.UpdateOptions) (result *v1.OLMConfig, err error)

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

func (*FakeOLMConfigs) UpdateStatus added in v0.20.0

func (c *FakeOLMConfigs) UpdateStatus(ctx context.Context, oLMConfig *v1.OLMConfig, opts metav1.UpdateOptions) (*v1.OLMConfig, error)

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

func (*FakeOLMConfigs) Watch added in v0.20.0

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

type FakeOperatorConditions added in v0.18.0

type FakeOperatorConditions struct {
	Fake *FakeOperatorsV1
	// contains filtered or unexported fields
}

FakeOperatorConditions implements OperatorConditionInterface

func (*FakeOperatorConditions) Create added in v0.18.0

func (c *FakeOperatorConditions) Create(ctx context.Context, operatorCondition *v1.OperatorCondition, opts metav1.CreateOptions) (result *v1.OperatorCondition, err error)

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

func (*FakeOperatorConditions) Delete added in v0.18.0

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

func (*FakeOperatorConditions) DeleteCollection added in v0.18.0

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

DeleteCollection deletes a collection of objects.

func (*FakeOperatorConditions) Get added in v0.18.0

func (c *FakeOperatorConditions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OperatorCondition, err error)

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

func (*FakeOperatorConditions) List added in v0.18.0

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

func (*FakeOperatorConditions) Patch added in v0.18.0

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

Patch applies the patch and returns the patched operatorCondition.

func (*FakeOperatorConditions) Update added in v0.18.0

func (c *FakeOperatorConditions) Update(ctx context.Context, operatorCondition *v1.OperatorCondition, opts metav1.UpdateOptions) (result *v1.OperatorCondition, err error)

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

func (*FakeOperatorConditions) UpdateStatus added in v0.18.0

func (c *FakeOperatorConditions) UpdateStatus(ctx context.Context, operatorCondition *v1.OperatorCondition, opts metav1.UpdateOptions) (*v1.OperatorCondition, error)

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

func (*FakeOperatorConditions) Watch added in v0.18.0

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

type FakeOperatorGroups

type FakeOperatorGroups struct {
	Fake *FakeOperatorsV1
	// contains filtered or unexported fields
}

FakeOperatorGroups implements OperatorGroupInterface

func (*FakeOperatorGroups) Create

func (c *FakeOperatorGroups) Create(ctx context.Context, operatorGroup *v1.OperatorGroup, opts metav1.CreateOptions) (result *v1.OperatorGroup, err error)

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

func (*FakeOperatorGroups) Delete

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

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

func (*FakeOperatorGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOperatorGroups) Get

func (c *FakeOperatorGroups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OperatorGroup, err error)

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

func (*FakeOperatorGroups) List

func (c *FakeOperatorGroups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OperatorGroupList, err error)

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

func (*FakeOperatorGroups) Patch

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

Patch applies the patch and returns the patched operatorGroup.

func (*FakeOperatorGroups) Update

func (c *FakeOperatorGroups) Update(ctx context.Context, operatorGroup *v1.OperatorGroup, opts metav1.UpdateOptions) (result *v1.OperatorGroup, err error)

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

func (*FakeOperatorGroups) UpdateStatus

func (c *FakeOperatorGroups) UpdateStatus(ctx context.Context, operatorGroup *v1.OperatorGroup, opts metav1.UpdateOptions) (*v1.OperatorGroup, error)

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

func (*FakeOperatorGroups) Watch

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

type FakeOperators

type FakeOperators struct {
	Fake *FakeOperatorsV1
}

FakeOperators implements OperatorInterface

func (*FakeOperators) Create

func (c *FakeOperators) Create(ctx context.Context, operator *v1.Operator, opts metav1.CreateOptions) (result *v1.Operator, err error)

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

func (*FakeOperators) Delete

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

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

func (*FakeOperators) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOperators) Get

func (c *FakeOperators) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Operator, err error)

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

func (*FakeOperators) List

func (c *FakeOperators) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OperatorList, err error)

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

func (*FakeOperators) Patch

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

Patch applies the patch and returns the patched operator.

func (*FakeOperators) Update

func (c *FakeOperators) Update(ctx context.Context, operator *v1.Operator, opts metav1.UpdateOptions) (result *v1.Operator, err error)

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

func (*FakeOperators) UpdateStatus

func (c *FakeOperators) UpdateStatus(ctx context.Context, operator *v1.Operator, opts metav1.UpdateOptions) (*v1.Operator, error)

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

func (*FakeOperators) Watch

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

type FakeOperatorsV1

type FakeOperatorsV1 struct {
	*testing.Fake
}

func (*FakeOperatorsV1) OLMConfigs added in v0.20.0

func (c *FakeOperatorsV1) OLMConfigs() v1.OLMConfigInterface

func (*FakeOperatorsV1) OperatorConditions added in v0.18.0

func (c *FakeOperatorsV1) OperatorConditions(namespace string) v1.OperatorConditionInterface

func (*FakeOperatorsV1) OperatorGroups

func (c *FakeOperatorsV1) OperatorGroups(namespace string) v1.OperatorGroupInterface

func (*FakeOperatorsV1) Operators

func (c *FakeOperatorsV1) Operators() v1.OperatorInterface

func (*FakeOperatorsV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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