Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAuthorizationPolicies
- func (c *FakeAuthorizationPolicies) Apply(ctx context.Context, ...) (result *v1.AuthorizationPolicy, err error)
- func (c *FakeAuthorizationPolicies) ApplyStatus(ctx context.Context, ...) (result *v1.AuthorizationPolicy, err error)
- func (c *FakeAuthorizationPolicies) Create(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, ...) (result *v1.AuthorizationPolicy, err error)
- func (c *FakeAuthorizationPolicies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeAuthorizationPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeAuthorizationPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AuthorizationPolicy, err error)
- func (c *FakeAuthorizationPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AuthorizationPolicyList, err error)
- func (c *FakeAuthorizationPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.AuthorizationPolicy, err error)
- func (c *FakeAuthorizationPolicies) Update(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, ...) (result *v1.AuthorizationPolicy, err error)
- func (c *FakeAuthorizationPolicies) UpdateStatus(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, ...) (*v1.AuthorizationPolicy, error)
- func (c *FakeAuthorizationPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakePeerAuthentications
- func (c *FakePeerAuthentications) Apply(ctx context.Context, ...) (result *v1.PeerAuthentication, err error)
- func (c *FakePeerAuthentications) ApplyStatus(ctx context.Context, ...) (result *v1.PeerAuthentication, err error)
- func (c *FakePeerAuthentications) Create(ctx context.Context, peerAuthentication *v1.PeerAuthentication, ...) (result *v1.PeerAuthentication, err error)
- func (c *FakePeerAuthentications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakePeerAuthentications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakePeerAuthentications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PeerAuthentication, err error)
- func (c *FakePeerAuthentications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PeerAuthenticationList, err error)
- func (c *FakePeerAuthentications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.PeerAuthentication, err error)
- func (c *FakePeerAuthentications) Update(ctx context.Context, peerAuthentication *v1.PeerAuthentication, ...) (result *v1.PeerAuthentication, err error)
- func (c *FakePeerAuthentications) UpdateStatus(ctx context.Context, peerAuthentication *v1.PeerAuthentication, ...) (*v1.PeerAuthentication, error)
- func (c *FakePeerAuthentications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeRequestAuthentications
- func (c *FakeRequestAuthentications) Apply(ctx context.Context, ...) (result *v1.RequestAuthentication, err error)
- func (c *FakeRequestAuthentications) ApplyStatus(ctx context.Context, ...) (result *v1.RequestAuthentication, err error)
- func (c *FakeRequestAuthentications) Create(ctx context.Context, requestAuthentication *v1.RequestAuthentication, ...) (result *v1.RequestAuthentication, err error)
- func (c *FakeRequestAuthentications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeRequestAuthentications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeRequestAuthentications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RequestAuthentication, err error)
- func (c *FakeRequestAuthentications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RequestAuthenticationList, err error)
- func (c *FakeRequestAuthentications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.RequestAuthentication, err error)
- func (c *FakeRequestAuthentications) Update(ctx context.Context, requestAuthentication *v1.RequestAuthentication, ...) (result *v1.RequestAuthentication, err error)
- func (c *FakeRequestAuthentications) UpdateStatus(ctx context.Context, requestAuthentication *v1.RequestAuthentication, ...) (*v1.RequestAuthentication, error)
- func (c *FakeRequestAuthentications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeSecurityV1
- func (c *FakeSecurityV1) AuthorizationPolicies(namespace string) v1.AuthorizationPolicyInterface
- func (c *FakeSecurityV1) PeerAuthentications(namespace string) v1.PeerAuthenticationInterface
- func (c *FakeSecurityV1) RESTClient() rest.Interface
- func (c *FakeSecurityV1) RequestAuthentications(namespace string) v1.RequestAuthenticationInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAuthorizationPolicies ¶
type FakeAuthorizationPolicies struct { Fake *FakeSecurityV1 // contains filtered or unexported fields }
FakeAuthorizationPolicies implements AuthorizationPolicyInterface
func (*FakeAuthorizationPolicies) Apply ¶
func (c *FakeAuthorizationPolicies) Apply(ctx context.Context, authorizationPolicy *securityv1.AuthorizationPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AuthorizationPolicy, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied authorizationPolicy.
func (*FakeAuthorizationPolicies) ApplyStatus ¶
func (c *FakeAuthorizationPolicies) ApplyStatus(ctx context.Context, authorizationPolicy *securityv1.AuthorizationPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AuthorizationPolicy, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeAuthorizationPolicies) Create ¶
func (c *FakeAuthorizationPolicies) Create(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, opts metav1.CreateOptions) (result *v1.AuthorizationPolicy, err error)
Create takes the representation of a authorizationPolicy and creates it. Returns the server's representation of the authorizationPolicy, and an error, if there is any.
func (*FakeAuthorizationPolicies) Delete ¶
func (c *FakeAuthorizationPolicies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the authorizationPolicy and deletes it. Returns an error if one occurs.
func (*FakeAuthorizationPolicies) DeleteCollection ¶
func (c *FakeAuthorizationPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAuthorizationPolicies) Get ¶
func (c *FakeAuthorizationPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AuthorizationPolicy, err error)
Get takes name of the authorizationPolicy, and returns the corresponding authorizationPolicy object, and an error if there is any.
func (*FakeAuthorizationPolicies) List ¶
func (c *FakeAuthorizationPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AuthorizationPolicyList, err error)
List takes label and field selectors, and returns the list of AuthorizationPolicies that match those selectors.
func (*FakeAuthorizationPolicies) Patch ¶
func (c *FakeAuthorizationPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AuthorizationPolicy, err error)
Patch applies the patch and returns the patched authorizationPolicy.
func (*FakeAuthorizationPolicies) Update ¶
func (c *FakeAuthorizationPolicies) Update(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, opts metav1.UpdateOptions) (result *v1.AuthorizationPolicy, err error)
Update takes the representation of a authorizationPolicy and updates it. Returns the server's representation of the authorizationPolicy, and an error, if there is any.
func (*FakeAuthorizationPolicies) UpdateStatus ¶
func (c *FakeAuthorizationPolicies) UpdateStatus(ctx context.Context, authorizationPolicy *v1.AuthorizationPolicy, opts metav1.UpdateOptions) (*v1.AuthorizationPolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeAuthorizationPolicies) Watch ¶
func (c *FakeAuthorizationPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested authorizationPolicies.
type FakePeerAuthentications ¶ added in v1.22.0
type FakePeerAuthentications struct { Fake *FakeSecurityV1 // contains filtered or unexported fields }
FakePeerAuthentications implements PeerAuthenticationInterface
func (*FakePeerAuthentications) Apply ¶ added in v1.22.0
func (c *FakePeerAuthentications) Apply(ctx context.Context, peerAuthentication *securityv1.PeerAuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.PeerAuthentication, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied peerAuthentication.
func (*FakePeerAuthentications) ApplyStatus ¶ added in v1.22.0
func (c *FakePeerAuthentications) ApplyStatus(ctx context.Context, peerAuthentication *securityv1.PeerAuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.PeerAuthentication, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakePeerAuthentications) Create ¶ added in v1.22.0
func (c *FakePeerAuthentications) Create(ctx context.Context, peerAuthentication *v1.PeerAuthentication, opts metav1.CreateOptions) (result *v1.PeerAuthentication, err error)
Create takes the representation of a peerAuthentication and creates it. Returns the server's representation of the peerAuthentication, and an error, if there is any.
func (*FakePeerAuthentications) Delete ¶ added in v1.22.0
func (c *FakePeerAuthentications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the peerAuthentication and deletes it. Returns an error if one occurs.
func (*FakePeerAuthentications) DeleteCollection ¶ added in v1.22.0
func (c *FakePeerAuthentications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePeerAuthentications) Get ¶ added in v1.22.0
func (c *FakePeerAuthentications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PeerAuthentication, err error)
Get takes name of the peerAuthentication, and returns the corresponding peerAuthentication object, and an error if there is any.
func (*FakePeerAuthentications) List ¶ added in v1.22.0
func (c *FakePeerAuthentications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PeerAuthenticationList, err error)
List takes label and field selectors, and returns the list of PeerAuthentications that match those selectors.
func (*FakePeerAuthentications) Patch ¶ added in v1.22.0
func (c *FakePeerAuthentications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PeerAuthentication, err error)
Patch applies the patch and returns the patched peerAuthentication.
func (*FakePeerAuthentications) Update ¶ added in v1.22.0
func (c *FakePeerAuthentications) Update(ctx context.Context, peerAuthentication *v1.PeerAuthentication, opts metav1.UpdateOptions) (result *v1.PeerAuthentication, err error)
Update takes the representation of a peerAuthentication and updates it. Returns the server's representation of the peerAuthentication, and an error, if there is any.
func (*FakePeerAuthentications) UpdateStatus ¶ added in v1.22.0
func (c *FakePeerAuthentications) UpdateStatus(ctx context.Context, peerAuthentication *v1.PeerAuthentication, opts metav1.UpdateOptions) (*v1.PeerAuthentication, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePeerAuthentications) Watch ¶ added in v1.22.0
func (c *FakePeerAuthentications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested peerAuthentications.
type FakeRequestAuthentications ¶
type FakeRequestAuthentications struct { Fake *FakeSecurityV1 // contains filtered or unexported fields }
FakeRequestAuthentications implements RequestAuthenticationInterface
func (*FakeRequestAuthentications) Apply ¶
func (c *FakeRequestAuthentications) Apply(ctx context.Context, requestAuthentication *securityv1.RequestAuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RequestAuthentication, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied requestAuthentication.
func (*FakeRequestAuthentications) ApplyStatus ¶
func (c *FakeRequestAuthentications) ApplyStatus(ctx context.Context, requestAuthentication *securityv1.RequestAuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RequestAuthentication, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeRequestAuthentications) Create ¶
func (c *FakeRequestAuthentications) Create(ctx context.Context, requestAuthentication *v1.RequestAuthentication, opts metav1.CreateOptions) (result *v1.RequestAuthentication, err error)
Create takes the representation of a requestAuthentication and creates it. Returns the server's representation of the requestAuthentication, and an error, if there is any.
func (*FakeRequestAuthentications) Delete ¶
func (c *FakeRequestAuthentications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the requestAuthentication and deletes it. Returns an error if one occurs.
func (*FakeRequestAuthentications) DeleteCollection ¶
func (c *FakeRequestAuthentications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRequestAuthentications) Get ¶
func (c *FakeRequestAuthentications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RequestAuthentication, err error)
Get takes name of the requestAuthentication, and returns the corresponding requestAuthentication object, and an error if there is any.
func (*FakeRequestAuthentications) List ¶
func (c *FakeRequestAuthentications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RequestAuthenticationList, err error)
List takes label and field selectors, and returns the list of RequestAuthentications that match those selectors.
func (*FakeRequestAuthentications) Patch ¶
func (c *FakeRequestAuthentications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RequestAuthentication, err error)
Patch applies the patch and returns the patched requestAuthentication.
func (*FakeRequestAuthentications) Update ¶
func (c *FakeRequestAuthentications) Update(ctx context.Context, requestAuthentication *v1.RequestAuthentication, opts metav1.UpdateOptions) (result *v1.RequestAuthentication, err error)
Update takes the representation of a requestAuthentication and updates it. Returns the server's representation of the requestAuthentication, and an error, if there is any.
func (*FakeRequestAuthentications) UpdateStatus ¶
func (c *FakeRequestAuthentications) UpdateStatus(ctx context.Context, requestAuthentication *v1.RequestAuthentication, opts metav1.UpdateOptions) (*v1.RequestAuthentication, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRequestAuthentications) Watch ¶
func (c *FakeRequestAuthentications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested requestAuthentications.
type FakeSecurityV1 ¶
func (*FakeSecurityV1) AuthorizationPolicies ¶
func (c *FakeSecurityV1) AuthorizationPolicies(namespace string) v1.AuthorizationPolicyInterface
func (*FakeSecurityV1) PeerAuthentications ¶ added in v1.22.0
func (c *FakeSecurityV1) PeerAuthentications(namespace string) v1.PeerAuthenticationInterface
func (*FakeSecurityV1) RESTClient ¶
func (c *FakeSecurityV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeSecurityV1) RequestAuthentications ¶
func (c *FakeSecurityV1) RequestAuthentications(namespace string) v1.RequestAuthenticationInterface