Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeBuildRuns
- func (c *FakeBuildRuns) Create(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.CreateOptions) (result *v1alpha1.BuildRun, err error)
- func (c *FakeBuildRuns) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBuildRuns) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBuildRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BuildRun, err error)
- func (c *FakeBuildRuns) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuildRunList, err error)
- func (c *FakeBuildRuns) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.BuildRun, err error)
- func (c *FakeBuildRuns) Update(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.UpdateOptions) (result *v1alpha1.BuildRun, err error)
- func (c *FakeBuildRuns) UpdateStatus(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.UpdateOptions) (*v1alpha1.BuildRun, error)
- func (c *FakeBuildRuns) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBuildStrategies
- func (c *FakeBuildStrategies) Create(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, ...) (result *v1alpha1.BuildStrategy, err error)
- func (c *FakeBuildStrategies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBuildStrategies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBuildStrategies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BuildStrategy, err error)
- func (c *FakeBuildStrategies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuildStrategyList, err error)
- func (c *FakeBuildStrategies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.BuildStrategy, err error)
- func (c *FakeBuildStrategies) Update(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, ...) (result *v1alpha1.BuildStrategy, err error)
- func (c *FakeBuildStrategies) UpdateStatus(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, ...) (*v1alpha1.BuildStrategy, error)
- func (c *FakeBuildStrategies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBuilds
- func (c *FakeBuilds) Create(ctx context.Context, build *v1alpha1.Build, opts v1.CreateOptions) (result *v1alpha1.Build, err error)
- func (c *FakeBuilds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBuilds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBuilds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Build, err error)
- func (c *FakeBuilds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuildList, err error)
- func (c *FakeBuilds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Build, err error)
- func (c *FakeBuilds) Update(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (result *v1alpha1.Build, err error)
- func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (*v1alpha1.Build, error)
- func (c *FakeBuilds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterBuildStrategies
- func (c *FakeClusterBuildStrategies) Create(ctx context.Context, clusterBuildStrategy *v1alpha1.ClusterBuildStrategy, ...) (result *v1alpha1.ClusterBuildStrategy, err error)
- func (c *FakeClusterBuildStrategies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterBuildStrategies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterBuildStrategies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterBuildStrategy, err error)
- func (c *FakeClusterBuildStrategies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterBuildStrategyList, err error)
- func (c *FakeClusterBuildStrategies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ClusterBuildStrategy, err error)
- func (c *FakeClusterBuildStrategies) Update(ctx context.Context, clusterBuildStrategy *v1alpha1.ClusterBuildStrategy, ...) (result *v1alpha1.ClusterBuildStrategy, err error)
- func (c *FakeClusterBuildStrategies) UpdateStatus(ctx context.Context, clusterBuildStrategy *v1alpha1.ClusterBuildStrategy, ...) (*v1alpha1.ClusterBuildStrategy, error)
- func (c *FakeClusterBuildStrategies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeShipwrightV1alpha1
- func (c *FakeShipwrightV1alpha1) BuildRuns(namespace string) v1alpha1.BuildRunInterface
- func (c *FakeShipwrightV1alpha1) BuildStrategies(namespace string) v1alpha1.BuildStrategyInterface
- func (c *FakeShipwrightV1alpha1) Builds(namespace string) v1alpha1.BuildInterface
- func (c *FakeShipwrightV1alpha1) ClusterBuildStrategies() v1alpha1.ClusterBuildStrategyInterface
- func (c *FakeShipwrightV1alpha1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeBuildRuns ¶
type FakeBuildRuns struct { Fake *FakeShipwrightV1alpha1 // contains filtered or unexported fields }
FakeBuildRuns implements BuildRunInterface
func (*FakeBuildRuns) Create ¶
func (c *FakeBuildRuns) Create(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.CreateOptions) (result *v1alpha1.BuildRun, err error)
Create takes the representation of a buildRun and creates it. Returns the server's representation of the buildRun, and an error, if there is any.
func (*FakeBuildRuns) Delete ¶
func (c *FakeBuildRuns) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the buildRun and deletes it. Returns an error if one occurs.
func (*FakeBuildRuns) DeleteCollection ¶
func (c *FakeBuildRuns) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBuildRuns) Get ¶
func (c *FakeBuildRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BuildRun, err error)
Get takes name of the buildRun, and returns the corresponding buildRun object, and an error if there is any.
func (*FakeBuildRuns) List ¶
func (c *FakeBuildRuns) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuildRunList, err error)
List takes label and field selectors, and returns the list of BuildRuns that match those selectors.
func (*FakeBuildRuns) Patch ¶
func (c *FakeBuildRuns) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BuildRun, err error)
Patch applies the patch and returns the patched buildRun.
func (*FakeBuildRuns) Update ¶
func (c *FakeBuildRuns) Update(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.UpdateOptions) (result *v1alpha1.BuildRun, err error)
Update takes the representation of a buildRun and updates it. Returns the server's representation of the buildRun, and an error, if there is any.
func (*FakeBuildRuns) UpdateStatus ¶
func (c *FakeBuildRuns) UpdateStatus(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.UpdateOptions) (*v1alpha1.BuildRun, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBuildRuns) Watch ¶
func (c *FakeBuildRuns) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested buildRuns.
type FakeBuildStrategies ¶
type FakeBuildStrategies struct { Fake *FakeShipwrightV1alpha1 // contains filtered or unexported fields }
FakeBuildStrategies implements BuildStrategyInterface
func (*FakeBuildStrategies) Create ¶
func (c *FakeBuildStrategies) Create(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, opts v1.CreateOptions) (result *v1alpha1.BuildStrategy, err error)
Create takes the representation of a buildStrategy and creates it. Returns the server's representation of the buildStrategy, and an error, if there is any.
func (*FakeBuildStrategies) Delete ¶
func (c *FakeBuildStrategies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the buildStrategy and deletes it. Returns an error if one occurs.
func (*FakeBuildStrategies) DeleteCollection ¶
func (c *FakeBuildStrategies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBuildStrategies) Get ¶
func (c *FakeBuildStrategies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BuildStrategy, err error)
Get takes name of the buildStrategy, and returns the corresponding buildStrategy object, and an error if there is any.
func (*FakeBuildStrategies) List ¶
func (c *FakeBuildStrategies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuildStrategyList, err error)
List takes label and field selectors, and returns the list of BuildStrategies that match those selectors.
func (*FakeBuildStrategies) Patch ¶
func (c *FakeBuildStrategies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BuildStrategy, err error)
Patch applies the patch and returns the patched buildStrategy.
func (*FakeBuildStrategies) Update ¶
func (c *FakeBuildStrategies) Update(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, opts v1.UpdateOptions) (result *v1alpha1.BuildStrategy, err error)
Update takes the representation of a buildStrategy and updates it. Returns the server's representation of the buildStrategy, and an error, if there is any.
func (*FakeBuildStrategies) UpdateStatus ¶
func (c *FakeBuildStrategies) UpdateStatus(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, opts v1.UpdateOptions) (*v1alpha1.BuildStrategy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBuildStrategies) Watch ¶
func (c *FakeBuildStrategies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested buildStrategies.
type FakeBuilds ¶
type FakeBuilds struct { Fake *FakeShipwrightV1alpha1 // contains filtered or unexported fields }
FakeBuilds implements BuildInterface
func (*FakeBuilds) Create ¶
func (c *FakeBuilds) Create(ctx context.Context, build *v1alpha1.Build, opts v1.CreateOptions) (result *v1alpha1.Build, err error)
Create takes the representation of a build and creates it. Returns the server's representation of the build, and an error, if there is any.
func (*FakeBuilds) Delete ¶
func (c *FakeBuilds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the build and deletes it. Returns an error if one occurs.
func (*FakeBuilds) DeleteCollection ¶
func (c *FakeBuilds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBuilds) Get ¶
func (c *FakeBuilds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Build, err error)
Get takes name of the build, and returns the corresponding build object, and an error if there is any.
func (*FakeBuilds) List ¶
func (c *FakeBuilds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuildList, err error)
List takes label and field selectors, and returns the list of Builds that match those selectors.
func (*FakeBuilds) Patch ¶
func (c *FakeBuilds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Build, err error)
Patch applies the patch and returns the patched build.
func (*FakeBuilds) Update ¶
func (c *FakeBuilds) Update(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (result *v1alpha1.Build, err error)
Update takes the representation of a build and updates it. Returns the server's representation of the build, and an error, if there is any.
func (*FakeBuilds) UpdateStatus ¶
func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (*v1alpha1.Build, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeBuilds) Watch ¶
func (c *FakeBuilds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested builds.
type FakeClusterBuildStrategies ¶
type FakeClusterBuildStrategies struct {
Fake *FakeShipwrightV1alpha1
}
FakeClusterBuildStrategies implements ClusterBuildStrategyInterface
func (*FakeClusterBuildStrategies) Create ¶
func (c *FakeClusterBuildStrategies) Create(ctx context.Context, clusterBuildStrategy *v1alpha1.ClusterBuildStrategy, opts v1.CreateOptions) (result *v1alpha1.ClusterBuildStrategy, err error)
Create takes the representation of a clusterBuildStrategy and creates it. Returns the server's representation of the clusterBuildStrategy, and an error, if there is any.
func (*FakeClusterBuildStrategies) Delete ¶
func (c *FakeClusterBuildStrategies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterBuildStrategy and deletes it. Returns an error if one occurs.
func (*FakeClusterBuildStrategies) DeleteCollection ¶
func (c *FakeClusterBuildStrategies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterBuildStrategies) Get ¶
func (c *FakeClusterBuildStrategies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterBuildStrategy, err error)
Get takes name of the clusterBuildStrategy, and returns the corresponding clusterBuildStrategy object, and an error if there is any.
func (*FakeClusterBuildStrategies) List ¶
func (c *FakeClusterBuildStrategies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterBuildStrategyList, err error)
List takes label and field selectors, and returns the list of ClusterBuildStrategies that match those selectors.
func (*FakeClusterBuildStrategies) Patch ¶
func (c *FakeClusterBuildStrategies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterBuildStrategy, err error)
Patch applies the patch and returns the patched clusterBuildStrategy.
func (*FakeClusterBuildStrategies) Update ¶
func (c *FakeClusterBuildStrategies) Update(ctx context.Context, clusterBuildStrategy *v1alpha1.ClusterBuildStrategy, opts v1.UpdateOptions) (result *v1alpha1.ClusterBuildStrategy, err error)
Update takes the representation of a clusterBuildStrategy and updates it. Returns the server's representation of the clusterBuildStrategy, and an error, if there is any.
func (*FakeClusterBuildStrategies) UpdateStatus ¶
func (c *FakeClusterBuildStrategies) UpdateStatus(ctx context.Context, clusterBuildStrategy *v1alpha1.ClusterBuildStrategy, opts v1.UpdateOptions) (*v1alpha1.ClusterBuildStrategy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterBuildStrategies) Watch ¶
func (c *FakeClusterBuildStrategies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterBuildStrategies.
type FakeShipwrightV1alpha1 ¶
func (*FakeShipwrightV1alpha1) BuildRuns ¶
func (c *FakeShipwrightV1alpha1) BuildRuns(namespace string) v1alpha1.BuildRunInterface
func (*FakeShipwrightV1alpha1) BuildStrategies ¶
func (c *FakeShipwrightV1alpha1) BuildStrategies(namespace string) v1alpha1.BuildStrategyInterface
func (*FakeShipwrightV1alpha1) Builds ¶
func (c *FakeShipwrightV1alpha1) Builds(namespace string) v1alpha1.BuildInterface
func (*FakeShipwrightV1alpha1) ClusterBuildStrategies ¶
func (c *FakeShipwrightV1alpha1) ClusterBuildStrategies() v1alpha1.ClusterBuildStrategyInterface
func (*FakeShipwrightV1alpha1) RESTClient ¶
func (c *FakeShipwrightV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.