Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAccounts
- func (c *FakeAccounts) Create(ctx context.Context, account *v1alpha1.Account, opts v1.CreateOptions) (result *v1alpha1.Account, err error)
- func (c *FakeAccounts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeAccounts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeAccounts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Account, err error)
- func (c *FakeAccounts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AccountList, err error)
- func (c *FakeAccounts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Account, err error)
- func (c *FakeAccounts) Update(ctx context.Context, account *v1alpha1.Account, opts v1.UpdateOptions) (result *v1alpha1.Account, err error)
- func (c *FakeAccounts) UpdateStatus(ctx context.Context, account *v1alpha1.Account, opts v1.UpdateOptions) (*v1alpha1.Account, error)
- func (c *FakeAccounts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSpaces
- func (c *FakeSpaces) Create(ctx context.Context, space *v1alpha1.Space, opts v1.CreateOptions) (result *v1alpha1.Space, err error)
- func (c *FakeSpaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSpaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSpaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Space, err error)
- func (c *FakeSpaces) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SpaceList, err error)
- func (c *FakeSpaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Space, err error)
- func (c *FakeSpaces) Update(ctx context.Context, space *v1alpha1.Space, opts v1.UpdateOptions) (result *v1alpha1.Space, err error)
- func (c *FakeSpaces) UpdateStatus(ctx context.Context, space *v1alpha1.Space, opts v1.UpdateOptions) (*v1alpha1.Space, error)
- func (c *FakeSpaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTenancyV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAccounts ¶
type FakeAccounts struct {
Fake *FakeTenancyV1alpha1
}
FakeAccounts implements AccountInterface
func (*FakeAccounts) Create ¶
func (c *FakeAccounts) Create(ctx context.Context, account *v1alpha1.Account, opts v1.CreateOptions) (result *v1alpha1.Account, err error)
Create takes the representation of a account and creates it. Returns the server's representation of the account, and an error, if there is any.
func (*FakeAccounts) Delete ¶
func (c *FakeAccounts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the account and deletes it. Returns an error if one occurs.
func (*FakeAccounts) DeleteCollection ¶
func (c *FakeAccounts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAccounts) Get ¶
func (c *FakeAccounts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Account, err error)
Get takes name of the account, and returns the corresponding account object, and an error if there is any.
func (*FakeAccounts) List ¶
func (c *FakeAccounts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AccountList, err error)
List takes label and field selectors, and returns the list of Accounts that match those selectors.
func (*FakeAccounts) Patch ¶
func (c *FakeAccounts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Account, err error)
Patch applies the patch and returns the patched account.
func (*FakeAccounts) Update ¶
func (c *FakeAccounts) Update(ctx context.Context, account *v1alpha1.Account, opts v1.UpdateOptions) (result *v1alpha1.Account, err error)
Update takes the representation of a account and updates it. Returns the server's representation of the account, and an error, if there is any.
func (*FakeAccounts) UpdateStatus ¶
func (c *FakeAccounts) UpdateStatus(ctx context.Context, account *v1alpha1.Account, opts v1.UpdateOptions) (*v1alpha1.Account, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeAccounts) Watch ¶
func (c *FakeAccounts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested accounts.
type FakeSpaces ¶
type FakeSpaces struct {
Fake *FakeTenancyV1alpha1
}
FakeSpaces implements SpaceInterface
func (*FakeSpaces) Create ¶
func (c *FakeSpaces) Create(ctx context.Context, space *v1alpha1.Space, opts v1.CreateOptions) (result *v1alpha1.Space, err error)
Create takes the representation of a space and creates it. Returns the server's representation of the space, and an error, if there is any.
func (*FakeSpaces) Delete ¶
func (c *FakeSpaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the space and deletes it. Returns an error if one occurs.
func (*FakeSpaces) DeleteCollection ¶
func (c *FakeSpaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSpaces) Get ¶
func (c *FakeSpaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Space, err error)
Get takes name of the space, and returns the corresponding space object, and an error if there is any.
func (*FakeSpaces) List ¶
func (c *FakeSpaces) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SpaceList, err error)
List takes label and field selectors, and returns the list of Spaces that match those selectors.
func (*FakeSpaces) Patch ¶
func (c *FakeSpaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Space, err error)
Patch applies the patch and returns the patched space.
func (*FakeSpaces) Update ¶
func (c *FakeSpaces) Update(ctx context.Context, space *v1alpha1.Space, opts v1.UpdateOptions) (result *v1alpha1.Space, err error)
Update takes the representation of a space and updates it. Returns the server's representation of the space, and an error, if there is any.
func (*FakeSpaces) UpdateStatus ¶
func (c *FakeSpaces) UpdateStatus(ctx context.Context, space *v1alpha1.Space, opts v1.UpdateOptions) (*v1alpha1.Space, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSpaces) Watch ¶
func (c *FakeSpaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested spaces.
type FakeTenancyV1alpha1 ¶
func (*FakeTenancyV1alpha1) Accounts ¶
func (c *FakeTenancyV1alpha1) Accounts() v1alpha1.AccountInterface
func (*FakeTenancyV1alpha1) RESTClient ¶
func (c *FakeTenancyV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeTenancyV1alpha1) Spaces ¶
func (c *FakeTenancyV1alpha1) Spaces() v1alpha1.SpaceInterface