Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterImagePolicies
- func (c *FakeClusterImagePolicies) Create(ctx context.Context, ...) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *portieriscloudibmcomv1.ClusterImagePolicyList, err error)
- func (c *FakeClusterImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) Update(ctx context.Context, ...) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeImagePolicies
- func (c *FakeImagePolicies) Create(ctx context.Context, imagePolicy *portieriscloudibmcomv1.ImagePolicy, ...) (result *portieriscloudibmcomv1.ImagePolicy, err error)
- func (c *FakeImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *portieriscloudibmcomv1.ImagePolicy, err error)
- func (c *FakeImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *portieriscloudibmcomv1.ImagePolicyList, err error)
- func (c *FakeImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *portieriscloudibmcomv1.ImagePolicy, err error)
- func (c *FakeImagePolicies) Update(ctx context.Context, imagePolicy *portieriscloudibmcomv1.ImagePolicy, ...) (result *portieriscloudibmcomv1.ImagePolicy, err error)
- func (c *FakeImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePortierisV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterImagePolicies ¶
type FakeClusterImagePolicies struct {
Fake *FakePortierisV1
}
FakeClusterImagePolicies implements ClusterImagePolicyInterface
func (*FakeClusterImagePolicies) Create ¶
func (c *FakeClusterImagePolicies) Create(ctx context.Context, clusterImagePolicy *portieriscloudibmcomv1.ClusterImagePolicy, opts v1.CreateOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
Create takes the representation of a clusterImagePolicy and creates it. Returns the server's representation of the clusterImagePolicy, and an error, if there is any.
func (*FakeClusterImagePolicies) Delete ¶
func (c *FakeClusterImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterImagePolicy and deletes it. Returns an error if one occurs.
func (*FakeClusterImagePolicies) DeleteCollection ¶
func (c *FakeClusterImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterImagePolicies) Get ¶
func (c *FakeClusterImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
Get takes name of the clusterImagePolicy, and returns the corresponding clusterImagePolicy object, and an error if there is any.
func (*FakeClusterImagePolicies) List ¶
func (c *FakeClusterImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *portieriscloudibmcomv1.ClusterImagePolicyList, err error)
List takes label and field selectors, and returns the list of ClusterImagePolicies that match those selectors.
func (*FakeClusterImagePolicies) Patch ¶
func (c *FakeClusterImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
Patch applies the patch and returns the patched clusterImagePolicy.
func (*FakeClusterImagePolicies) Update ¶
func (c *FakeClusterImagePolicies) Update(ctx context.Context, clusterImagePolicy *portieriscloudibmcomv1.ClusterImagePolicy, opts v1.UpdateOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error)
Update takes the representation of a clusterImagePolicy and updates it. Returns the server's representation of the clusterImagePolicy, and an error, if there is any.
func (*FakeClusterImagePolicies) Watch ¶
func (c *FakeClusterImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterImagePolicies.
type FakeImagePolicies ¶
type FakeImagePolicies struct { Fake *FakePortierisV1 // contains filtered or unexported fields }
FakeImagePolicies implements ImagePolicyInterface
func (*FakeImagePolicies) Create ¶
func (c *FakeImagePolicies) Create(ctx context.Context, imagePolicy *portieriscloudibmcomv1.ImagePolicy, opts v1.CreateOptions) (result *portieriscloudibmcomv1.ImagePolicy, err error)
Create takes the representation of a imagePolicy and creates it. Returns the server's representation of the imagePolicy, and an error, if there is any.
func (*FakeImagePolicies) Delete ¶
func (c *FakeImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the imagePolicy and deletes it. Returns an error if one occurs.
func (*FakeImagePolicies) DeleteCollection ¶
func (c *FakeImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeImagePolicies) Get ¶
func (c *FakeImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *portieriscloudibmcomv1.ImagePolicy, err error)
Get takes name of the imagePolicy, and returns the corresponding imagePolicy object, and an error if there is any.
func (*FakeImagePolicies) List ¶
func (c *FakeImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *portieriscloudibmcomv1.ImagePolicyList, err error)
List takes label and field selectors, and returns the list of ImagePolicies that match those selectors.
func (*FakeImagePolicies) Patch ¶
func (c *FakeImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *portieriscloudibmcomv1.ImagePolicy, err error)
Patch applies the patch and returns the patched imagePolicy.
func (*FakeImagePolicies) Update ¶
func (c *FakeImagePolicies) Update(ctx context.Context, imagePolicy *portieriscloudibmcomv1.ImagePolicy, opts v1.UpdateOptions) (result *portieriscloudibmcomv1.ImagePolicy, err error)
Update takes the representation of a imagePolicy and updates it. Returns the server's representation of the imagePolicy, and an error, if there is any.
func (*FakeImagePolicies) Watch ¶
func (c *FakeImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested imagePolicies.
type FakePortierisV1 ¶
func (*FakePortierisV1) ClusterImagePolicies ¶
func (c *FakePortierisV1) ClusterImagePolicies() v1.ClusterImagePolicyInterface
func (*FakePortierisV1) ImagePolicies ¶
func (c *FakePortierisV1) ImagePolicies(namespace string) v1.ImagePolicyInterface
func (*FakePortierisV1) RESTClient ¶
func (c *FakePortierisV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.