Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterImagePolicies
- func (c *FakeClusterImagePolicies) Create(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, ...) (result *v1alpha1.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 *v1alpha1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterImagePolicyList, err error)
- func (c *FakeClusterImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) Update(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, ...) (result *v1alpha1.ClusterImagePolicy, err error)
- func (c *FakeClusterImagePolicies) UpdateStatus(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, ...) (*v1alpha1.ClusterImagePolicy, error)
- func (c *FakeClusterImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePolicyV1alpha1
- type FakeTrustRoots
- func (c *FakeTrustRoots) Create(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.CreateOptions) (result *v1alpha1.TrustRoot, err error)
- func (c *FakeTrustRoots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTrustRoots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTrustRoots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TrustRoot, err error)
- func (c *FakeTrustRoots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TrustRootList, err error)
- func (c *FakeTrustRoots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.TrustRoot, err error)
- func (c *FakeTrustRoots) Update(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.UpdateOptions) (result *v1alpha1.TrustRoot, err error)
- func (c *FakeTrustRoots) UpdateStatus(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.UpdateOptions) (*v1alpha1.TrustRoot, error)
- func (c *FakeTrustRoots) 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 FakeClusterImagePolicies ¶
type FakeClusterImagePolicies struct {
Fake *FakePolicyV1alpha1
}
FakeClusterImagePolicies implements ClusterImagePolicyInterface
func (*FakeClusterImagePolicies) Create ¶
func (c *FakeClusterImagePolicies) Create(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.ClusterImagePolicy, err error)
Patch applies the patch and returns the patched clusterImagePolicy.
func (*FakeClusterImagePolicies) Update ¶
func (c *FakeClusterImagePolicies) Update(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (result *v1alpha1.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) UpdateStatus ¶ added in v0.7.0
func (c *FakeClusterImagePolicies) UpdateStatus(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (*v1alpha1.ClusterImagePolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
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 FakePolicyV1alpha1 ¶
func (*FakePolicyV1alpha1) ClusterImagePolicies ¶
func (c *FakePolicyV1alpha1) ClusterImagePolicies() v1alpha1.ClusterImagePolicyInterface
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.
func (*FakePolicyV1alpha1) TrustRoots ¶ added in v0.6.0
func (c *FakePolicyV1alpha1) TrustRoots() v1alpha1.TrustRootInterface
type FakeTrustRoots ¶ added in v0.6.0
type FakeTrustRoots struct {
Fake *FakePolicyV1alpha1
}
FakeTrustRoots implements TrustRootInterface
func (*FakeTrustRoots) Create ¶ added in v0.6.0
func (c *FakeTrustRoots) Create(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.CreateOptions) (result *v1alpha1.TrustRoot, err error)
Create takes the representation of a trustRoot and creates it. Returns the server's representation of the trustRoot, and an error, if there is any.
func (*FakeTrustRoots) Delete ¶ added in v0.6.0
func (c *FakeTrustRoots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the trustRoot and deletes it. Returns an error if one occurs.
func (*FakeTrustRoots) DeleteCollection ¶ added in v0.6.0
func (c *FakeTrustRoots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTrustRoots) Get ¶ added in v0.6.0
func (c *FakeTrustRoots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TrustRoot, err error)
Get takes name of the trustRoot, and returns the corresponding trustRoot object, and an error if there is any.
func (*FakeTrustRoots) List ¶ added in v0.6.0
func (c *FakeTrustRoots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TrustRootList, err error)
List takes label and field selectors, and returns the list of TrustRoots that match those selectors.
func (*FakeTrustRoots) Patch ¶ added in v0.6.0
func (c *FakeTrustRoots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TrustRoot, err error)
Patch applies the patch and returns the patched trustRoot.
func (*FakeTrustRoots) Update ¶ added in v0.6.0
func (c *FakeTrustRoots) Update(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.UpdateOptions) (result *v1alpha1.TrustRoot, err error)
Update takes the representation of a trustRoot and updates it. Returns the server's representation of the trustRoot, and an error, if there is any.
func (*FakeTrustRoots) UpdateStatus ¶ added in v0.7.0
func (c *FakeTrustRoots) UpdateStatus(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.UpdateOptions) (*v1alpha1.TrustRoot, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTrustRoots) Watch ¶ added in v0.6.0
func (c *FakeTrustRoots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested trustRoots.