Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeShahinV1alpha1
- type FakeTeployments
- func (c *FakeTeployments) Create(ctx context.Context, teployment *v1alpha1.Teployment, opts v1.CreateOptions) (result *v1alpha1.Teployment, err error)
- func (c *FakeTeployments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Teployment, err error)
- func (c *FakeTeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TeploymentList, err error)
- func (c *FakeTeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Teployment, err error)
- func (c *FakeTeployments) Update(ctx context.Context, teployment *v1alpha1.Teployment, opts v1.UpdateOptions) (result *v1alpha1.Teployment, err error)
- func (c *FakeTeployments) UpdateStatus(ctx context.Context, teployment *v1alpha1.Teployment, opts v1.UpdateOptions) (*v1alpha1.Teployment, error)
- func (c *FakeTeployments) 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 FakeShahinV1alpha1 ¶
func (*FakeShahinV1alpha1) RESTClient ¶
func (c *FakeShahinV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeShahinV1alpha1) Teployments ¶
func (c *FakeShahinV1alpha1) Teployments(namespace string) v1alpha1.TeploymentInterface
type FakeTeployments ¶
type FakeTeployments struct { Fake *FakeShahinV1alpha1 // contains filtered or unexported fields }
FakeTeployments implements TeploymentInterface
func (*FakeTeployments) Create ¶
func (c *FakeTeployments) Create(ctx context.Context, teployment *v1alpha1.Teployment, opts v1.CreateOptions) (result *v1alpha1.Teployment, err error)
Create takes the representation of a teployment and creates it. Returns the server's representation of the teployment, and an error, if there is any.
func (*FakeTeployments) Delete ¶
func (c *FakeTeployments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the teployment and deletes it. Returns an error if one occurs.
func (*FakeTeployments) DeleteCollection ¶
func (c *FakeTeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTeployments) Get ¶
func (c *FakeTeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Teployment, err error)
Get takes name of the teployment, and returns the corresponding teployment object, and an error if there is any.
func (*FakeTeployments) List ¶
func (c *FakeTeployments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TeploymentList, err error)
List takes label and field selectors, and returns the list of Teployments that match those selectors.
func (*FakeTeployments) Patch ¶
func (c *FakeTeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Teployment, err error)
Patch applies the patch and returns the patched teployment.
func (*FakeTeployments) Update ¶
func (c *FakeTeployments) Update(ctx context.Context, teployment *v1alpha1.Teployment, opts v1.UpdateOptions) (result *v1alpha1.Teployment, err error)
Update takes the representation of a teployment and updates it. Returns the server's representation of the teployment, and an error, if there is any.
func (*FakeTeployments) UpdateStatus ¶
func (c *FakeTeployments) UpdateStatus(ctx context.Context, teployment *v1alpha1.Teployment, opts v1.UpdateOptions) (*v1alpha1.Teployment, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTeployments) Watch ¶
func (c *FakeTeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested teployments.