Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeBatchV1alpha1
- func (c *FakeBatchV1alpha1) ComputeEnvironments(namespace string) v1alpha1.ComputeEnvironmentInterface
- func (c *FakeBatchV1alpha1) JobDefinitions(namespace string) v1alpha1.JobDefinitionInterface
- func (c *FakeBatchV1alpha1) JobQueues(namespace string) v1alpha1.JobQueueInterface
- func (c *FakeBatchV1alpha1) RESTClient() rest.Interface
- func (c *FakeBatchV1alpha1) SchedulingPolicies(namespace string) v1alpha1.SchedulingPolicyInterface
- type FakeComputeEnvironments
- func (c *FakeComputeEnvironments) Create(ctx context.Context, computeEnvironment *v1alpha1.ComputeEnvironment, ...) (result *v1alpha1.ComputeEnvironment, err error)
- func (c *FakeComputeEnvironments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeComputeEnvironments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeComputeEnvironments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ComputeEnvironment, err error)
- func (c *FakeComputeEnvironments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ComputeEnvironmentList, err error)
- func (c *FakeComputeEnvironments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ComputeEnvironment, err error)
- func (c *FakeComputeEnvironments) Update(ctx context.Context, computeEnvironment *v1alpha1.ComputeEnvironment, ...) (result *v1alpha1.ComputeEnvironment, err error)
- func (c *FakeComputeEnvironments) UpdateStatus(ctx context.Context, computeEnvironment *v1alpha1.ComputeEnvironment, ...) (*v1alpha1.ComputeEnvironment, error)
- func (c *FakeComputeEnvironments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeJobDefinitions
- func (c *FakeJobDefinitions) Create(ctx context.Context, jobDefinition *v1alpha1.JobDefinition, ...) (result *v1alpha1.JobDefinition, err error)
- func (c *FakeJobDefinitions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeJobDefinitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeJobDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.JobDefinition, err error)
- func (c *FakeJobDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobDefinitionList, err error)
- func (c *FakeJobDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.JobDefinition, err error)
- func (c *FakeJobDefinitions) Update(ctx context.Context, jobDefinition *v1alpha1.JobDefinition, ...) (result *v1alpha1.JobDefinition, err error)
- func (c *FakeJobDefinitions) UpdateStatus(ctx context.Context, jobDefinition *v1alpha1.JobDefinition, ...) (*v1alpha1.JobDefinition, error)
- func (c *FakeJobDefinitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeJobQueues
- func (c *FakeJobQueues) Create(ctx context.Context, jobQueue *v1alpha1.JobQueue, opts v1.CreateOptions) (result *v1alpha1.JobQueue, err error)
- func (c *FakeJobQueues) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeJobQueues) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeJobQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.JobQueue, err error)
- func (c *FakeJobQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobQueueList, err error)
- func (c *FakeJobQueues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.JobQueue, err error)
- func (c *FakeJobQueues) Update(ctx context.Context, jobQueue *v1alpha1.JobQueue, opts v1.UpdateOptions) (result *v1alpha1.JobQueue, err error)
- func (c *FakeJobQueues) UpdateStatus(ctx context.Context, jobQueue *v1alpha1.JobQueue, opts v1.UpdateOptions) (*v1alpha1.JobQueue, error)
- func (c *FakeJobQueues) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSchedulingPolicies
- func (c *FakeSchedulingPolicies) Create(ctx context.Context, schedulingPolicy *v1alpha1.SchedulingPolicy, ...) (result *v1alpha1.SchedulingPolicy, err error)
- func (c *FakeSchedulingPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSchedulingPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSchedulingPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SchedulingPolicy, err error)
- func (c *FakeSchedulingPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SchedulingPolicyList, err error)
- func (c *FakeSchedulingPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.SchedulingPolicy, err error)
- func (c *FakeSchedulingPolicies) Update(ctx context.Context, schedulingPolicy *v1alpha1.SchedulingPolicy, ...) (result *v1alpha1.SchedulingPolicy, err error)
- func (c *FakeSchedulingPolicies) UpdateStatus(ctx context.Context, schedulingPolicy *v1alpha1.SchedulingPolicy, ...) (*v1alpha1.SchedulingPolicy, error)
- func (c *FakeSchedulingPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeBatchV1alpha1 ¶
func (*FakeBatchV1alpha1) ComputeEnvironments ¶
func (c *FakeBatchV1alpha1) ComputeEnvironments(namespace string) v1alpha1.ComputeEnvironmentInterface
func (*FakeBatchV1alpha1) JobDefinitions ¶
func (c *FakeBatchV1alpha1) JobDefinitions(namespace string) v1alpha1.JobDefinitionInterface
func (*FakeBatchV1alpha1) JobQueues ¶
func (c *FakeBatchV1alpha1) JobQueues(namespace string) v1alpha1.JobQueueInterface
func (*FakeBatchV1alpha1) RESTClient ¶
func (c *FakeBatchV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeBatchV1alpha1) SchedulingPolicies ¶ added in v0.5.0
func (c *FakeBatchV1alpha1) SchedulingPolicies(namespace string) v1alpha1.SchedulingPolicyInterface
type FakeComputeEnvironments ¶
type FakeComputeEnvironments struct { Fake *FakeBatchV1alpha1 // contains filtered or unexported fields }
FakeComputeEnvironments implements ComputeEnvironmentInterface
func (*FakeComputeEnvironments) Create ¶
func (c *FakeComputeEnvironments) Create(ctx context.Context, computeEnvironment *v1alpha1.ComputeEnvironment, opts v1.CreateOptions) (result *v1alpha1.ComputeEnvironment, err error)
Create takes the representation of a computeEnvironment and creates it. Returns the server's representation of the computeEnvironment, and an error, if there is any.
func (*FakeComputeEnvironments) Delete ¶
func (c *FakeComputeEnvironments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the computeEnvironment and deletes it. Returns an error if one occurs.
func (*FakeComputeEnvironments) DeleteCollection ¶
func (c *FakeComputeEnvironments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeComputeEnvironments) Get ¶
func (c *FakeComputeEnvironments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ComputeEnvironment, err error)
Get takes name of the computeEnvironment, and returns the corresponding computeEnvironment object, and an error if there is any.
func (*FakeComputeEnvironments) List ¶
func (c *FakeComputeEnvironments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ComputeEnvironmentList, err error)
List takes label and field selectors, and returns the list of ComputeEnvironments that match those selectors.
func (*FakeComputeEnvironments) Patch ¶
func (c *FakeComputeEnvironments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ComputeEnvironment, err error)
Patch applies the patch and returns the patched computeEnvironment.
func (*FakeComputeEnvironments) Update ¶
func (c *FakeComputeEnvironments) Update(ctx context.Context, computeEnvironment *v1alpha1.ComputeEnvironment, opts v1.UpdateOptions) (result *v1alpha1.ComputeEnvironment, err error)
Update takes the representation of a computeEnvironment and updates it. Returns the server's representation of the computeEnvironment, and an error, if there is any.
func (*FakeComputeEnvironments) UpdateStatus ¶
func (c *FakeComputeEnvironments) UpdateStatus(ctx context.Context, computeEnvironment *v1alpha1.ComputeEnvironment, opts v1.UpdateOptions) (*v1alpha1.ComputeEnvironment, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeComputeEnvironments) Watch ¶
func (c *FakeComputeEnvironments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested computeEnvironments.
type FakeJobDefinitions ¶
type FakeJobDefinitions struct { Fake *FakeBatchV1alpha1 // contains filtered or unexported fields }
FakeJobDefinitions implements JobDefinitionInterface
func (*FakeJobDefinitions) Create ¶
func (c *FakeJobDefinitions) Create(ctx context.Context, jobDefinition *v1alpha1.JobDefinition, opts v1.CreateOptions) (result *v1alpha1.JobDefinition, err error)
Create takes the representation of a jobDefinition and creates it. Returns the server's representation of the jobDefinition, and an error, if there is any.
func (*FakeJobDefinitions) Delete ¶
func (c *FakeJobDefinitions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the jobDefinition and deletes it. Returns an error if one occurs.
func (*FakeJobDefinitions) DeleteCollection ¶
func (c *FakeJobDefinitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeJobDefinitions) Get ¶
func (c *FakeJobDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.JobDefinition, err error)
Get takes name of the jobDefinition, and returns the corresponding jobDefinition object, and an error if there is any.
func (*FakeJobDefinitions) List ¶
func (c *FakeJobDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobDefinitionList, err error)
List takes label and field selectors, and returns the list of JobDefinitions that match those selectors.
func (*FakeJobDefinitions) Patch ¶
func (c *FakeJobDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.JobDefinition, err error)
Patch applies the patch and returns the patched jobDefinition.
func (*FakeJobDefinitions) Update ¶
func (c *FakeJobDefinitions) Update(ctx context.Context, jobDefinition *v1alpha1.JobDefinition, opts v1.UpdateOptions) (result *v1alpha1.JobDefinition, err error)
Update takes the representation of a jobDefinition and updates it. Returns the server's representation of the jobDefinition, and an error, if there is any.
func (*FakeJobDefinitions) UpdateStatus ¶
func (c *FakeJobDefinitions) UpdateStatus(ctx context.Context, jobDefinition *v1alpha1.JobDefinition, opts v1.UpdateOptions) (*v1alpha1.JobDefinition, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeJobDefinitions) Watch ¶
func (c *FakeJobDefinitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested jobDefinitions.
type FakeJobQueues ¶
type FakeJobQueues struct { Fake *FakeBatchV1alpha1 // contains filtered or unexported fields }
FakeJobQueues implements JobQueueInterface
func (*FakeJobQueues) Create ¶
func (c *FakeJobQueues) Create(ctx context.Context, jobQueue *v1alpha1.JobQueue, opts v1.CreateOptions) (result *v1alpha1.JobQueue, err error)
Create takes the representation of a jobQueue and creates it. Returns the server's representation of the jobQueue, and an error, if there is any.
func (*FakeJobQueues) Delete ¶
func (c *FakeJobQueues) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the jobQueue and deletes it. Returns an error if one occurs.
func (*FakeJobQueues) DeleteCollection ¶
func (c *FakeJobQueues) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeJobQueues) Get ¶
func (c *FakeJobQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.JobQueue, err error)
Get takes name of the jobQueue, and returns the corresponding jobQueue object, and an error if there is any.
func (*FakeJobQueues) List ¶
func (c *FakeJobQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobQueueList, err error)
List takes label and field selectors, and returns the list of JobQueues that match those selectors.
func (*FakeJobQueues) Patch ¶
func (c *FakeJobQueues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.JobQueue, err error)
Patch applies the patch and returns the patched jobQueue.
func (*FakeJobQueues) Update ¶
func (c *FakeJobQueues) Update(ctx context.Context, jobQueue *v1alpha1.JobQueue, opts v1.UpdateOptions) (result *v1alpha1.JobQueue, err error)
Update takes the representation of a jobQueue and updates it. Returns the server's representation of the jobQueue, and an error, if there is any.
func (*FakeJobQueues) UpdateStatus ¶
func (c *FakeJobQueues) UpdateStatus(ctx context.Context, jobQueue *v1alpha1.JobQueue, opts v1.UpdateOptions) (*v1alpha1.JobQueue, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeJobQueues) Watch ¶
func (c *FakeJobQueues) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested jobQueues.
type FakeSchedulingPolicies ¶ added in v0.5.0
type FakeSchedulingPolicies struct { Fake *FakeBatchV1alpha1 // contains filtered or unexported fields }
FakeSchedulingPolicies implements SchedulingPolicyInterface
func (*FakeSchedulingPolicies) Create ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) Create(ctx context.Context, schedulingPolicy *v1alpha1.SchedulingPolicy, opts v1.CreateOptions) (result *v1alpha1.SchedulingPolicy, err error)
Create takes the representation of a schedulingPolicy and creates it. Returns the server's representation of the schedulingPolicy, and an error, if there is any.
func (*FakeSchedulingPolicies) Delete ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the schedulingPolicy and deletes it. Returns an error if one occurs.
func (*FakeSchedulingPolicies) DeleteCollection ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSchedulingPolicies) Get ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SchedulingPolicy, err error)
Get takes name of the schedulingPolicy, and returns the corresponding schedulingPolicy object, and an error if there is any.
func (*FakeSchedulingPolicies) List ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SchedulingPolicyList, err error)
List takes label and field selectors, and returns the list of SchedulingPolicies that match those selectors.
func (*FakeSchedulingPolicies) Patch ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SchedulingPolicy, err error)
Patch applies the patch and returns the patched schedulingPolicy.
func (*FakeSchedulingPolicies) Update ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) Update(ctx context.Context, schedulingPolicy *v1alpha1.SchedulingPolicy, opts v1.UpdateOptions) (result *v1alpha1.SchedulingPolicy, err error)
Update takes the representation of a schedulingPolicy and updates it. Returns the server's representation of the schedulingPolicy, and an error, if there is any.
func (*FakeSchedulingPolicies) UpdateStatus ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) UpdateStatus(ctx context.Context, schedulingPolicy *v1alpha1.SchedulingPolicy, opts v1.UpdateOptions) (*v1alpha1.SchedulingPolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSchedulingPolicies) Watch ¶ added in v0.5.0
func (c *FakeSchedulingPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested schedulingPolicies.