fakes

package
v6.12.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeApplicationRepository

type FakeApplicationRepository struct {
	FindAllApps []models.Application

	ReadCalls int
	ReadArgs  struct {
		Name string
	}
	ReadReturns struct {
		App   models.Application
		Error error
	}

	CreateAppParams []models.AppParams

	UpdateParams    models.AppParams
	UpdateAppGuid   string
	UpdateAppResult models.Application
	UpdateErr       bool

	DeletedAppGuid string

	CreateRestageRequestArgs struct {
		AppGuid string
	}

	ReadFromSpaceStub func(name string, spaceGuid string) (app models.Application, apiErr error)

	ReadEnvStub func(guid string) (*models.Environment, error)

	GetAppStub func(appGuid string) (models.Application, error)
	// contains filtered or unexported fields
}

func (*FakeApplicationRepository) Create

func (repo *FakeApplicationRepository) Create(params models.AppParams) (resultApp models.Application, apiErr error)

func (*FakeApplicationRepository) CreateRestageRequest

func (repo *FakeApplicationRepository) CreateRestageRequest(guid string) (apiErr error)

func (*FakeApplicationRepository) CreatedAppParams

func (repo *FakeApplicationRepository) CreatedAppParams() (params models.AppParams)

func (*FakeApplicationRepository) Delete

func (repo *FakeApplicationRepository) Delete(appGuid string) (apiErr error)

func (*FakeApplicationRepository) GetApp

func (fake *FakeApplicationRepository) GetApp(appGuid string) (models.Application, error)

func (*FakeApplicationRepository) GetAppArgsForCall

func (fake *FakeApplicationRepository) GetAppArgsForCall(i int) string

func (*FakeApplicationRepository) GetAppCallCount

func (fake *FakeApplicationRepository) GetAppCallCount() int

func (*FakeApplicationRepository) GetAppReturns

func (fake *FakeApplicationRepository) GetAppReturns(result1 models.Application, result2 error)

func (*FakeApplicationRepository) Read

func (repo *FakeApplicationRepository) Read(name string) (app models.Application, apiErr error)

func (*FakeApplicationRepository) ReadEnv

func (fake *FakeApplicationRepository) ReadEnv(guid string) (*models.Environment, error)

func (*FakeApplicationRepository) ReadEnvArgsForCall

func (fake *FakeApplicationRepository) ReadEnvArgsForCall(i int) string

func (*FakeApplicationRepository) ReadEnvCallCount

func (fake *FakeApplicationRepository) ReadEnvCallCount() int

func (*FakeApplicationRepository) ReadEnvReturns

func (fake *FakeApplicationRepository) ReadEnvReturns(result1 *models.Environment, result2 error)

func (*FakeApplicationRepository) ReadFromSpace

func (fake *FakeApplicationRepository) ReadFromSpace(name string, spaceGuid string) (app models.Application, apiErr error)

counterfeiter section

func (*FakeApplicationRepository) ReadFromSpaceArgsForCall

func (fake *FakeApplicationRepository) ReadFromSpaceArgsForCall(i int) (string, string)

func (*FakeApplicationRepository) ReadFromSpaceCallCount

func (fake *FakeApplicationRepository) ReadFromSpaceCallCount() int

func (*FakeApplicationRepository) ReadFromSpaceReturns

func (fake *FakeApplicationRepository) ReadFromSpaceReturns(result1 models.Application, result2 error)

func (*FakeApplicationRepository) Update

func (repo *FakeApplicationRepository) Update(appGuid string, params models.AppParams) (updatedApp models.Application, apiErr error)

Jump to

Keyboard shortcuts

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