fake

package
v0.0.0-...-24e3e83 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 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 FakeSecurityProfiles

type FakeSecurityProfiles struct {
	Fake *FakeSecurityprobeV1
	// contains filtered or unexported fields
}

FakeSecurityProfiles implements SecurityProfileInterface

func (*FakeSecurityProfiles) Create

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

func (*FakeSecurityProfiles) Delete

func (c *FakeSecurityProfiles) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeSecurityProfiles) DeleteCollection

func (c *FakeSecurityProfiles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSecurityProfiles) Get

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

func (*FakeSecurityProfiles) List

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

func (*FakeSecurityProfiles) Patch

func (c *FakeSecurityProfiles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *securityprobedatadoghqcomv1.SecurityProfile, err error)

Patch applies the patch and returns the patched securityProfile.

func (*FakeSecurityProfiles) Update

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

func (*FakeSecurityProfiles) Watch

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

type FakeSecurityprobeV1

type FakeSecurityprobeV1 struct {
	*testing.Fake
}

func (*FakeSecurityprobeV1) RESTClient

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

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

func (*FakeSecurityprobeV1) SecurityProfiles

func (c *FakeSecurityprobeV1) SecurityProfiles(namespace string) v1.SecurityProfileInterface

Jump to

Keyboard shortcuts

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