apifakes

package
v1.2.4 Latest Latest
Warning

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

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

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCloudControllerClient

type FakeCloudControllerClient struct {
	DoStub func(*http.Request) (*http.Response, error)
	// contains filtered or unexported fields
}

func (*FakeCloudControllerClient) Do

func (*FakeCloudControllerClient) DoArgsForCall

func (fake *FakeCloudControllerClient) DoArgsForCall(i int) *http.Request

func (*FakeCloudControllerClient) DoCallCount

func (fake *FakeCloudControllerClient) DoCallCount() int

func (*FakeCloudControllerClient) DoReturns

func (fake *FakeCloudControllerClient) DoReturns(result1 *http.Response, result2 error)

type FakeConnection

type FakeConnection struct {
	IsLoggedInStub func() (bool, error)

	IsSSLDisabledStub func() (bool, error)

	ApiEndpointStub func() (string, error)

	AccessTokenStub func() (string, error)

	UsernameStub func() (string, error)

	CliCommandWithoutTerminalOutputStub func(args ...string) ([]string, error)

	GetAppStub func(string) (plugin_models.GetAppModel, error)

	GetOrgStub func(string) (plugin_models.GetOrg_Model, error)

	GetSpaceStub func(string) (plugin_models.GetSpace_Model, error)

	GetCurrentSpaceStub func() (plugin_models.Space, error)
	// contains filtered or unexported fields
}

func (*FakeConnection) AccessToken

func (fake *FakeConnection) AccessToken() (string, error)

func (*FakeConnection) AccessTokenCallCount

func (fake *FakeConnection) AccessTokenCallCount() int

func (*FakeConnection) AccessTokenReturns

func (fake *FakeConnection) AccessTokenReturns(result1 string, result2 error)

func (*FakeConnection) ApiEndpoint

func (fake *FakeConnection) ApiEndpoint() (string, error)

func (*FakeConnection) ApiEndpointCallCount

func (fake *FakeConnection) ApiEndpointCallCount() int

func (*FakeConnection) ApiEndpointReturns

func (fake *FakeConnection) ApiEndpointReturns(result1 string, result2 error)

func (*FakeConnection) CliCommandWithoutTerminalOutput

func (fake *FakeConnection) CliCommandWithoutTerminalOutput(args ...string) ([]string, error)

func (*FakeConnection) CliCommandWithoutTerminalOutputArgsForCall

func (fake *FakeConnection) CliCommandWithoutTerminalOutputArgsForCall(i int) []string

func (*FakeConnection) CliCommandWithoutTerminalOutputCallCount

func (fake *FakeConnection) CliCommandWithoutTerminalOutputCallCount() int

func (*FakeConnection) CliCommandWithoutTerminalOutputReturns

func (fake *FakeConnection) CliCommandWithoutTerminalOutputReturns(result1 []string, result2 error)

func (*FakeConnection) GetApp

func (fake *FakeConnection) GetApp(arg1 string) (plugin_models.GetAppModel, error)

func (*FakeConnection) GetAppArgsForCall

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

func (*FakeConnection) GetAppCallCount

func (fake *FakeConnection) GetAppCallCount() int

func (*FakeConnection) GetAppReturns

func (fake *FakeConnection) GetAppReturns(result1 plugin_models.GetAppModel, result2 error)

func (*FakeConnection) GetCurrentSpace added in v1.2.3

func (fake *FakeConnection) GetCurrentSpace() (plugin_models.Space, error)

func (*FakeConnection) GetCurrentSpaceCallCount added in v1.2.3

func (fake *FakeConnection) GetCurrentSpaceCallCount() int

func (*FakeConnection) GetCurrentSpaceReturns added in v1.2.3

func (fake *FakeConnection) GetCurrentSpaceReturns(result1 plugin_models.Space, result2 error)

func (*FakeConnection) GetOrg

func (fake *FakeConnection) GetOrg(arg1 string) (plugin_models.GetOrg_Model, error)

func (*FakeConnection) GetOrgArgsForCall

func (fake *FakeConnection) GetOrgArgsForCall(i int) string

func (*FakeConnection) GetOrgCallCount

func (fake *FakeConnection) GetOrgCallCount() int

func (*FakeConnection) GetOrgReturns

func (fake *FakeConnection) GetOrgReturns(result1 plugin_models.GetOrg_Model, result2 error)

func (*FakeConnection) GetSpace

func (fake *FakeConnection) GetSpace(arg1 string) (plugin_models.GetSpace_Model, error)

func (*FakeConnection) GetSpaceArgsForCall

func (fake *FakeConnection) GetSpaceArgsForCall(i int) string

func (*FakeConnection) GetSpaceCallCount

func (fake *FakeConnection) GetSpaceCallCount() int

func (*FakeConnection) GetSpaceReturns

func (fake *FakeConnection) GetSpaceReturns(result1 plugin_models.GetSpace_Model, result2 error)

func (*FakeConnection) Invocations added in v1.2.3

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

func (*FakeConnection) IsLoggedIn

func (fake *FakeConnection) IsLoggedIn() (bool, error)

func (*FakeConnection) IsLoggedInCallCount

func (fake *FakeConnection) IsLoggedInCallCount() int

func (*FakeConnection) IsLoggedInReturns

func (fake *FakeConnection) IsLoggedInReturns(result1 bool, result2 error)

func (*FakeConnection) IsSSLDisabled

func (fake *FakeConnection) IsSSLDisabled() (bool, error)

func (*FakeConnection) IsSSLDisabledCallCount

func (fake *FakeConnection) IsSSLDisabledCallCount() int

func (*FakeConnection) IsSSLDisabledReturns

func (fake *FakeConnection) IsSSLDisabledReturns(result1 bool, result2 error)

func (*FakeConnection) Username

func (fake *FakeConnection) Username() (string, error)

func (*FakeConnection) UsernameCallCount

func (fake *FakeConnection) UsernameCallCount() int

func (*FakeConnection) UsernameReturns

func (fake *FakeConnection) UsernameReturns(result1 string, result2 error)

type FakeFilter

type FakeFilter struct {
	ToFilterQueryParamStub func() string
	// contains filtered or unexported fields
}

func (*FakeFilter) ToFilterQueryParam

func (fake *FakeFilter) ToFilterQueryParam() string

func (*FakeFilter) ToFilterQueryParamCallCount

func (fake *FakeFilter) ToFilterQueryParamCallCount() int

func (*FakeFilter) ToFilterQueryParamReturns

func (fake *FakeFilter) ToFilterQueryParamReturns(result1 string)

type FakePaginatedParser

type FakePaginatedParser struct {
	ParseStub func([]byte) (api.PaginatedResponse, error)
	// contains filtered or unexported fields
}

func (*FakePaginatedParser) Parse

func (fake *FakePaginatedParser) Parse(arg1 []byte) (api.PaginatedResponse, error)

func (*FakePaginatedParser) ParseArgsForCall

func (fake *FakePaginatedParser) ParseArgsForCall(i int) []byte

func (*FakePaginatedParser) ParseCallCount

func (fake *FakePaginatedParser) ParseCallCount() int

func (*FakePaginatedParser) ParseReturns

func (fake *FakePaginatedParser) ParseReturns(result1 api.PaginatedResponse, result2 error)

type FakeRequestFactory

type FakeRequestFactory struct {
	Stub func(api.Filter, map[string]interface{}) (*http.Request, error)
	// contains filtered or unexported fields
}

func (*FakeRequestFactory) ArgsForCall

func (fake *FakeRequestFactory) ArgsForCall(i int) (api.Filter, map[string]interface{})

func (*FakeRequestFactory) CallCount

func (fake *FakeRequestFactory) CallCount() int

func (*FakeRequestFactory) Returns

func (fake *FakeRequestFactory) Returns(result1 *http.Request, result2 error)

func (*FakeRequestFactory) Spy

func (fake *FakeRequestFactory) Spy(arg1 api.Filter, arg2 map[string]interface{}) (*http.Request, error)

Jump to

Keyboard shortcuts

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