Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeStableV1
- type FakeStudents
- func (c *FakeStudents) Create(student *stablev1.Student) (result *stablev1.Student, err error)
- func (c *FakeStudents) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeStudents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeStudents) Get(name string, options v1.GetOptions) (result *stablev1.Student, err error)
- func (c *FakeStudents) List(opts v1.ListOptions) (result *stablev1.StudentList, err error)
- func (c *FakeStudents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *stablev1.Student, err error)
- func (c *FakeStudents) Update(student *stablev1.Student) (result *stablev1.Student, err error)
- func (c *FakeStudents) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStableV1 ¶
func (*FakeStableV1) RESTClient ¶
func (c *FakeStableV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeStableV1) Students ¶
func (c *FakeStableV1) Students(namespace string) v1.StudentInterface
type FakeStudents ¶
type FakeStudents struct { Fake *FakeStableV1 // contains filtered or unexported fields }
FakeStudents implements StudentInterface
func (*FakeStudents) Create ¶
Create takes the representation of a student and creates it. Returns the server's representation of the student, and an error, if there is any.
func (*FakeStudents) Delete ¶
func (c *FakeStudents) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the student and deletes it. Returns an error if one occurs.
func (*FakeStudents) DeleteCollection ¶
func (c *FakeStudents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeStudents) Get ¶
func (c *FakeStudents) Get(name string, options v1.GetOptions) (result *stablev1.Student, err error)
Get takes name of the student, and returns the corresponding student object, and an error if there is any.
func (*FakeStudents) List ¶
func (c *FakeStudents) List(opts v1.ListOptions) (result *stablev1.StudentList, err error)
List takes label and field selectors, and returns the list of Students that match those selectors.
func (*FakeStudents) Patch ¶
func (c *FakeStudents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *stablev1.Student, err error)
Patch applies the patch and returns the patched student.
func (*FakeStudents) Update ¶
Update takes the representation of a student and updates it. Returns the server's representation of the student, and an error, if there is any.
func (*FakeStudents) Watch ¶
func (c *FakeStudents) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested students.