fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 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 FakeAppsV1beta1

type FakeAppsV1beta1 struct {
	*testing.Fake
}

func (*FakeAppsV1beta1) Chains

func (c *FakeAppsV1beta1) Chains(namespace string) v1beta1.ChainInterface

func (*FakeAppsV1beta1) ChargeRequests

func (c *FakeAppsV1beta1) ChargeRequests(namespace string) v1beta1.ChargeRequestInterface

func (*FakeAppsV1beta1) MinerSets

func (c *FakeAppsV1beta1) MinerSets(namespace string) v1beta1.MinerSetInterface

func (*FakeAppsV1beta1) Miners

func (c *FakeAppsV1beta1) Miners(namespace string) v1beta1.MinerInterface

func (*FakeAppsV1beta1) RESTClient

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

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

type FakeChains

type FakeChains struct {
	Fake *FakeAppsV1beta1
	// contains filtered or unexported fields
}

FakeChains implements ChainInterface

func (*FakeChains) Create

func (c *FakeChains) Create(ctx context.Context, chain *v1beta1.Chain, opts v1.CreateOptions) (result *v1beta1.Chain, err error)

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

func (*FakeChains) Delete

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

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

func (*FakeChains) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChains) Get

func (c *FakeChains) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Chain, err error)

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

func (*FakeChains) List

func (c *FakeChains) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ChainList, err error)

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

func (*FakeChains) Patch

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

Patch applies the patch and returns the patched chain.

func (*FakeChains) Update

func (c *FakeChains) Update(ctx context.Context, chain *v1beta1.Chain, opts v1.UpdateOptions) (result *v1beta1.Chain, err error)

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

func (*FakeChains) UpdateStatus

func (c *FakeChains) UpdateStatus(ctx context.Context, chain *v1beta1.Chain, opts v1.UpdateOptions) (*v1beta1.Chain, error)

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

func (*FakeChains) Watch

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

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

type FakeChargeRequests

type FakeChargeRequests struct {
	Fake *FakeAppsV1beta1
	// contains filtered or unexported fields
}

FakeChargeRequests implements ChargeRequestInterface

func (*FakeChargeRequests) Create

func (c *FakeChargeRequests) Create(ctx context.Context, chargeRequest *v1beta1.ChargeRequest, opts v1.CreateOptions) (result *v1beta1.ChargeRequest, err error)

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

func (*FakeChargeRequests) Delete

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

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

func (*FakeChargeRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChargeRequests) Get

func (c *FakeChargeRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ChargeRequest, err error)

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

func (*FakeChargeRequests) List

func (c *FakeChargeRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ChargeRequestList, err error)

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

func (*FakeChargeRequests) Patch

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

Patch applies the patch and returns the patched chargeRequest.

func (*FakeChargeRequests) Update

func (c *FakeChargeRequests) Update(ctx context.Context, chargeRequest *v1beta1.ChargeRequest, opts v1.UpdateOptions) (result *v1beta1.ChargeRequest, err error)

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

func (*FakeChargeRequests) UpdateStatus

func (c *FakeChargeRequests) UpdateStatus(ctx context.Context, chargeRequest *v1beta1.ChargeRequest, opts v1.UpdateOptions) (*v1beta1.ChargeRequest, error)

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

func (*FakeChargeRequests) Watch

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

type FakeMinerSets

type FakeMinerSets struct {
	Fake *FakeAppsV1beta1
	// contains filtered or unexported fields
}

FakeMinerSets implements MinerSetInterface

func (*FakeMinerSets) Create

func (c *FakeMinerSets) Create(ctx context.Context, minerSet *v1beta1.MinerSet, opts v1.CreateOptions) (result *v1beta1.MinerSet, err error)

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

func (*FakeMinerSets) Delete

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

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

func (*FakeMinerSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMinerSets) Get

func (c *FakeMinerSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MinerSet, err error)

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

func (*FakeMinerSets) GetScale

func (c *FakeMinerSets) GetScale(ctx context.Context, minerSetName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

GetScale takes name of the minerSet, and returns the corresponding scale object, and an error if there is any.

func (*FakeMinerSets) List

func (c *FakeMinerSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MinerSetList, err error)

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

func (*FakeMinerSets) Patch

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

Patch applies the patch and returns the patched minerSet.

func (*FakeMinerSets) Update

func (c *FakeMinerSets) Update(ctx context.Context, minerSet *v1beta1.MinerSet, opts v1.UpdateOptions) (result *v1beta1.MinerSet, err error)

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

func (*FakeMinerSets) UpdateScale

func (c *FakeMinerSets) UpdateScale(ctx context.Context, minerSetName string, scale *autoscalingv1.Scale, opts v1.UpdateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeMinerSets) UpdateStatus

func (c *FakeMinerSets) UpdateStatus(ctx context.Context, minerSet *v1beta1.MinerSet, opts v1.UpdateOptions) (*v1beta1.MinerSet, error)

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

func (*FakeMinerSets) Watch

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

type FakeMiners

type FakeMiners struct {
	Fake *FakeAppsV1beta1
	// contains filtered or unexported fields
}

FakeMiners implements MinerInterface

func (*FakeMiners) Create

func (c *FakeMiners) Create(ctx context.Context, miner *v1beta1.Miner, opts v1.CreateOptions) (result *v1beta1.Miner, err error)

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

func (*FakeMiners) Delete

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

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

func (*FakeMiners) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMiners) Get

func (c *FakeMiners) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Miner, err error)

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

func (*FakeMiners) List

func (c *FakeMiners) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MinerList, err error)

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

func (*FakeMiners) Patch

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

Patch applies the patch and returns the patched miner.

func (*FakeMiners) Update

func (c *FakeMiners) Update(ctx context.Context, miner *v1beta1.Miner, opts v1.UpdateOptions) (result *v1beta1.Miner, err error)

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

func (*FakeMiners) UpdateStatus

func (c *FakeMiners) UpdateStatus(ctx context.Context, miner *v1beta1.Miner, opts v1.UpdateOptions) (*v1beta1.Miner, error)

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

func (*FakeMiners) Watch

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

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

Jump to

Keyboard shortcuts

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