fake

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAquasecurityV1alpha1

type FakeAquasecurityV1alpha1 struct {
	*testing.Fake
}

func (*FakeAquasecurityV1alpha1) CISKubeBenchReports

func (*FakeAquasecurityV1alpha1) ConfigAuditReports

func (c *FakeAquasecurityV1alpha1) ConfigAuditReports(namespace string) v1alpha1.ConfigAuditReportInterface

func (*FakeAquasecurityV1alpha1) KubeHunterReports

func (*FakeAquasecurityV1alpha1) RESTClient

func (c *FakeAquasecurityV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeAquasecurityV1alpha1) VulnerabilityReports added in v0.4.0

func (c *FakeAquasecurityV1alpha1) VulnerabilityReports(namespace string) v1alpha1.VulnerabilityReportInterface

type FakeCISKubeBenchReports

type FakeCISKubeBenchReports struct {
	Fake *FakeAquasecurityV1alpha1
}

FakeCISKubeBenchReports implements CISKubeBenchReportInterface

func (*FakeCISKubeBenchReports) Create

func (c *FakeCISKubeBenchReports) Create(ctx context.Context, cISKubeBenchReport *v1alpha1.CISKubeBenchReport, opts v1.CreateOptions) (result *v1alpha1.CISKubeBenchReport, err error)

Create takes the representation of a cISKubeBenchReport and creates it. Returns the server's representation of the cISKubeBenchReport, and an error, if there is any.

func (*FakeCISKubeBenchReports) Delete

func (c *FakeCISKubeBenchReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the cISKubeBenchReport and deletes it. Returns an error if one occurs.

func (*FakeCISKubeBenchReports) DeleteCollection

func (c *FakeCISKubeBenchReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCISKubeBenchReports) Get

func (c *FakeCISKubeBenchReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CISKubeBenchReport, err error)

Get takes name of the cISKubeBenchReport, and returns the corresponding cISKubeBenchReport object, and an error if there is any.

func (*FakeCISKubeBenchReports) List

List takes label and field selectors, and returns the list of CISKubeBenchReports that match those selectors.

func (*FakeCISKubeBenchReports) Patch

func (c *FakeCISKubeBenchReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CISKubeBenchReport, err error)

Patch applies the patch and returns the patched cISKubeBenchReport.

func (*FakeCISKubeBenchReports) Update

func (c *FakeCISKubeBenchReports) Update(ctx context.Context, cISKubeBenchReport *v1alpha1.CISKubeBenchReport, opts v1.UpdateOptions) (result *v1alpha1.CISKubeBenchReport, err error)

Update takes the representation of a cISKubeBenchReport and updates it. Returns the server's representation of the cISKubeBenchReport, and an error, if there is any.

func (*FakeCISKubeBenchReports) Watch

Watch returns a watch.Interface that watches the requested cISKubeBenchReports.

type FakeConfigAuditReports

type FakeConfigAuditReports struct {
	Fake *FakeAquasecurityV1alpha1
	// contains filtered or unexported fields
}

FakeConfigAuditReports implements ConfigAuditReportInterface

func (*FakeConfigAuditReports) Create

func (c *FakeConfigAuditReports) Create(ctx context.Context, configAuditReport *v1alpha1.ConfigAuditReport, opts v1.CreateOptions) (result *v1alpha1.ConfigAuditReport, err error)

Create takes the representation of a configAuditReport and creates it. Returns the server's representation of the configAuditReport, and an error, if there is any.

func (*FakeConfigAuditReports) Delete

func (c *FakeConfigAuditReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the configAuditReport and deletes it. Returns an error if one occurs.

func (*FakeConfigAuditReports) DeleteCollection

func (c *FakeConfigAuditReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigAuditReports) Get

func (c *FakeConfigAuditReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConfigAuditReport, err error)

Get takes name of the configAuditReport, and returns the corresponding configAuditReport object, and an error if there is any.

func (*FakeConfigAuditReports) List

List takes label and field selectors, and returns the list of ConfigAuditReports that match those selectors.

func (*FakeConfigAuditReports) Patch

func (c *FakeConfigAuditReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConfigAuditReport, err error)

Patch applies the patch and returns the patched configAuditReport.

func (*FakeConfigAuditReports) Update

func (c *FakeConfigAuditReports) Update(ctx context.Context, configAuditReport *v1alpha1.ConfigAuditReport, opts v1.UpdateOptions) (result *v1alpha1.ConfigAuditReport, err error)

Update takes the representation of a configAuditReport and updates it. Returns the server's representation of the configAuditReport, and an error, if there is any.

func (*FakeConfigAuditReports) Watch

Watch returns a watch.Interface that watches the requested configAuditReports.

type FakeKubeHunterReports

type FakeKubeHunterReports struct {
	Fake *FakeAquasecurityV1alpha1
}

FakeKubeHunterReports implements KubeHunterReportInterface

func (*FakeKubeHunterReports) Create

func (c *FakeKubeHunterReports) Create(ctx context.Context, kubeHunterReport *v1alpha1.KubeHunterReport, opts v1.CreateOptions) (result *v1alpha1.KubeHunterReport, err error)

Create takes the representation of a kubeHunterReport and creates it. Returns the server's representation of the kubeHunterReport, and an error, if there is any.

func (*FakeKubeHunterReports) Delete

func (c *FakeKubeHunterReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the kubeHunterReport and deletes it. Returns an error if one occurs.

func (*FakeKubeHunterReports) DeleteCollection

func (c *FakeKubeHunterReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKubeHunterReports) Get

func (c *FakeKubeHunterReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KubeHunterReport, err error)

Get takes name of the kubeHunterReport, and returns the corresponding kubeHunterReport object, and an error if there is any.

func (*FakeKubeHunterReports) List

List takes label and field selectors, and returns the list of KubeHunterReports that match those selectors.

func (*FakeKubeHunterReports) Patch

func (c *FakeKubeHunterReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KubeHunterReport, err error)

Patch applies the patch and returns the patched kubeHunterReport.

func (*FakeKubeHunterReports) Update

func (c *FakeKubeHunterReports) Update(ctx context.Context, kubeHunterReport *v1alpha1.KubeHunterReport, opts v1.UpdateOptions) (result *v1alpha1.KubeHunterReport, err error)

Update takes the representation of a kubeHunterReport and updates it. Returns the server's representation of the kubeHunterReport, and an error, if there is any.

func (*FakeKubeHunterReports) Watch

Watch returns a watch.Interface that watches the requested kubeHunterReports.

type FakeVulnerabilityReports added in v0.4.0

type FakeVulnerabilityReports struct {
	Fake *FakeAquasecurityV1alpha1
	// contains filtered or unexported fields
}

FakeVulnerabilityReports implements VulnerabilityReportInterface

func (*FakeVulnerabilityReports) Create added in v0.4.0

func (c *FakeVulnerabilityReports) Create(ctx context.Context, vulnerabilityReport *v1alpha1.VulnerabilityReport, opts v1.CreateOptions) (result *v1alpha1.VulnerabilityReport, err error)

Create takes the representation of a vulnerabilityReport and creates it. Returns the server's representation of the vulnerabilityReport, and an error, if there is any.

func (*FakeVulnerabilityReports) Delete added in v0.4.0

Delete takes name of the vulnerabilityReport and deletes it. Returns an error if one occurs.

func (*FakeVulnerabilityReports) DeleteCollection added in v0.4.0

func (c *FakeVulnerabilityReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVulnerabilityReports) Get added in v0.4.0

func (c *FakeVulnerabilityReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.VulnerabilityReport, err error)

Get takes name of the vulnerabilityReport, and returns the corresponding vulnerabilityReport object, and an error if there is any.

func (*FakeVulnerabilityReports) List added in v0.4.0

List takes label and field selectors, and returns the list of VulnerabilityReports that match those selectors.

func (*FakeVulnerabilityReports) Patch added in v0.4.0

func (c *FakeVulnerabilityReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VulnerabilityReport, err error)

Patch applies the patch and returns the patched vulnerabilityReport.

func (*FakeVulnerabilityReports) Update added in v0.4.0

func (c *FakeVulnerabilityReports) Update(ctx context.Context, vulnerabilityReport *v1alpha1.VulnerabilityReport, opts v1.UpdateOptions) (result *v1alpha1.VulnerabilityReport, err error)

Update takes the representation of a vulnerabilityReport and updates it. Returns the server's representation of the vulnerabilityReport, and an error, if there is any.

func (*FakeVulnerabilityReports) Watch added in v0.4.0

Watch returns a watch.Interface that watches the requested vulnerabilityReports.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL