fake

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 FakeAllowlists

type FakeAllowlists struct {
	Fake *FakeApiV1alpha1
}

FakeAllowlists implements AllowlistInterface

func (*FakeAllowlists) Create

func (c *FakeAllowlists) Create(ctx context.Context, allowlist *v1alpha1.Allowlist, opts v1.CreateOptions) (result *v1alpha1.Allowlist, err error)

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

func (*FakeAllowlists) Delete

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

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

func (*FakeAllowlists) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAllowlists) Get

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

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

func (*FakeAllowlists) List

func (c *FakeAllowlists) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AllowlistList, err error)

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

func (*FakeAllowlists) Patch

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

Patch applies the patch and returns the patched allowlist.

func (*FakeAllowlists) Update

func (c *FakeAllowlists) Update(ctx context.Context, allowlist *v1alpha1.Allowlist, opts v1.UpdateOptions) (result *v1alpha1.Allowlist, err error)

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

func (*FakeAllowlists) UpdateStatus

func (c *FakeAllowlists) UpdateStatus(ctx context.Context, allowlist *v1alpha1.Allowlist, opts v1.UpdateOptions) (*v1alpha1.Allowlist, error)

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

func (*FakeAllowlists) Watch

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

type FakeApiV1alpha1

type FakeApiV1alpha1 struct {
	*testing.Fake
}

func (*FakeApiV1alpha1) Allowlists

func (*FakeApiV1alpha1) Logins

func (c *FakeApiV1alpha1) Logins(namespace string) v1alpha1.LoginInterface

func (*FakeApiV1alpha1) RESTClient

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

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

func (*FakeApiV1alpha1) SSHKeyPairs

func (c *FakeApiV1alpha1) SSHKeyPairs(namespace string) v1alpha1.SSHKeyPairInterface

func (*FakeApiV1alpha1) SelfSignedTLSBundles

func (c *FakeApiV1alpha1) SelfSignedTLSBundles(namespace string) v1alpha1.SelfSignedTLSBundleInterface

type FakeLogins

type FakeLogins struct {
	Fake *FakeApiV1alpha1
	// contains filtered or unexported fields
}

FakeLogins implements LoginInterface

func (*FakeLogins) Create

func (c *FakeLogins) Create(ctx context.Context, login *v1alpha1.Login, opts v1.CreateOptions) (result *v1alpha1.Login, err error)

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

func (*FakeLogins) Delete

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

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

func (*FakeLogins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLogins) Get

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

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

func (*FakeLogins) List

func (c *FakeLogins) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LoginList, err error)

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

func (*FakeLogins) Patch

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

Patch applies the patch and returns the patched login.

func (*FakeLogins) Update

func (c *FakeLogins) Update(ctx context.Context, login *v1alpha1.Login, opts v1.UpdateOptions) (result *v1alpha1.Login, err error)

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

func (*FakeLogins) UpdateStatus

func (c *FakeLogins) UpdateStatus(ctx context.Context, login *v1alpha1.Login, opts v1.UpdateOptions) (*v1alpha1.Login, error)

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

func (*FakeLogins) Watch

func (c *FakeLogins) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeSSHKeyPairs

type FakeSSHKeyPairs struct {
	Fake *FakeApiV1alpha1
	// contains filtered or unexported fields
}

FakeSSHKeyPairs implements SSHKeyPairInterface

func (*FakeSSHKeyPairs) Create

func (c *FakeSSHKeyPairs) Create(ctx context.Context, sSHKeyPair *v1alpha1.SSHKeyPair, opts v1.CreateOptions) (result *v1alpha1.SSHKeyPair, err error)

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

func (*FakeSSHKeyPairs) Delete

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

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

func (*FakeSSHKeyPairs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSSHKeyPairs) Get

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

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

func (*FakeSSHKeyPairs) List

func (c *FakeSSHKeyPairs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SSHKeyPairList, err error)

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

func (*FakeSSHKeyPairs) Patch

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

Patch applies the patch and returns the patched sSHKeyPair.

func (*FakeSSHKeyPairs) Update

func (c *FakeSSHKeyPairs) Update(ctx context.Context, sSHKeyPair *v1alpha1.SSHKeyPair, opts v1.UpdateOptions) (result *v1alpha1.SSHKeyPair, err error)

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

func (*FakeSSHKeyPairs) UpdateStatus

func (c *FakeSSHKeyPairs) UpdateStatus(ctx context.Context, sSHKeyPair *v1alpha1.SSHKeyPair, opts v1.UpdateOptions) (*v1alpha1.SSHKeyPair, error)

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

func (*FakeSSHKeyPairs) Watch

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

type FakeSelfSignedTLSBundles

type FakeSelfSignedTLSBundles struct {
	Fake *FakeApiV1alpha1
	// contains filtered or unexported fields
}

FakeSelfSignedTLSBundles implements SelfSignedTLSBundleInterface

func (*FakeSelfSignedTLSBundles) Create

func (c *FakeSelfSignedTLSBundles) Create(ctx context.Context, selfSignedTLSBundle *v1alpha1.SelfSignedTLSBundle, opts v1.CreateOptions) (result *v1alpha1.SelfSignedTLSBundle, err error)

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

func (*FakeSelfSignedTLSBundles) Delete

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

func (*FakeSelfSignedTLSBundles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSelfSignedTLSBundles) Get

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

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

func (*FakeSelfSignedTLSBundles) List

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

func (*FakeSelfSignedTLSBundles) Patch

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

Patch applies the patch and returns the patched selfSignedTLSBundle.

func (*FakeSelfSignedTLSBundles) Update

func (c *FakeSelfSignedTLSBundles) Update(ctx context.Context, selfSignedTLSBundle *v1alpha1.SelfSignedTLSBundle, opts v1.UpdateOptions) (result *v1alpha1.SelfSignedTLSBundle, err error)

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

func (*FakeSelfSignedTLSBundles) UpdateStatus

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

func (*FakeSelfSignedTLSBundles) Watch

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

Jump to

Keyboard shortcuts

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