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