fake

package
v0.0.0-...-22edec9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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 FakeActionSets

type FakeActionSets struct {
	Fake *FakeCrV1alpha1
	// contains filtered or unexported fields
}

FakeActionSets implements ActionSetInterface

func (*FakeActionSets) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied actionSet.

func (*FakeActionSets) Create

func (c *FakeActionSets) Create(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.CreateOptions) (result *v1alpha1.ActionSet, err error)

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

func (*FakeActionSets) Delete

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

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

func (*FakeActionSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeActionSets) Get

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

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

func (*FakeActionSets) List

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

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

func (*FakeActionSets) Patch

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

Patch applies the patch and returns the patched actionSet.

func (*FakeActionSets) Update

func (c *FakeActionSets) Update(ctx context.Context, actionSet *v1alpha1.ActionSet, opts v1.UpdateOptions) (result *v1alpha1.ActionSet, err error)

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

func (*FakeActionSets) Watch

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

type FakeBlueprints

type FakeBlueprints struct {
	Fake *FakeCrV1alpha1
	// contains filtered or unexported fields
}

FakeBlueprints implements BlueprintInterface

func (*FakeBlueprints) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied blueprint.

func (*FakeBlueprints) Create

func (c *FakeBlueprints) Create(ctx context.Context, blueprint *v1alpha1.Blueprint, opts v1.CreateOptions) (result *v1alpha1.Blueprint, err error)

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

func (*FakeBlueprints) Delete

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

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

func (*FakeBlueprints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBlueprints) Get

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

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

func (*FakeBlueprints) List

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

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

func (*FakeBlueprints) Patch

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

Patch applies the patch and returns the patched blueprint.

func (*FakeBlueprints) Update

func (c *FakeBlueprints) Update(ctx context.Context, blueprint *v1alpha1.Blueprint, opts v1.UpdateOptions) (result *v1alpha1.Blueprint, err error)

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

func (*FakeBlueprints) Watch

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

type FakeCrV1alpha1

type FakeCrV1alpha1 struct {
	*testing.Fake
}

func (*FakeCrV1alpha1) ActionSets

func (c *FakeCrV1alpha1) ActionSets(namespace string) v1alpha1.ActionSetInterface

func (*FakeCrV1alpha1) Blueprints

func (c *FakeCrV1alpha1) Blueprints(namespace string) v1alpha1.BlueprintInterface

func (*FakeCrV1alpha1) Profiles

func (c *FakeCrV1alpha1) Profiles(namespace string) v1alpha1.ProfileInterface

func (*FakeCrV1alpha1) RESTClient

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

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

func (*FakeCrV1alpha1) RepositoryServers

func (c *FakeCrV1alpha1) RepositoryServers(namespace string) v1alpha1.RepositoryServerInterface

type FakeProfiles

type FakeProfiles struct {
	Fake *FakeCrV1alpha1
	// contains filtered or unexported fields
}

FakeProfiles implements ProfileInterface

func (*FakeProfiles) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied profile.

func (*FakeProfiles) Create

func (c *FakeProfiles) Create(ctx context.Context, profile *v1alpha1.Profile, opts v1.CreateOptions) (result *v1alpha1.Profile, err error)

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

func (*FakeProfiles) Delete

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

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

func (*FakeProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProfiles) Get

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

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

func (*FakeProfiles) List

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

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

func (*FakeProfiles) Patch

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

Patch applies the patch and returns the patched profile.

func (*FakeProfiles) Update

func (c *FakeProfiles) Update(ctx context.Context, profile *v1alpha1.Profile, opts v1.UpdateOptions) (result *v1alpha1.Profile, err error)

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

func (*FakeProfiles) Watch

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

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

type FakeRepositoryServers

type FakeRepositoryServers struct {
	Fake *FakeCrV1alpha1
	// contains filtered or unexported fields
}

FakeRepositoryServers implements RepositoryServerInterface

func (*FakeRepositoryServers) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied repositoryServer.

func (*FakeRepositoryServers) ApplyStatus

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

func (*FakeRepositoryServers) Create

func (c *FakeRepositoryServers) Create(ctx context.Context, repositoryServer *v1alpha1.RepositoryServer, opts v1.CreateOptions) (result *v1alpha1.RepositoryServer, err error)

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

func (*FakeRepositoryServers) Delete

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

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

func (*FakeRepositoryServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRepositoryServers) Get

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

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

func (*FakeRepositoryServers) List

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

func (*FakeRepositoryServers) Patch

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

Patch applies the patch and returns the patched repositoryServer.

func (*FakeRepositoryServers) Update

func (c *FakeRepositoryServers) Update(ctx context.Context, repositoryServer *v1alpha1.RepositoryServer, opts v1.UpdateOptions) (result *v1alpha1.RepositoryServer, err error)

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

func (*FakeRepositoryServers) UpdateStatus

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

func (*FakeRepositoryServers) Watch

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

Jump to

Keyboard shortcuts

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