providerfakes

package
v0.0.0-...-de86ced Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 FakeAuthConfig

type FakeAuthConfig struct {
	IsConfiguredStub func() bool

	ValidateStub func() error

	AuthMethodStub func(oauthBaseURL string, teamName string) atc.AuthMethod
	// contains filtered or unexported fields
}

func (*FakeAuthConfig) AuthMethod

func (fake *FakeAuthConfig) AuthMethod(oauthBaseURL string, teamName string) atc.AuthMethod

func (*FakeAuthConfig) AuthMethodArgsForCall

func (fake *FakeAuthConfig) AuthMethodArgsForCall(i int) (string, string)

func (*FakeAuthConfig) AuthMethodCallCount

func (fake *FakeAuthConfig) AuthMethodCallCount() int

func (*FakeAuthConfig) AuthMethodReturns

func (fake *FakeAuthConfig) AuthMethodReturns(result1 atc.AuthMethod)

func (*FakeAuthConfig) AuthMethodReturnsOnCall

func (fake *FakeAuthConfig) AuthMethodReturnsOnCall(i int, result1 atc.AuthMethod)

func (*FakeAuthConfig) Invocations

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

func (*FakeAuthConfig) IsConfigured

func (fake *FakeAuthConfig) IsConfigured() bool

func (*FakeAuthConfig) IsConfiguredCallCount

func (fake *FakeAuthConfig) IsConfiguredCallCount() int

func (*FakeAuthConfig) IsConfiguredReturns

func (fake *FakeAuthConfig) IsConfiguredReturns(result1 bool)

func (*FakeAuthConfig) IsConfiguredReturnsOnCall

func (fake *FakeAuthConfig) IsConfiguredReturnsOnCall(i int, result1 bool)

func (*FakeAuthConfig) Validate

func (fake *FakeAuthConfig) Validate() error

func (*FakeAuthConfig) ValidateCallCount

func (fake *FakeAuthConfig) ValidateCallCount() int

func (*FakeAuthConfig) ValidateReturns

func (fake *FakeAuthConfig) ValidateReturns(result1 error)

func (*FakeAuthConfig) ValidateReturnsOnCall

func (fake *FakeAuthConfig) ValidateReturnsOnCall(i int, result1 error)

type FakeProvider

type FakeProvider struct {
	PreTokenClientStub func() (*http.Client, error)

	AuthCodeURLStub func(string, ...oauth2.AuthCodeOption) string

	ExchangeStub func(context.Context, string) (*oauth2.Token, error)

	ClientStub func(context.Context, *oauth2.Token) *http.Client

	VerifyStub func(lager.Logger, *http.Client) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeProvider) AuthCodeURL

func (fake *FakeProvider) AuthCodeURL(arg1 string, arg2 ...oauth2.AuthCodeOption) string

func (*FakeProvider) AuthCodeURLArgsForCall

func (fake *FakeProvider) AuthCodeURLArgsForCall(i int) (string, []oauth2.AuthCodeOption)

func (*FakeProvider) AuthCodeURLCallCount

func (fake *FakeProvider) AuthCodeURLCallCount() int

func (*FakeProvider) AuthCodeURLReturns

func (fake *FakeProvider) AuthCodeURLReturns(result1 string)

func (*FakeProvider) AuthCodeURLReturnsOnCall

func (fake *FakeProvider) AuthCodeURLReturnsOnCall(i int, result1 string)

func (*FakeProvider) Client

func (fake *FakeProvider) Client(arg1 context.Context, arg2 *oauth2.Token) *http.Client

func (*FakeProvider) ClientArgsForCall

func (fake *FakeProvider) ClientArgsForCall(i int) (context.Context, *oauth2.Token)

func (*FakeProvider) ClientCallCount

func (fake *FakeProvider) ClientCallCount() int

func (*FakeProvider) ClientReturns

func (fake *FakeProvider) ClientReturns(result1 *http.Client)

func (*FakeProvider) ClientReturnsOnCall

func (fake *FakeProvider) ClientReturnsOnCall(i int, result1 *http.Client)

func (*FakeProvider) Exchange

func (fake *FakeProvider) Exchange(arg1 context.Context, arg2 string) (*oauth2.Token, error)

func (*FakeProvider) ExchangeArgsForCall

func (fake *FakeProvider) ExchangeArgsForCall(i int) (context.Context, string)

func (*FakeProvider) ExchangeCallCount

func (fake *FakeProvider) ExchangeCallCount() int

func (*FakeProvider) ExchangeReturns

func (fake *FakeProvider) ExchangeReturns(result1 *oauth2.Token, result2 error)

func (*FakeProvider) ExchangeReturnsOnCall

func (fake *FakeProvider) ExchangeReturnsOnCall(i int, result1 *oauth2.Token, result2 error)

func (*FakeProvider) Invocations

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

func (*FakeProvider) PreTokenClient

func (fake *FakeProvider) PreTokenClient() (*http.Client, error)

func (*FakeProvider) PreTokenClientCallCount

func (fake *FakeProvider) PreTokenClientCallCount() int

func (*FakeProvider) PreTokenClientReturns

func (fake *FakeProvider) PreTokenClientReturns(result1 *http.Client, result2 error)

func (*FakeProvider) PreTokenClientReturnsOnCall

func (fake *FakeProvider) PreTokenClientReturnsOnCall(i int, result1 *http.Client, result2 error)

func (*FakeProvider) Verify

func (fake *FakeProvider) Verify(arg1 lager.Logger, arg2 *http.Client) (bool, error)

func (*FakeProvider) VerifyArgsForCall

func (fake *FakeProvider) VerifyArgsForCall(i int) (lager.Logger, *http.Client)

func (*FakeProvider) VerifyCallCount

func (fake *FakeProvider) VerifyCallCount() int

func (*FakeProvider) VerifyReturns

func (fake *FakeProvider) VerifyReturns(result1 bool, result2 error)

func (*FakeProvider) VerifyReturnsOnCall

func (fake *FakeProvider) VerifyReturnsOnCall(i int, result1 bool, result2 error)

type FakeTeamProvider

type FakeTeamProvider struct {
	ProviderConstructorStub func(provider.AuthConfig, string) (provider.Provider, bool)

	AddAuthGroupStub func(*flags.Group) provider.AuthConfig

	UnmarshalConfigStub func(*json.RawMessage) (provider.AuthConfig, error)
	// contains filtered or unexported fields
}

func (*FakeTeamProvider) AddAuthGroup

func (fake *FakeTeamProvider) AddAuthGroup(arg1 *flags.Group) provider.AuthConfig

func (*FakeTeamProvider) AddAuthGroupArgsForCall

func (fake *FakeTeamProvider) AddAuthGroupArgsForCall(i int) *flags.Group

func (*FakeTeamProvider) AddAuthGroupCallCount

func (fake *FakeTeamProvider) AddAuthGroupCallCount() int

func (*FakeTeamProvider) AddAuthGroupReturns

func (fake *FakeTeamProvider) AddAuthGroupReturns(result1 provider.AuthConfig)

func (*FakeTeamProvider) AddAuthGroupReturnsOnCall

func (fake *FakeTeamProvider) AddAuthGroupReturnsOnCall(i int, result1 provider.AuthConfig)

func (*FakeTeamProvider) Invocations

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

func (*FakeTeamProvider) ProviderConstructor

func (fake *FakeTeamProvider) ProviderConstructor(arg1 provider.AuthConfig, arg2 string) (provider.Provider, bool)

func (*FakeTeamProvider) ProviderConstructorArgsForCall

func (fake *FakeTeamProvider) ProviderConstructorArgsForCall(i int) (provider.AuthConfig, string)

func (*FakeTeamProvider) ProviderConstructorCallCount

func (fake *FakeTeamProvider) ProviderConstructorCallCount() int

func (*FakeTeamProvider) ProviderConstructorReturns

func (fake *FakeTeamProvider) ProviderConstructorReturns(result1 provider.Provider, result2 bool)

func (*FakeTeamProvider) ProviderConstructorReturnsOnCall

func (fake *FakeTeamProvider) ProviderConstructorReturnsOnCall(i int, result1 provider.Provider, result2 bool)

func (*FakeTeamProvider) UnmarshalConfig

func (fake *FakeTeamProvider) UnmarshalConfig(arg1 *json.RawMessage) (provider.AuthConfig, error)

func (*FakeTeamProvider) UnmarshalConfigArgsForCall

func (fake *FakeTeamProvider) UnmarshalConfigArgsForCall(i int) *json.RawMessage

func (*FakeTeamProvider) UnmarshalConfigCallCount

func (fake *FakeTeamProvider) UnmarshalConfigCallCount() int

func (*FakeTeamProvider) UnmarshalConfigReturns

func (fake *FakeTeamProvider) UnmarshalConfigReturns(result1 provider.AuthConfig, result2 error)

func (*FakeTeamProvider) UnmarshalConfigReturnsOnCall

func (fake *FakeTeamProvider) UnmarshalConfigReturnsOnCall(i int, result1 provider.AuthConfig, result2 error)

type FakeVerifier

type FakeVerifier struct {
	VerifyStub func(lager.Logger, *http.Client) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeVerifier) Invocations

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

func (*FakeVerifier) Verify

func (fake *FakeVerifier) Verify(arg1 lager.Logger, arg2 *http.Client) (bool, error)

func (*FakeVerifier) VerifyArgsForCall

func (fake *FakeVerifier) VerifyArgsForCall(i int) (lager.Logger, *http.Client)

func (*FakeVerifier) VerifyCallCount

func (fake *FakeVerifier) VerifyCallCount() int

func (*FakeVerifier) VerifyReturns

func (fake *FakeVerifier) VerifyReturns(result1 bool, result2 error)

func (*FakeVerifier) VerifyReturnsOnCall

func (fake *FakeVerifier) VerifyReturnsOnCall(i int, result1 bool, result2 error)

Jump to

Keyboard shortcuts

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