fakes

package
v0.0.0-...-ee2d30e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHelmInstaller

type FakeHelmInstaller struct {
	AddRepoStub func(string, string) error

	InstallChartStub func(context.Context, providers.InstallChartOpts) error
	// contains filtered or unexported fields
}

func (*FakeHelmInstaller) AddRepo

func (fake *FakeHelmInstaller) AddRepo(arg1 string, arg2 string) error

func (*FakeHelmInstaller) AddRepoArgsForCall

func (fake *FakeHelmInstaller) AddRepoArgsForCall(i int) (string, string)

func (*FakeHelmInstaller) AddRepoCallCount

func (fake *FakeHelmInstaller) AddRepoCallCount() int

func (*FakeHelmInstaller) AddRepoCalls

func (fake *FakeHelmInstaller) AddRepoCalls(stub func(string, string) error)

func (*FakeHelmInstaller) AddRepoReturns

func (fake *FakeHelmInstaller) AddRepoReturns(result1 error)

func (*FakeHelmInstaller) AddRepoReturnsOnCall

func (fake *FakeHelmInstaller) AddRepoReturnsOnCall(i int, result1 error)

func (*FakeHelmInstaller) InstallChart

func (fake *FakeHelmInstaller) InstallChart(arg1 context.Context, arg2 providers.InstallChartOpts) error

func (*FakeHelmInstaller) InstallChartArgsForCall

func (fake *FakeHelmInstaller) InstallChartArgsForCall(i int) (context.Context, providers.InstallChartOpts)

func (*FakeHelmInstaller) InstallChartCallCount

func (fake *FakeHelmInstaller) InstallChartCallCount() int

func (*FakeHelmInstaller) InstallChartCalls

func (fake *FakeHelmInstaller) InstallChartCalls(stub func(context.Context, providers.InstallChartOpts) error)

func (*FakeHelmInstaller) InstallChartReturns

func (fake *FakeHelmInstaller) InstallChartReturns(result1 error)

func (*FakeHelmInstaller) InstallChartReturnsOnCall

func (fake *FakeHelmInstaller) InstallChartReturnsOnCall(i int, result1 error)

func (*FakeHelmInstaller) Invocations

func (fake *FakeHelmInstaller) Invocations() map[string][][]interface{}

type FakeURLGetter

type FakeURLGetter struct {
	GetStub func(string, ...getter.Option) (*bytes.Buffer, error)
	// contains filtered or unexported fields
}

func (*FakeURLGetter) Get

func (fake *FakeURLGetter) Get(arg1 string, arg2 ...getter.Option) (*bytes.Buffer, error)

func (*FakeURLGetter) GetArgsForCall

func (fake *FakeURLGetter) GetArgsForCall(i int) (string, []getter.Option)

func (*FakeURLGetter) GetCallCount

func (fake *FakeURLGetter) GetCallCount() int

func (*FakeURLGetter) GetCalls

func (fake *FakeURLGetter) GetCalls(stub func(string, ...getter.Option) (*bytes.Buffer, error))

func (*FakeURLGetter) GetReturns

func (fake *FakeURLGetter) GetReturns(result1 *bytes.Buffer, result2 error)

func (*FakeURLGetter) GetReturnsOnCall

func (fake *FakeURLGetter) GetReturnsOnCall(i int, result1 *bytes.Buffer, result2 error)

func (*FakeURLGetter) Invocations

func (fake *FakeURLGetter) Invocations() map[string][][]interface{}

type PrintingKubeClient

type PrintingKubeClient struct {
	Out        io.Writer
	Factory    kube.Factory
	BuildCall  int
	CreateCall int
}

PrintingKubeClient implements KubeClient, but simply prints the reader to the given output.

func (*PrintingKubeClient) Build

Build implements KubeClient Build.

func (*PrintingKubeClient) Create

func (p *PrintingKubeClient) Create(resources kube.ResourceList) (*kube.Result, error)

Create prints the values of what would be created with a real KubeClient.

func (*PrintingKubeClient) Delete

func (p *PrintingKubeClient) Delete(resources kube.ResourceList) (*kube.Result, []error)

Delete implements KubeClient delete.

It only prints out the content to be deleted.

func (*PrintingKubeClient) IsReachable

func (p *PrintingKubeClient) IsReachable() error

IsReachable checks if the cluster is reachable

func (*PrintingKubeClient) Update

func (p *PrintingKubeClient) Update(_, modified kube.ResourceList, _ bool) (*kube.Result, error)

Update implements KubeClient Update.

func (*PrintingKubeClient) Wait

func (p *PrintingKubeClient) Wait(resources kube.ResourceList, _ time.Duration) error

func (*PrintingKubeClient) WaitAndGetCompletedPodPhase

func (p *PrintingKubeClient) WaitAndGetCompletedPodPhase(_ string, _ time.Duration) (v1.PodPhase, error)

WaitAndGetCompletedPodPhase implements KubeClient WaitAndGetCompletedPodPhase.

func (*PrintingKubeClient) WaitForDelete

func (p *PrintingKubeClient) WaitForDelete(resources kube.ResourceList, _ time.Duration) error

func (*PrintingKubeClient) WaitWithJobs

func (p *PrintingKubeClient) WaitWithJobs(resources kube.ResourceList, _ time.Duration) error

func (*PrintingKubeClient) WatchUntilReady

func (p *PrintingKubeClient) WatchUntilReady(resources kube.ResourceList, _ time.Duration) error

WatchUntilReady implements KubeClient WatchUntilReady.

Jump to

Keyboard shortcuts

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