commandfakes

package
v6.26.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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 FakeConfig

type FakeConfig struct {
	AccessTokenStub func() string

	APIVersionStub func() string

	BinaryNameStub func() string

	BinaryVersionStub func() string

	ColorEnabledStub func() configv3.ColorSetting

	CurrentUserStub func() (configv3.User, error)

	DialTimeoutStub func() time.Duration

	ExperimentalStub func() bool

	HasTargetedOrganizationStub func() bool

	HasTargetedSpaceStub func() bool

	LocaleStub func() string

	MinCLIVersionStub func() string

	OverallPollingTimeoutStub func() time.Duration

	PluginsStub func() map[string]configv3.Plugin

	PollingIntervalStub func() time.Duration

	RefreshTokenStub func() string

	SetAccessTokenStub func(token string)

	SetOrganizationInformationStub func(guid string, name string)

	SetRefreshTokenStub func(token string)

	SetSpaceInformationStub func(guid string, name string, allowSSH bool)

	SetTargetInformationStub func(api string, apiVersion string, auth string, minCLIVersion string, doppler string, uaa string, routing string, skipSSLValidation bool)

	SetTokenInformationStub func(accessToken string, refreshToken string, sshOAuthClient string)

	SkipSSLValidationStub func() bool

	StagingTimeoutStub func() time.Duration

	StartupTimeoutStub func() time.Duration

	TargetStub func() string

	TargetedOrganizationStub func() configv3.Organization

	TargetedSpaceStub func() configv3.Space

	UAAOAuthClientStub func() string

	UAAOAuthClientSecretStub func() string

	UnsetOrganizationInformationStub func()

	UnsetSpaceInformationStub func()

	VerboseStub func() (bool, []string)
	// contains filtered or unexported fields
}

func (*FakeConfig) APIVersion

func (fake *FakeConfig) APIVersion() string

func (*FakeConfig) APIVersionCallCount

func (fake *FakeConfig) APIVersionCallCount() int

func (*FakeConfig) APIVersionReturns

func (fake *FakeConfig) APIVersionReturns(result1 string)

func (*FakeConfig) APIVersionReturnsOnCall

func (fake *FakeConfig) APIVersionReturnsOnCall(i int, result1 string)

func (*FakeConfig) AccessToken

func (fake *FakeConfig) AccessToken() string

func (*FakeConfig) AccessTokenCallCount

func (fake *FakeConfig) AccessTokenCallCount() int

func (*FakeConfig) AccessTokenReturns

func (fake *FakeConfig) AccessTokenReturns(result1 string)

func (*FakeConfig) AccessTokenReturnsOnCall

func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string)

func (*FakeConfig) BinaryName

func (fake *FakeConfig) BinaryName() string

func (*FakeConfig) BinaryNameCallCount

func (fake *FakeConfig) BinaryNameCallCount() int

func (*FakeConfig) BinaryNameReturns

func (fake *FakeConfig) BinaryNameReturns(result1 string)

func (*FakeConfig) BinaryNameReturnsOnCall

func (fake *FakeConfig) BinaryNameReturnsOnCall(i int, result1 string)

func (*FakeConfig) BinaryVersion

func (fake *FakeConfig) BinaryVersion() string

func (*FakeConfig) BinaryVersionCallCount

func (fake *FakeConfig) BinaryVersionCallCount() int

func (*FakeConfig) BinaryVersionReturns

func (fake *FakeConfig) BinaryVersionReturns(result1 string)

func (*FakeConfig) BinaryVersionReturnsOnCall

func (fake *FakeConfig) BinaryVersionReturnsOnCall(i int, result1 string)

func (*FakeConfig) ColorEnabled

func (fake *FakeConfig) ColorEnabled() configv3.ColorSetting

func (*FakeConfig) ColorEnabledCallCount

func (fake *FakeConfig) ColorEnabledCallCount() int

func (*FakeConfig) ColorEnabledReturns

func (fake *FakeConfig) ColorEnabledReturns(result1 configv3.ColorSetting)

func (*FakeConfig) ColorEnabledReturnsOnCall

func (fake *FakeConfig) ColorEnabledReturnsOnCall(i int, result1 configv3.ColorSetting)

func (*FakeConfig) CurrentUser

func (fake *FakeConfig) CurrentUser() (configv3.User, error)

func (*FakeConfig) CurrentUserCallCount

func (fake *FakeConfig) CurrentUserCallCount() int

func (*FakeConfig) CurrentUserReturns

func (fake *FakeConfig) CurrentUserReturns(result1 configv3.User, result2 error)

func (*FakeConfig) CurrentUserReturnsOnCall

func (fake *FakeConfig) CurrentUserReturnsOnCall(i int, result1 configv3.User, result2 error)

func (*FakeConfig) DialTimeout

func (fake *FakeConfig) DialTimeout() time.Duration

func (*FakeConfig) DialTimeoutCallCount

func (fake *FakeConfig) DialTimeoutCallCount() int

func (*FakeConfig) DialTimeoutReturns

func (fake *FakeConfig) DialTimeoutReturns(result1 time.Duration)

func (*FakeConfig) DialTimeoutReturnsOnCall

func (fake *FakeConfig) DialTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*FakeConfig) Experimental

func (fake *FakeConfig) Experimental() bool

func (*FakeConfig) ExperimentalCallCount

func (fake *FakeConfig) ExperimentalCallCount() int

func (*FakeConfig) ExperimentalReturns

func (fake *FakeConfig) ExperimentalReturns(result1 bool)

func (*FakeConfig) ExperimentalReturnsOnCall

func (fake *FakeConfig) ExperimentalReturnsOnCall(i int, result1 bool)

func (*FakeConfig) HasTargetedOrganization

func (fake *FakeConfig) HasTargetedOrganization() bool

func (*FakeConfig) HasTargetedOrganizationCallCount

func (fake *FakeConfig) HasTargetedOrganizationCallCount() int

func (*FakeConfig) HasTargetedOrganizationReturns

func (fake *FakeConfig) HasTargetedOrganizationReturns(result1 bool)

func (*FakeConfig) HasTargetedOrganizationReturnsOnCall

func (fake *FakeConfig) HasTargetedOrganizationReturnsOnCall(i int, result1 bool)

func (*FakeConfig) HasTargetedSpace

func (fake *FakeConfig) HasTargetedSpace() bool

func (*FakeConfig) HasTargetedSpaceCallCount

func (fake *FakeConfig) HasTargetedSpaceCallCount() int

func (*FakeConfig) HasTargetedSpaceReturns

func (fake *FakeConfig) HasTargetedSpaceReturns(result1 bool)

func (*FakeConfig) HasTargetedSpaceReturnsOnCall

func (fake *FakeConfig) HasTargetedSpaceReturnsOnCall(i int, result1 bool)

func (*FakeConfig) Invocations

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

func (*FakeConfig) Locale

func (fake *FakeConfig) Locale() string

func (*FakeConfig) LocaleCallCount

func (fake *FakeConfig) LocaleCallCount() int

func (*FakeConfig) LocaleReturns

func (fake *FakeConfig) LocaleReturns(result1 string)

func (*FakeConfig) LocaleReturnsOnCall

func (fake *FakeConfig) LocaleReturnsOnCall(i int, result1 string)

func (*FakeConfig) MinCLIVersion

func (fake *FakeConfig) MinCLIVersion() string

func (*FakeConfig) MinCLIVersionCallCount

func (fake *FakeConfig) MinCLIVersionCallCount() int

func (*FakeConfig) MinCLIVersionReturns

func (fake *FakeConfig) MinCLIVersionReturns(result1 string)

func (*FakeConfig) MinCLIVersionReturnsOnCall

func (fake *FakeConfig) MinCLIVersionReturnsOnCall(i int, result1 string)

func (*FakeConfig) OverallPollingTimeout

func (fake *FakeConfig) OverallPollingTimeout() time.Duration

func (*FakeConfig) OverallPollingTimeoutCallCount

func (fake *FakeConfig) OverallPollingTimeoutCallCount() int

func (*FakeConfig) OverallPollingTimeoutReturns

func (fake *FakeConfig) OverallPollingTimeoutReturns(result1 time.Duration)

func (*FakeConfig) OverallPollingTimeoutReturnsOnCall

func (fake *FakeConfig) OverallPollingTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*FakeConfig) Plugins

func (fake *FakeConfig) Plugins() map[string]configv3.Plugin

func (*FakeConfig) PluginsCallCount

func (fake *FakeConfig) PluginsCallCount() int

func (*FakeConfig) PluginsReturns

func (fake *FakeConfig) PluginsReturns(result1 map[string]configv3.Plugin)

func (*FakeConfig) PluginsReturnsOnCall

func (fake *FakeConfig) PluginsReturnsOnCall(i int, result1 map[string]configv3.Plugin)

func (*FakeConfig) PollingInterval

func (fake *FakeConfig) PollingInterval() time.Duration

func (*FakeConfig) PollingIntervalCallCount

func (fake *FakeConfig) PollingIntervalCallCount() int

func (*FakeConfig) PollingIntervalReturns

func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration)

func (*FakeConfig) PollingIntervalReturnsOnCall

func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration)

func (*FakeConfig) RefreshToken

func (fake *FakeConfig) RefreshToken() string

func (*FakeConfig) RefreshTokenCallCount

func (fake *FakeConfig) RefreshTokenCallCount() int

func (*FakeConfig) RefreshTokenReturns

func (fake *FakeConfig) RefreshTokenReturns(result1 string)

func (*FakeConfig) RefreshTokenReturnsOnCall

func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string)

func (*FakeConfig) SetAccessToken

func (fake *FakeConfig) SetAccessToken(token string)

func (*FakeConfig) SetAccessTokenArgsForCall

func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string

func (*FakeConfig) SetAccessTokenCallCount

func (fake *FakeConfig) SetAccessTokenCallCount() int

func (*FakeConfig) SetOrganizationInformation

func (fake *FakeConfig) SetOrganizationInformation(guid string, name string)

func (*FakeConfig) SetOrganizationInformationArgsForCall

func (fake *FakeConfig) SetOrganizationInformationArgsForCall(i int) (string, string)

func (*FakeConfig) SetOrganizationInformationCallCount

func (fake *FakeConfig) SetOrganizationInformationCallCount() int

func (*FakeConfig) SetRefreshToken

func (fake *FakeConfig) SetRefreshToken(token string)

func (*FakeConfig) SetRefreshTokenArgsForCall

func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string

func (*FakeConfig) SetRefreshTokenCallCount

func (fake *FakeConfig) SetRefreshTokenCallCount() int

func (*FakeConfig) SetSpaceInformation

func (fake *FakeConfig) SetSpaceInformation(guid string, name string, allowSSH bool)

func (*FakeConfig) SetSpaceInformationArgsForCall

func (fake *FakeConfig) SetSpaceInformationArgsForCall(i int) (string, string, bool)

func (*FakeConfig) SetSpaceInformationCallCount

func (fake *FakeConfig) SetSpaceInformationCallCount() int

func (*FakeConfig) SetTargetInformation

func (fake *FakeConfig) SetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, uaa string, routing string, skipSSLValidation bool)

func (*FakeConfig) SetTargetInformationArgsForCall

func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) (string, string, string, string, string, string, string, bool)

func (*FakeConfig) SetTargetInformationCallCount

func (fake *FakeConfig) SetTargetInformationCallCount() int

func (*FakeConfig) SetTokenInformation

func (fake *FakeConfig) SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)

func (*FakeConfig) SetTokenInformationArgsForCall

func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string)

func (*FakeConfig) SetTokenInformationCallCount

func (fake *FakeConfig) SetTokenInformationCallCount() int

func (*FakeConfig) SkipSSLValidation

func (fake *FakeConfig) SkipSSLValidation() bool

func (*FakeConfig) SkipSSLValidationCallCount

func (fake *FakeConfig) SkipSSLValidationCallCount() int

func (*FakeConfig) SkipSSLValidationReturns

func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool)

func (*FakeConfig) SkipSSLValidationReturnsOnCall

func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool)

func (*FakeConfig) StagingTimeout

func (fake *FakeConfig) StagingTimeout() time.Duration

func (*FakeConfig) StagingTimeoutCallCount

func (fake *FakeConfig) StagingTimeoutCallCount() int

func (*FakeConfig) StagingTimeoutReturns

func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration)

func (*FakeConfig) StagingTimeoutReturnsOnCall

func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*FakeConfig) StartupTimeout

func (fake *FakeConfig) StartupTimeout() time.Duration

func (*FakeConfig) StartupTimeoutCallCount

func (fake *FakeConfig) StartupTimeoutCallCount() int

func (*FakeConfig) StartupTimeoutReturns

func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration)

func (*FakeConfig) StartupTimeoutReturnsOnCall

func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*FakeConfig) Target

func (fake *FakeConfig) Target() string

func (*FakeConfig) TargetCallCount

func (fake *FakeConfig) TargetCallCount() int

func (*FakeConfig) TargetReturns

func (fake *FakeConfig) TargetReturns(result1 string)

func (*FakeConfig) TargetReturnsOnCall

func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string)

func (*FakeConfig) TargetedOrganization

func (fake *FakeConfig) TargetedOrganization() configv3.Organization

func (*FakeConfig) TargetedOrganizationCallCount

func (fake *FakeConfig) TargetedOrganizationCallCount() int

func (*FakeConfig) TargetedOrganizationReturns

func (fake *FakeConfig) TargetedOrganizationReturns(result1 configv3.Organization)

func (*FakeConfig) TargetedOrganizationReturnsOnCall

func (fake *FakeConfig) TargetedOrganizationReturnsOnCall(i int, result1 configv3.Organization)

func (*FakeConfig) TargetedSpace

func (fake *FakeConfig) TargetedSpace() configv3.Space

func (*FakeConfig) TargetedSpaceCallCount

func (fake *FakeConfig) TargetedSpaceCallCount() int

func (*FakeConfig) TargetedSpaceReturns

func (fake *FakeConfig) TargetedSpaceReturns(result1 configv3.Space)

func (*FakeConfig) TargetedSpaceReturnsOnCall

func (fake *FakeConfig) TargetedSpaceReturnsOnCall(i int, result1 configv3.Space)

func (*FakeConfig) UAAOAuthClient

func (fake *FakeConfig) UAAOAuthClient() string

func (*FakeConfig) UAAOAuthClientCallCount

func (fake *FakeConfig) UAAOAuthClientCallCount() int

func (*FakeConfig) UAAOAuthClientReturns

func (fake *FakeConfig) UAAOAuthClientReturns(result1 string)

func (*FakeConfig) UAAOAuthClientReturnsOnCall

func (fake *FakeConfig) UAAOAuthClientReturnsOnCall(i int, result1 string)

func (*FakeConfig) UAAOAuthClientSecret

func (fake *FakeConfig) UAAOAuthClientSecret() string

func (*FakeConfig) UAAOAuthClientSecretCallCount

func (fake *FakeConfig) UAAOAuthClientSecretCallCount() int

func (*FakeConfig) UAAOAuthClientSecretReturns

func (fake *FakeConfig) UAAOAuthClientSecretReturns(result1 string)

func (*FakeConfig) UAAOAuthClientSecretReturnsOnCall

func (fake *FakeConfig) UAAOAuthClientSecretReturnsOnCall(i int, result1 string)

func (*FakeConfig) UnsetOrganizationInformation

func (fake *FakeConfig) UnsetOrganizationInformation()

func (*FakeConfig) UnsetOrganizationInformationCallCount

func (fake *FakeConfig) UnsetOrganizationInformationCallCount() int

func (*FakeConfig) UnsetSpaceInformation

func (fake *FakeConfig) UnsetSpaceInformation()

func (*FakeConfig) UnsetSpaceInformationCallCount

func (fake *FakeConfig) UnsetSpaceInformationCallCount() int

func (*FakeConfig) Verbose

func (fake *FakeConfig) Verbose() (bool, []string)

func (*FakeConfig) VerboseCallCount

func (fake *FakeConfig) VerboseCallCount() int

func (*FakeConfig) VerboseReturns

func (fake *FakeConfig) VerboseReturns(result1 bool, result2 []string)

func (*FakeConfig) VerboseReturnsOnCall

func (fake *FakeConfig) VerboseReturnsOnCall(i int, result1 bool, result2 []string)

type FakeSharedActor

type FakeSharedActor struct {
	CheckTargetStub func(config sharedaction.Config, targetedOrganizationRequired bool, targetedSpaceRequired bool) error
	// contains filtered or unexported fields
}

func (*FakeSharedActor) CheckTarget

func (fake *FakeSharedActor) CheckTarget(config sharedaction.Config, targetedOrganizationRequired bool, targetedSpaceRequired bool) error

func (*FakeSharedActor) CheckTargetArgsForCall

func (fake *FakeSharedActor) CheckTargetArgsForCall(i int) (sharedaction.Config, bool, bool)

func (*FakeSharedActor) CheckTargetCallCount

func (fake *FakeSharedActor) CheckTargetCallCount() int

func (*FakeSharedActor) CheckTargetReturns

func (fake *FakeSharedActor) CheckTargetReturns(result1 error)

func (*FakeSharedActor) CheckTargetReturnsOnCall

func (fake *FakeSharedActor) CheckTargetReturnsOnCall(i int, result1 error)

func (*FakeSharedActor) Invocations

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

Jump to

Keyboard shortcuts

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