fake

package
v0.0.0-...-f6e1a93 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT 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 FakeAcidV1

type FakeAcidV1 struct {
	*testing.Fake
}

func (*FakeAcidV1) OperatorConfigurations

func (c *FakeAcidV1) OperatorConfigurations(namespace string) v1.OperatorConfigurationInterface

func (*FakeAcidV1) PostgresTeams

func (c *FakeAcidV1) PostgresTeams(namespace string) v1.PostgresTeamInterface

func (*FakeAcidV1) Postgresqls

func (c *FakeAcidV1) Postgresqls(namespace string) v1.PostgresqlInterface

func (*FakeAcidV1) RESTClient

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

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

func (*FakeAcidV1) WorkLoadSchedules

func (c *FakeAcidV1) WorkLoadSchedules(namespace string) v1.WorkLoadScheduleInterface

type FakeOperatorConfigurations

type FakeOperatorConfigurations struct {
	Fake *FakeAcidV1
	// contains filtered or unexported fields
}

FakeOperatorConfigurations implements OperatorConfigurationInterface

func (*FakeOperatorConfigurations) Get

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

type FakePostgresTeams

type FakePostgresTeams struct {
	Fake *FakeAcidV1
	// contains filtered or unexported fields
}

FakePostgresTeams implements PostgresTeamInterface

func (*FakePostgresTeams) Create

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

func (*FakePostgresTeams) Delete

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

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

func (*FakePostgresTeams) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePostgresTeams) Get

func (c *FakePostgresTeams) Get(ctx context.Context, name string, options v1.GetOptions) (result *acidcosmicrocksv1.PostgresTeam, err error)

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

func (*FakePostgresTeams) List

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

func (*FakePostgresTeams) Patch

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

Patch applies the patch and returns the patched postgresTeam.

func (*FakePostgresTeams) Update

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

func (*FakePostgresTeams) Watch

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

type FakePostgresqls

type FakePostgresqls struct {
	Fake *FakeAcidV1
	// contains filtered or unexported fields
}

FakePostgresqls implements PostgresqlInterface

func (*FakePostgresqls) Create

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

func (*FakePostgresqls) Delete

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

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

func (*FakePostgresqls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePostgresqls) Get

func (c *FakePostgresqls) Get(ctx context.Context, name string, options v1.GetOptions) (result *acidcosmicrocksv1.Postgresql, err error)

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

func (*FakePostgresqls) List

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

func (*FakePostgresqls) Patch

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

Patch applies the patch and returns the patched postgresql.

func (*FakePostgresqls) Update

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

func (*FakePostgresqls) UpdateStatus

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

func (*FakePostgresqls) Watch

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

type FakeWorkLoadSchedules

type FakeWorkLoadSchedules struct {
	Fake *FakeAcidV1
	// contains filtered or unexported fields
}

FakeWorkLoadSchedules implements WorkLoadScheduleInterface

func (*FakeWorkLoadSchedules) Create

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

func (*FakeWorkLoadSchedules) Delete

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

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

func (*FakeWorkLoadSchedules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkLoadSchedules) Get

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

func (*FakeWorkLoadSchedules) List

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

func (*FakeWorkLoadSchedules) Patch

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

Patch applies the patch and returns the patched workLoadSchedule.

func (*FakeWorkLoadSchedules) Update

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

func (*FakeWorkLoadSchedules) UpdateStatus

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

func (*FakeWorkLoadSchedules) Watch

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

Jump to

Keyboard shortcuts

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