fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 9 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 FakeSBOMSPDXv2p3Filtereds

type FakeSBOMSPDXv2p3Filtereds struct {
	Fake *FakeSpdxV1beta1
	// contains filtered or unexported fields
}

FakeSBOMSPDXv2p3Filtereds implements SBOMSPDXv2p3FilteredInterface

func (*FakeSBOMSPDXv2p3Filtereds) Create

func (c *FakeSBOMSPDXv2p3Filtereds) Create(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.CreateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error)

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

func (*FakeSBOMSPDXv2p3Filtereds) Delete

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

func (*FakeSBOMSPDXv2p3Filtereds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSBOMSPDXv2p3Filtereds) Get

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

func (*FakeSBOMSPDXv2p3Filtereds) List

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

func (*FakeSBOMSPDXv2p3Filtereds) Patch

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

Patch applies the patch and returns the patched sBOMSPDXv2p3Filtered.

func (*FakeSBOMSPDXv2p3Filtereds) Update

func (c *FakeSBOMSPDXv2p3Filtereds) Update(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error)

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

func (*FakeSBOMSPDXv2p3Filtereds) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeSBOMSPDXv2p3Filtereds) Watch

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

type FakeSBOMSPDXv2p3s

type FakeSBOMSPDXv2p3s struct {
	Fake *FakeSpdxV1beta1
	// contains filtered or unexported fields
}

FakeSBOMSPDXv2p3s implements SBOMSPDXv2p3Interface

func (*FakeSBOMSPDXv2p3s) Create

func (c *FakeSBOMSPDXv2p3s) Create(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.CreateOptions) (result *v1beta1.SBOMSPDXv2p3, err error)

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

func (*FakeSBOMSPDXv2p3s) Delete

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

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

func (*FakeSBOMSPDXv2p3s) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSBOMSPDXv2p3s) Get

func (c *FakeSBOMSPDXv2p3s) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SBOMSPDXv2p3, err error)

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

func (*FakeSBOMSPDXv2p3s) List

func (c *FakeSBOMSPDXv2p3s) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SBOMSPDXv2p3List, err error)

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

func (*FakeSBOMSPDXv2p3s) Patch

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

Patch applies the patch and returns the patched sBOMSPDXv2p3.

func (*FakeSBOMSPDXv2p3s) Update

func (c *FakeSBOMSPDXv2p3s) Update(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3, err error)

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

func (*FakeSBOMSPDXv2p3s) UpdateStatus

func (c *FakeSBOMSPDXv2p3s) UpdateStatus(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeSBOMSPDXv2p3s) Watch

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

type FakeSpdxV1beta1

type FakeSpdxV1beta1 struct {
	*testing.Fake
}

func (*FakeSpdxV1beta1) RESTClient

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

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

func (*FakeSpdxV1beta1) SBOMSPDXv2p3Filtereds

func (c *FakeSpdxV1beta1) SBOMSPDXv2p3Filtereds(namespace string) v1beta1.SBOMSPDXv2p3FilteredInterface

func (*FakeSpdxV1beta1) SBOMSPDXv2p3s

func (c *FakeSpdxV1beta1) SBOMSPDXv2p3s(namespace string) v1beta1.SBOMSPDXv2p3Interface

func (*FakeSpdxV1beta1) VulnerabilityManifests

func (c *FakeSpdxV1beta1) VulnerabilityManifests(namespace string) v1beta1.VulnerabilityManifestInterface

type FakeVulnerabilityManifests

type FakeVulnerabilityManifests struct {
	Fake *FakeSpdxV1beta1
	// contains filtered or unexported fields
}

FakeVulnerabilityManifests implements VulnerabilityManifestInterface

func (*FakeVulnerabilityManifests) Create

func (c *FakeVulnerabilityManifests) Create(ctx context.Context, vulnerabilityManifest *v1beta1.VulnerabilityManifest, opts v1.CreateOptions) (result *v1beta1.VulnerabilityManifest, err error)

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

func (*FakeVulnerabilityManifests) Delete

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

func (*FakeVulnerabilityManifests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVulnerabilityManifests) Get

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

func (*FakeVulnerabilityManifests) List

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

func (*FakeVulnerabilityManifests) Patch

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

Patch applies the patch and returns the patched vulnerabilityManifest.

func (*FakeVulnerabilityManifests) Update

func (c *FakeVulnerabilityManifests) Update(ctx context.Context, vulnerabilityManifest *v1beta1.VulnerabilityManifest, opts v1.UpdateOptions) (result *v1beta1.VulnerabilityManifest, err error)

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

func (*FakeVulnerabilityManifests) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeVulnerabilityManifests) Watch

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

Jump to

Keyboard shortcuts

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