Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeKubetrivyV1
- type FakeVulnerabilities
- func (c *FakeVulnerabilities) Create(vulnerability *kubetrivyv1.Vulnerability) (result *kubetrivyv1.Vulnerability, err error)
- func (c *FakeVulnerabilities) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeVulnerabilities) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeVulnerabilities) Get(name string, options v1.GetOptions) (result *kubetrivyv1.Vulnerability, err error)
- func (c *FakeVulnerabilities) List(opts v1.ListOptions) (result *kubetrivyv1.VulnerabilityList, err error)
- func (c *FakeVulnerabilities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kubetrivyv1.Vulnerability, err error)
- func (c *FakeVulnerabilities) Update(vulnerability *kubetrivyv1.Vulnerability) (result *kubetrivyv1.Vulnerability, err error)
- func (c *FakeVulnerabilities) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeKubetrivyV1 ¶
func (*FakeKubetrivyV1) RESTClient ¶
func (c *FakeKubetrivyV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeKubetrivyV1) Vulnerabilities ¶
func (c *FakeKubetrivyV1) Vulnerabilities(namespace string) v1.VulnerabilityInterface
type FakeVulnerabilities ¶
type FakeVulnerabilities struct { Fake *FakeKubetrivyV1 // contains filtered or unexported fields }
FakeVulnerabilities implements VulnerabilityInterface
func (*FakeVulnerabilities) Create ¶
func (c *FakeVulnerabilities) Create(vulnerability *kubetrivyv1.Vulnerability) (result *kubetrivyv1.Vulnerability, err error)
Create takes the representation of a vulnerability and creates it. Returns the server's representation of the vulnerability, and an error, if there is any.
func (*FakeVulnerabilities) Delete ¶
func (c *FakeVulnerabilities) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the vulnerability and deletes it. Returns an error if one occurs.
func (*FakeVulnerabilities) DeleteCollection ¶
func (c *FakeVulnerabilities) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeVulnerabilities) Get ¶
func (c *FakeVulnerabilities) Get(name string, options v1.GetOptions) (result *kubetrivyv1.Vulnerability, err error)
Get takes name of the vulnerability, and returns the corresponding vulnerability object, and an error if there is any.
func (*FakeVulnerabilities) List ¶
func (c *FakeVulnerabilities) List(opts v1.ListOptions) (result *kubetrivyv1.VulnerabilityList, err error)
List takes label and field selectors, and returns the list of Vulnerabilities that match those selectors.
func (*FakeVulnerabilities) Patch ¶
func (c *FakeVulnerabilities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kubetrivyv1.Vulnerability, err error)
Patch applies the patch and returns the patched vulnerability.
func (*FakeVulnerabilities) Update ¶
func (c *FakeVulnerabilities) Update(vulnerability *kubetrivyv1.Vulnerability) (result *kubetrivyv1.Vulnerability, err error)
Update takes the representation of a vulnerability and updates it. Returns the server's representation of the vulnerability, and an error, if there is any.
func (*FakeVulnerabilities) Watch ¶
func (c *FakeVulnerabilities) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested vulnerabilities.