fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeDevtestV1alpha1

type FakeDevtestV1alpha1 struct {
	*testing.Fake
}

func (*FakeDevtestV1alpha1) GlobalVmShutdownSchedules

func (c *FakeDevtestV1alpha1) GlobalVmShutdownSchedules(namespace string) v1alpha1.GlobalVmShutdownScheduleInterface

func (*FakeDevtestV1alpha1) Labs

func (c *FakeDevtestV1alpha1) Labs(namespace string) v1alpha1.LabInterface

func (*FakeDevtestV1alpha1) LinuxVirtualMachines

func (c *FakeDevtestV1alpha1) LinuxVirtualMachines(namespace string) v1alpha1.LinuxVirtualMachineInterface

func (*FakeDevtestV1alpha1) Policies

func (c *FakeDevtestV1alpha1) Policies(namespace string) v1alpha1.PolicyInterface

func (*FakeDevtestV1alpha1) RESTClient

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

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

func (*FakeDevtestV1alpha1) Schedules

func (c *FakeDevtestV1alpha1) Schedules(namespace string) v1alpha1.ScheduleInterface

func (*FakeDevtestV1alpha1) VirtualNetworks

func (c *FakeDevtestV1alpha1) VirtualNetworks(namespace string) v1alpha1.VirtualNetworkInterface

func (*FakeDevtestV1alpha1) WindowsVirtualMachines

func (c *FakeDevtestV1alpha1) WindowsVirtualMachines(namespace string) v1alpha1.WindowsVirtualMachineInterface

type FakeGlobalVmShutdownSchedules

type FakeGlobalVmShutdownSchedules struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakeGlobalVmShutdownSchedules implements GlobalVmShutdownScheduleInterface

func (*FakeGlobalVmShutdownSchedules) Create

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

func (*FakeGlobalVmShutdownSchedules) Delete

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

func (*FakeGlobalVmShutdownSchedules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalVmShutdownSchedules) Get

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

func (*FakeGlobalVmShutdownSchedules) List

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

func (*FakeGlobalVmShutdownSchedules) Patch

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

Patch applies the patch and returns the patched globalVmShutdownSchedule.

func (*FakeGlobalVmShutdownSchedules) Update

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

func (*FakeGlobalVmShutdownSchedules) UpdateStatus

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

func (*FakeGlobalVmShutdownSchedules) Watch

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

type FakeLabs

type FakeLabs struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakeLabs implements LabInterface

func (*FakeLabs) Create

func (c *FakeLabs) Create(ctx context.Context, lab *v1alpha1.Lab, opts v1.CreateOptions) (result *v1alpha1.Lab, err error)

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

func (*FakeLabs) Delete

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

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

func (*FakeLabs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLabs) Get

func (c *FakeLabs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Lab, err error)

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

func (*FakeLabs) List

func (c *FakeLabs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LabList, err error)

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

func (*FakeLabs) Patch

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

Patch applies the patch and returns the patched lab.

func (*FakeLabs) Update

func (c *FakeLabs) Update(ctx context.Context, lab *v1alpha1.Lab, opts v1.UpdateOptions) (result *v1alpha1.Lab, err error)

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

func (*FakeLabs) UpdateStatus

func (c *FakeLabs) UpdateStatus(ctx context.Context, lab *v1alpha1.Lab, opts v1.UpdateOptions) (*v1alpha1.Lab, error)

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

func (*FakeLabs) Watch

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

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

type FakeLinuxVirtualMachines

type FakeLinuxVirtualMachines struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakeLinuxVirtualMachines implements LinuxVirtualMachineInterface

func (*FakeLinuxVirtualMachines) Create

func (c *FakeLinuxVirtualMachines) Create(ctx context.Context, linuxVirtualMachine *v1alpha1.LinuxVirtualMachine, opts v1.CreateOptions) (result *v1alpha1.LinuxVirtualMachine, err error)

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

func (*FakeLinuxVirtualMachines) Delete

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

func (*FakeLinuxVirtualMachines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLinuxVirtualMachines) Get

func (c *FakeLinuxVirtualMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.LinuxVirtualMachine, err error)

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

func (*FakeLinuxVirtualMachines) List

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

func (*FakeLinuxVirtualMachines) Patch

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

Patch applies the patch and returns the patched linuxVirtualMachine.

func (*FakeLinuxVirtualMachines) Update

func (c *FakeLinuxVirtualMachines) Update(ctx context.Context, linuxVirtualMachine *v1alpha1.LinuxVirtualMachine, opts v1.UpdateOptions) (result *v1alpha1.LinuxVirtualMachine, err error)

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

func (*FakeLinuxVirtualMachines) UpdateStatus

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

func (*FakeLinuxVirtualMachines) Watch

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *v1alpha1.Policy, opts v1.CreateOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) Delete

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) List

func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PolicyList, err error)

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

func (*FakePolicies) Patch

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) UpdateStatus

func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (*v1alpha1.Policy, error)

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

func (*FakePolicies) Watch

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

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

type FakeSchedules

type FakeSchedules struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakeSchedules implements ScheduleInterface

func (*FakeSchedules) Create

func (c *FakeSchedules) Create(ctx context.Context, schedule *v1alpha1.Schedule, opts v1.CreateOptions) (result *v1alpha1.Schedule, err error)

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

func (*FakeSchedules) Delete

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

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

func (*FakeSchedules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSchedules) Get

func (c *FakeSchedules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Schedule, err error)

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

func (*FakeSchedules) List

func (c *FakeSchedules) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ScheduleList, err error)

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

func (*FakeSchedules) Patch

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

Patch applies the patch and returns the patched schedule.

func (*FakeSchedules) Update

func (c *FakeSchedules) Update(ctx context.Context, schedule *v1alpha1.Schedule, opts v1.UpdateOptions) (result *v1alpha1.Schedule, err error)

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

func (*FakeSchedules) UpdateStatus

func (c *FakeSchedules) UpdateStatus(ctx context.Context, schedule *v1alpha1.Schedule, opts v1.UpdateOptions) (*v1alpha1.Schedule, error)

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

func (*FakeSchedules) Watch

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

type FakeVirtualNetworks

type FakeVirtualNetworks struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakeVirtualNetworks implements VirtualNetworkInterface

func (*FakeVirtualNetworks) Create

func (c *FakeVirtualNetworks) Create(ctx context.Context, virtualNetwork *v1alpha1.VirtualNetwork, opts v1.CreateOptions) (result *v1alpha1.VirtualNetwork, err error)

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

func (*FakeVirtualNetworks) Delete

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

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

func (*FakeVirtualNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualNetworks) Get

func (c *FakeVirtualNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.VirtualNetwork, err error)

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

func (*FakeVirtualNetworks) List

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

func (*FakeVirtualNetworks) Patch

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

Patch applies the patch and returns the patched virtualNetwork.

func (*FakeVirtualNetworks) Update

func (c *FakeVirtualNetworks) Update(ctx context.Context, virtualNetwork *v1alpha1.VirtualNetwork, opts v1.UpdateOptions) (result *v1alpha1.VirtualNetwork, err error)

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

func (*FakeVirtualNetworks) UpdateStatus

func (c *FakeVirtualNetworks) UpdateStatus(ctx context.Context, virtualNetwork *v1alpha1.VirtualNetwork, opts v1.UpdateOptions) (*v1alpha1.VirtualNetwork, error)

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

func (*FakeVirtualNetworks) Watch

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

type FakeWindowsVirtualMachines

type FakeWindowsVirtualMachines struct {
	Fake *FakeDevtestV1alpha1
	// contains filtered or unexported fields
}

FakeWindowsVirtualMachines implements WindowsVirtualMachineInterface

func (*FakeWindowsVirtualMachines) Create

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

func (*FakeWindowsVirtualMachines) Delete

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

func (*FakeWindowsVirtualMachines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWindowsVirtualMachines) Get

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

func (*FakeWindowsVirtualMachines) List

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

func (*FakeWindowsVirtualMachines) Patch

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

Patch applies the patch and returns the patched windowsVirtualMachine.

func (*FakeWindowsVirtualMachines) Update

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

func (*FakeWindowsVirtualMachines) UpdateStatus

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

func (*FakeWindowsVirtualMachines) Watch

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

Jump to

Keyboard shortcuts

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