Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCagipV1
- type FakeNetworkPolicyConfigs
- func (c *FakeNetworkPolicyConfigs) Create(ctx context.Context, networkPolicyConfig *cagipv1.NetworkPolicyConfig, ...) (result *cagipv1.NetworkPolicyConfig, err error)
- func (c *FakeNetworkPolicyConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNetworkPolicyConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNetworkPolicyConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *cagipv1.NetworkPolicyConfig, err error)
- func (c *FakeNetworkPolicyConfigs) List(ctx context.Context, opts v1.ListOptions) (result *cagipv1.NetworkPolicyConfigList, err error)
- func (c *FakeNetworkPolicyConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *cagipv1.NetworkPolicyConfig, err error)
- func (c *FakeNetworkPolicyConfigs) Update(ctx context.Context, networkPolicyConfig *cagipv1.NetworkPolicyConfig, ...) (result *cagipv1.NetworkPolicyConfig, err error)
- func (c *FakeNetworkPolicyConfigs) UpdateStatus(ctx context.Context, networkPolicyConfig *cagipv1.NetworkPolicyConfig, ...) (*cagipv1.NetworkPolicyConfig, error)
- func (c *FakeNetworkPolicyConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeProjects
- func (c *FakeProjects) Create(ctx context.Context, project *cagipv1.Project, opts v1.CreateOptions) (result *cagipv1.Project, err error)
- func (c *FakeProjects) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeProjects) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeProjects) Get(ctx context.Context, name string, options v1.GetOptions) (result *cagipv1.Project, err error)
- func (c *FakeProjects) List(ctx context.Context, opts v1.ListOptions) (result *cagipv1.ProjectList, err error)
- func (c *FakeProjects) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *cagipv1.Project, err error)
- func (c *FakeProjects) Update(ctx context.Context, project *cagipv1.Project, opts v1.UpdateOptions) (result *cagipv1.Project, err error)
- func (c *FakeProjects) UpdateStatus(ctx context.Context, project *cagipv1.Project, opts v1.UpdateOptions) (*cagipv1.Project, error)
- func (c *FakeProjects) 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 FakeCagipV1 ¶
func (*FakeCagipV1) NetworkPolicyConfigs ¶
func (c *FakeCagipV1) NetworkPolicyConfigs() v1.NetworkPolicyConfigInterface
func (*FakeCagipV1) Projects ¶
func (c *FakeCagipV1) Projects() v1.ProjectInterface
func (*FakeCagipV1) RESTClient ¶
func (c *FakeCagipV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeNetworkPolicyConfigs ¶
type FakeNetworkPolicyConfigs struct {
Fake *FakeCagipV1
}
FakeNetworkPolicyConfigs implements NetworkPolicyConfigInterface
func (*FakeNetworkPolicyConfigs) Create ¶
func (c *FakeNetworkPolicyConfigs) Create(ctx context.Context, networkPolicyConfig *cagipv1.NetworkPolicyConfig, opts v1.CreateOptions) (result *cagipv1.NetworkPolicyConfig, err error)
Create takes the representation of a networkPolicyConfig and creates it. Returns the server's representation of the networkPolicyConfig, and an error, if there is any.
func (*FakeNetworkPolicyConfigs) Delete ¶
func (c *FakeNetworkPolicyConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the networkPolicyConfig and deletes it. Returns an error if one occurs.
func (*FakeNetworkPolicyConfigs) DeleteCollection ¶
func (c *FakeNetworkPolicyConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNetworkPolicyConfigs) Get ¶
func (c *FakeNetworkPolicyConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *cagipv1.NetworkPolicyConfig, err error)
Get takes name of the networkPolicyConfig, and returns the corresponding networkPolicyConfig object, and an error if there is any.
func (*FakeNetworkPolicyConfigs) List ¶
func (c *FakeNetworkPolicyConfigs) List(ctx context.Context, opts v1.ListOptions) (result *cagipv1.NetworkPolicyConfigList, err error)
List takes label and field selectors, and returns the list of NetworkPolicyConfigs that match those selectors.
func (*FakeNetworkPolicyConfigs) Patch ¶
func (c *FakeNetworkPolicyConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *cagipv1.NetworkPolicyConfig, err error)
Patch applies the patch and returns the patched networkPolicyConfig.
func (*FakeNetworkPolicyConfigs) Update ¶
func (c *FakeNetworkPolicyConfigs) Update(ctx context.Context, networkPolicyConfig *cagipv1.NetworkPolicyConfig, opts v1.UpdateOptions) (result *cagipv1.NetworkPolicyConfig, err error)
Update takes the representation of a networkPolicyConfig and updates it. Returns the server's representation of the networkPolicyConfig, and an error, if there is any.
func (*FakeNetworkPolicyConfigs) UpdateStatus ¶
func (c *FakeNetworkPolicyConfigs) UpdateStatus(ctx context.Context, networkPolicyConfig *cagipv1.NetworkPolicyConfig, opts v1.UpdateOptions) (*cagipv1.NetworkPolicyConfig, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNetworkPolicyConfigs) Watch ¶
func (c *FakeNetworkPolicyConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested networkPolicyConfigs.
type FakeProjects ¶
type FakeProjects struct {
Fake *FakeCagipV1
}
FakeProjects implements ProjectInterface
func (*FakeProjects) Create ¶
func (c *FakeProjects) Create(ctx context.Context, project *cagipv1.Project, opts v1.CreateOptions) (result *cagipv1.Project, err error)
Create takes the representation of a project and creates it. Returns the server's representation of the project, and an error, if there is any.
func (*FakeProjects) Delete ¶
func (c *FakeProjects) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the project and deletes it. Returns an error if one occurs.
func (*FakeProjects) DeleteCollection ¶
func (c *FakeProjects) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeProjects) Get ¶
func (c *FakeProjects) Get(ctx context.Context, name string, options v1.GetOptions) (result *cagipv1.Project, err error)
Get takes name of the project, and returns the corresponding project object, and an error if there is any.
func (*FakeProjects) List ¶
func (c *FakeProjects) List(ctx context.Context, opts v1.ListOptions) (result *cagipv1.ProjectList, err error)
List takes label and field selectors, and returns the list of Projects that match those selectors.
func (*FakeProjects) Patch ¶
func (c *FakeProjects) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *cagipv1.Project, err error)
Patch applies the patch and returns the patched project.
func (*FakeProjects) Update ¶
func (c *FakeProjects) Update(ctx context.Context, project *cagipv1.Project, opts v1.UpdateOptions) (result *cagipv1.Project, err error)
Update takes the representation of a project and updates it. Returns the server's representation of the project, and an error, if there is any.
func (*FakeProjects) UpdateStatus ¶
func (c *FakeProjects) UpdateStatus(ctx context.Context, project *cagipv1.Project, opts v1.UpdateOptions) (*cagipv1.Project, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeProjects) Watch ¶
func (c *FakeProjects) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested projects.