Documentation ¶
Overview ¶
Package github is a generated GoMock package.
Index ¶
- type MockIGithubOAuth2Authenticator
- func (m *MockIGithubOAuth2Authenticator) AuthCodeURL(arg0 string, arg1 ...oauth2.AuthCodeOption) string
- func (m *MockIGithubOAuth2Authenticator) EXPECT() *MockIGithubOAuth2AuthenticatorMockRecorder
- func (m *MockIGithubOAuth2Authenticator) Exchange(arg0 context.Context, arg1 string, arg2 ...oauth2.AuthCodeOption) (*oauth2.Token, error)
- func (m *MockIGithubOAuth2Authenticator) GetTokenSource(arg0 context.Context, arg1 *oauth2.Token) oauth2.TokenSource
- func (m *MockIGithubOAuth2Authenticator) GetUser(arg0 *oauth2.Token) (*github.User, error)
- type MockIGithubOAuth2AuthenticatorMockRecorder
- func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) AuthCodeURL(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) Exchange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) GetTokenSource(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) GetUser(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIGithubOAuth2Authenticator ¶
type MockIGithubOAuth2Authenticator struct {
// contains filtered or unexported fields
}
MockIGithubOAuth2Authenticator is a mock of IGithubOAuth2Authenticator interface.
func NewMockIGithubOAuth2Authenticator ¶
func NewMockIGithubOAuth2Authenticator(ctrl *gomock.Controller) *MockIGithubOAuth2Authenticator
NewMockIGithubOAuth2Authenticator creates a new mock instance.
func (*MockIGithubOAuth2Authenticator) AuthCodeURL ¶
func (m *MockIGithubOAuth2Authenticator) AuthCodeURL(arg0 string, arg1 ...oauth2.AuthCodeOption) string
AuthCodeURL mocks base method.
func (*MockIGithubOAuth2Authenticator) EXPECT ¶
func (m *MockIGithubOAuth2Authenticator) EXPECT() *MockIGithubOAuth2AuthenticatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIGithubOAuth2Authenticator) Exchange ¶
func (m *MockIGithubOAuth2Authenticator) Exchange(arg0 context.Context, arg1 string, arg2 ...oauth2.AuthCodeOption) (*oauth2.Token, error)
Exchange mocks base method.
func (*MockIGithubOAuth2Authenticator) GetTokenSource ¶ added in v0.1.242
func (m *MockIGithubOAuth2Authenticator) GetTokenSource(arg0 context.Context, arg1 *oauth2.Token) oauth2.TokenSource
GetTokenSource mocks base method.
type MockIGithubOAuth2AuthenticatorMockRecorder ¶
type MockIGithubOAuth2AuthenticatorMockRecorder struct {
// contains filtered or unexported fields
}
MockIGithubOAuth2AuthenticatorMockRecorder is the mock recorder for MockIGithubOAuth2Authenticator.
func (*MockIGithubOAuth2AuthenticatorMockRecorder) AuthCodeURL ¶
func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) AuthCodeURL(arg0 interface{}, arg1 ...interface{}) *gomock.Call
AuthCodeURL indicates an expected call of AuthCodeURL.
func (*MockIGithubOAuth2AuthenticatorMockRecorder) Exchange ¶
func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) Exchange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exchange indicates an expected call of Exchange.
func (*MockIGithubOAuth2AuthenticatorMockRecorder) GetTokenSource ¶ added in v0.1.242
func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) GetTokenSource(arg0, arg1 interface{}) *gomock.Call
GetTokenSource indicates an expected call of GetTokenSource.
func (*MockIGithubOAuth2AuthenticatorMockRecorder) GetUser ¶
func (mr *MockIGithubOAuth2AuthenticatorMockRecorder) GetUser(arg0 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.