Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterOverridePolicies
- func (c *FakeClusterOverridePolicies) Create(ctx context.Context, clusterOverridePolicy *v1alpha1.ClusterOverridePolicy, ...) (result *v1alpha1.ClusterOverridePolicy, err error)
- func (c *FakeClusterOverridePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterOverridePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterOverridePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterOverridePolicy, err error)
- func (c *FakeClusterOverridePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterOverridePolicyList, err error)
- func (c *FakeClusterOverridePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ClusterOverridePolicy, err error)
- func (c *FakeClusterOverridePolicies) Update(ctx context.Context, clusterOverridePolicy *v1alpha1.ClusterOverridePolicy, ...) (result *v1alpha1.ClusterOverridePolicy, err error)
- func (c *FakeClusterOverridePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterValidatePolicies
- func (c *FakeClusterValidatePolicies) Create(ctx context.Context, clusterValidatePolicy *v1alpha1.ClusterValidatePolicy, ...) (result *v1alpha1.ClusterValidatePolicy, err error)
- func (c *FakeClusterValidatePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterValidatePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterValidatePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterValidatePolicy, err error)
- func (c *FakeClusterValidatePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterValidatePolicyList, err error)
- func (c *FakeClusterValidatePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ClusterValidatePolicy, err error)
- func (c *FakeClusterValidatePolicies) Update(ctx context.Context, clusterValidatePolicy *v1alpha1.ClusterValidatePolicy, ...) (result *v1alpha1.ClusterValidatePolicy, err error)
- func (c *FakeClusterValidatePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeOverridePolicies
- func (c *FakeOverridePolicies) Create(ctx context.Context, overridePolicy *v1alpha1.OverridePolicy, ...) (result *v1alpha1.OverridePolicy, err error)
- func (c *FakeOverridePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeOverridePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeOverridePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.OverridePolicy, err error)
- func (c *FakeOverridePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.OverridePolicyList, err error)
- func (c *FakeOverridePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.OverridePolicy, err error)
- func (c *FakeOverridePolicies) Update(ctx context.Context, overridePolicy *v1alpha1.OverridePolicy, ...) (result *v1alpha1.OverridePolicy, err error)
- func (c *FakeOverridePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePolicyV1alpha1
- func (c *FakePolicyV1alpha1) ClusterOverridePolicies() v1alpha1.ClusterOverridePolicyInterface
- func (c *FakePolicyV1alpha1) ClusterValidatePolicies() v1alpha1.ClusterValidatePolicyInterface
- func (c *FakePolicyV1alpha1) OverridePolicies(namespace string) v1alpha1.OverridePolicyInterface
- func (c *FakePolicyV1alpha1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterOverridePolicies ¶
type FakeClusterOverridePolicies struct {
Fake *FakePolicyV1alpha1
}
FakeClusterOverridePolicies implements ClusterOverridePolicyInterface
func (*FakeClusterOverridePolicies) Create ¶
func (c *FakeClusterOverridePolicies) Create(ctx context.Context, clusterOverridePolicy *v1alpha1.ClusterOverridePolicy, opts v1.CreateOptions) (result *v1alpha1.ClusterOverridePolicy, err error)
Create takes the representation of a clusterOverridePolicy and creates it. Returns the server's representation of the clusterOverridePolicy, and an error, if there is any.
func (*FakeClusterOverridePolicies) Delete ¶
func (c *FakeClusterOverridePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterOverridePolicy and deletes it. Returns an error if one occurs.
func (*FakeClusterOverridePolicies) DeleteCollection ¶
func (c *FakeClusterOverridePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterOverridePolicies) Get ¶
func (c *FakeClusterOverridePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterOverridePolicy, err error)
Get takes name of the clusterOverridePolicy, and returns the corresponding clusterOverridePolicy object, and an error if there is any.
func (*FakeClusterOverridePolicies) List ¶
func (c *FakeClusterOverridePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterOverridePolicyList, err error)
List takes label and field selectors, and returns the list of ClusterOverridePolicies that match those selectors.
func (*FakeClusterOverridePolicies) Patch ¶
func (c *FakeClusterOverridePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterOverridePolicy, err error)
Patch applies the patch and returns the patched clusterOverridePolicy.
func (*FakeClusterOverridePolicies) Update ¶
func (c *FakeClusterOverridePolicies) Update(ctx context.Context, clusterOverridePolicy *v1alpha1.ClusterOverridePolicy, opts v1.UpdateOptions) (result *v1alpha1.ClusterOverridePolicy, err error)
Update takes the representation of a clusterOverridePolicy and updates it. Returns the server's representation of the clusterOverridePolicy, and an error, if there is any.
func (*FakeClusterOverridePolicies) Watch ¶
func (c *FakeClusterOverridePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterOverridePolicies.
type FakeClusterValidatePolicies ¶ added in v0.2.0
type FakeClusterValidatePolicies struct {
Fake *FakePolicyV1alpha1
}
FakeClusterValidatePolicies implements ClusterValidatePolicyInterface
func (*FakeClusterValidatePolicies) Create ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) Create(ctx context.Context, clusterValidatePolicy *v1alpha1.ClusterValidatePolicy, opts v1.CreateOptions) (result *v1alpha1.ClusterValidatePolicy, err error)
Create takes the representation of a clusterValidatePolicy and creates it. Returns the server's representation of the clusterValidatePolicy, and an error, if there is any.
func (*FakeClusterValidatePolicies) Delete ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterValidatePolicy and deletes it. Returns an error if one occurs.
func (*FakeClusterValidatePolicies) DeleteCollection ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterValidatePolicies) Get ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterValidatePolicy, err error)
Get takes name of the clusterValidatePolicy, and returns the corresponding clusterValidatePolicy object, and an error if there is any.
func (*FakeClusterValidatePolicies) List ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterValidatePolicyList, err error)
List takes label and field selectors, and returns the list of ClusterValidatePolicies that match those selectors.
func (*FakeClusterValidatePolicies) Patch ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterValidatePolicy, err error)
Patch applies the patch and returns the patched clusterValidatePolicy.
func (*FakeClusterValidatePolicies) Update ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) Update(ctx context.Context, clusterValidatePolicy *v1alpha1.ClusterValidatePolicy, opts v1.UpdateOptions) (result *v1alpha1.ClusterValidatePolicy, err error)
Update takes the representation of a clusterValidatePolicy and updates it. Returns the server's representation of the clusterValidatePolicy, and an error, if there is any.
func (*FakeClusterValidatePolicies) Watch ¶ added in v0.2.0
func (c *FakeClusterValidatePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterValidatePolicies.
type FakeOverridePolicies ¶
type FakeOverridePolicies struct { Fake *FakePolicyV1alpha1 // contains filtered or unexported fields }
FakeOverridePolicies implements OverridePolicyInterface
func (*FakeOverridePolicies) Create ¶
func (c *FakeOverridePolicies) Create(ctx context.Context, overridePolicy *v1alpha1.OverridePolicy, opts v1.CreateOptions) (result *v1alpha1.OverridePolicy, err error)
Create takes the representation of a overridePolicy and creates it. Returns the server's representation of the overridePolicy, and an error, if there is any.
func (*FakeOverridePolicies) Delete ¶
func (c *FakeOverridePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the overridePolicy and deletes it. Returns an error if one occurs.
func (*FakeOverridePolicies) DeleteCollection ¶
func (c *FakeOverridePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeOverridePolicies) Get ¶
func (c *FakeOverridePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.OverridePolicy, err error)
Get takes name of the overridePolicy, and returns the corresponding overridePolicy object, and an error if there is any.
func (*FakeOverridePolicies) List ¶
func (c *FakeOverridePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.OverridePolicyList, err error)
List takes label and field selectors, and returns the list of OverridePolicies that match those selectors.
func (*FakeOverridePolicies) Patch ¶
func (c *FakeOverridePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.OverridePolicy, err error)
Patch applies the patch and returns the patched overridePolicy.
func (*FakeOverridePolicies) Update ¶
func (c *FakeOverridePolicies) Update(ctx context.Context, overridePolicy *v1alpha1.OverridePolicy, opts v1.UpdateOptions) (result *v1alpha1.OverridePolicy, err error)
Update takes the representation of a overridePolicy and updates it. Returns the server's representation of the overridePolicy, and an error, if there is any.
func (*FakeOverridePolicies) Watch ¶
func (c *FakeOverridePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested overridePolicies.
type FakePolicyV1alpha1 ¶
func (*FakePolicyV1alpha1) ClusterOverridePolicies ¶
func (c *FakePolicyV1alpha1) ClusterOverridePolicies() v1alpha1.ClusterOverridePolicyInterface
func (*FakePolicyV1alpha1) ClusterValidatePolicies ¶ added in v0.2.0
func (c *FakePolicyV1alpha1) ClusterValidatePolicies() v1alpha1.ClusterValidatePolicyInterface
func (*FakePolicyV1alpha1) OverridePolicies ¶
func (c *FakePolicyV1alpha1) OverridePolicies(namespace string) v1alpha1.OverridePolicyInterface
func (*FakePolicyV1alpha1) RESTClient ¶
func (c *FakePolicyV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.