mocks

package
v0.0.0-...-b5b672d Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRequest

type AccessTokenRequest struct {
	mock.Mock
}

AccessTokenRequest is an autogenerated mock type for the AccessTokenRequest type

func (*AccessTokenRequest) Client

func (_m *AccessTokenRequest) Client() oauth2.Client

Client provides a mock function with given fields:

func (*AccessTokenRequest) Code

func (_m *AccessTokenRequest) Code() string

Code provides a mock function with given fields:

func (*AccessTokenRequest) RedirectUri

func (_m *AccessTokenRequest) RedirectUri() *url.URL

RedirectUri provides a mock function with given fields:

func (*AccessTokenRequest) RequestValues

func (_m *AccessTokenRequest) RequestValues() url.Values

RequestValues provides a mock function with given fields:

func (*AccessTokenRequest) RequestedAt

func (_m *AccessTokenRequest) RequestedAt() time.Time

RequestedAt provides a mock function with given fields:

func (*AccessTokenRequest) RequestedScopes

func (_m *AccessTokenRequest) RequestedScopes() oauth2.Scope

RequestedScopes provides a mock function with given fields:

func (*AccessTokenRequest) Session

func (_m *AccessTokenRequest) Session() oauth2.Session

Session provides a mock function with given fields:

func (*AccessTokenRequest) SetSession

func (_m *AccessTokenRequest) SetSession(_a0 oauth2.Session)

SetSession provides a mock function with given fields: _a0

type AccessTokenStorage

type AccessTokenStorage struct {
	mock.Mock
}

AccessTokenStorage is an autogenerated mock type for the AccessTokenStorage type

func (*AccessTokenStorage) CreateAccessTokenSession

func (_m *AccessTokenStorage) CreateAccessTokenSession(ctx context.Context, signature string, req oauth2.Request) error

CreateAccessTokenSession provides a mock function with given fields: ctx, signature, req

func (*AccessTokenStorage) DeleteAccessTokenSession

func (_m *AccessTokenStorage) DeleteAccessTokenSession(ctx context.Context, signature string) (bool, error)

DeleteAccessTokenSession provides a mock function with given fields: ctx, signature

func (*AccessTokenStorage) GetAccessTokenSession

func (_m *AccessTokenStorage) GetAccessTokenSession(ctx context.Context, signature string) (oauth2.Session, error)

GetAccessTokenSession provides a mock function with given fields: ctx, signature

type AuthorizeCodeStorage

type AuthorizeCodeStorage struct {
	mock.Mock
}

AuthorizeCodeStorage is an autogenerated mock type for the AuthorizeCodeStorage type

func (*AuthorizeCodeStorage) CreateAuthorizeCodeSession

func (_m *AuthorizeCodeStorage) CreateAuthorizeCodeSession(ctx context.Context, code string, req oauth2.AuthorizeRequest) error

CreateAuthorizeCodeSession provides a mock function with given fields: ctx, code, req

func (*AuthorizeCodeStorage) DeleteAuthorizeCodeSession

func (_m *AuthorizeCodeStorage) DeleteAuthorizeCodeSession(ctx context.Context, code string) (bool, error)

DeleteAuthorizeCodeSession provides a mock function with given fields: ctx, code

func (*AuthorizeCodeStorage) GetAuthorizeCodeSession

func (_m *AuthorizeCodeStorage) GetAuthorizeCodeSession(ctx context.Context, code string) (oauth2.Session, error)

GetAuthorizeCodeSession provides a mock function with given fields: ctx, code

type AuthorizeRequest

type AuthorizeRequest struct {
	mock.Mock
}

AuthorizeRequest is an autogenerated mock type for the AuthorizeRequest type

func (*AuthorizeRequest) Client

func (_m *AuthorizeRequest) Client() oauth2.Client

Client provides a mock function with given fields:

func (*AuthorizeRequest) RedirectUri

func (_m *AuthorizeRequest) RedirectUri() *url.URL

RedirectUri provides a mock function with given fields:

func (*AuthorizeRequest) RequestValues

func (_m *AuthorizeRequest) RequestValues() url.Values

RequestValues provides a mock function with given fields:

func (*AuthorizeRequest) RequestedAt

func (_m *AuthorizeRequest) RequestedAt() time.Time

RequestedAt provides a mock function with given fields:

func (*AuthorizeRequest) RequestedScopes

func (_m *AuthorizeRequest) RequestedScopes() oauth2.Scope

RequestedScopes provides a mock function with given fields:

func (*AuthorizeRequest) ResponseTypes

func (_m *AuthorizeRequest) ResponseTypes() oauth2.ResponseTypes

ResponseTypes provides a mock function with given fields:

func (*AuthorizeRequest) Session

func (_m *AuthorizeRequest) Session() oauth2.Session

Session provides a mock function with given fields:

func (*AuthorizeRequest) SetSession

func (_m *AuthorizeRequest) SetSession(_a0 oauth2.Session)

SetSession provides a mock function with given fields: _a0

func (*AuthorizeRequest) State

func (_m *AuthorizeRequest) State() string

State provides a mock function with given fields:

func (*AuthorizeRequest) Valid

func (_m *AuthorizeRequest) Valid() oauth2.OAuthError

Valid provides a mock function with given fields:

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) ClientId

func (_m *Client) ClientId() string

ClientId provides a mock function with given fields:

func (*Client) GrantTypes

func (_m *Client) GrantTypes() oauth2.GrantTypes

GrantTypes provides a mock function with given fields:

func (*Client) RedirectUri

func (_m *Client) RedirectUri() []string

RedirectUri provides a mock function with given fields:

func (*Client) ResponseTypes

func (_m *Client) ResponseTypes() oauth2.ResponseTypes

ResponseTypes provides a mock function with given fields:

func (*Client) Scope

func (_m *Client) Scope() oauth2.Scope

Scope provides a mock function with given fields:

type ClientStorage

type ClientStorage struct {
	mock.Mock
}

ClientStorage is an autogenerated mock type for the ClientStorage type

func (*ClientStorage) AuthenticateClient

func (_m *ClientStorage) AuthenticateClient(ctx context.Context, clientId string, secret string) (oauth2.Client, error)

AuthenticateClient provides a mock function with given fields: ctx, clientId, secret

func (*ClientStorage) GetClient

func (_m *ClientStorage) GetClient(ctx context.Context, clientId string) (oauth2.Client, error)

GetClient provides a mock function with given fields: ctx, clientId

type RefreshTokenStorage

type RefreshTokenStorage struct {
	mock.Mock
}

RefreshTokenStorage is an autogenerated mock type for the RefreshTokenStorage type

func (*RefreshTokenStorage) CreateRefreshTokenSession

func (_m *RefreshTokenStorage) CreateRefreshTokenSession(ctx context.Context, signature string, req oauth2.Request) error

CreateRefreshTokenSession provides a mock function with given fields: ctx, signature, req

func (*RefreshTokenStorage) DeleteRefreshTokenSession

func (_m *RefreshTokenStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) (bool, error)

DeleteRefreshTokenSession provides a mock function with given fields: ctx, signature

func (*RefreshTokenStorage) GetRefreshTokenSession

func (_m *RefreshTokenStorage) GetRefreshTokenSession(ctx context.Context, signature string) (oauth2.Session, error)

GetRefreshTokenSession provides a mock function with given fields: ctx, signature

type Request

type Request struct {
	mock.Mock
}

Request is an autogenerated mock type for the Request type

func (*Request) Client

func (_m *Request) Client() oauth2.Client

Client provides a mock function with given fields:

func (*Request) RequestValues

func (_m *Request) RequestValues() url.Values

RequestValues provides a mock function with given fields:

func (*Request) RequestedAt

func (_m *Request) RequestedAt() time.Time

RequestedAt provides a mock function with given fields:

func (*Request) RequestedScopes

func (_m *Request) RequestedScopes() oauth2.Scope

RequestedScopes provides a mock function with given fields:

func (*Request) Session

func (_m *Request) Session() oauth2.Session

Session provides a mock function with given fields:

func (*Request) SetSession

func (_m *Request) SetSession(_a0 oauth2.Session)

SetSession provides a mock function with given fields: _a0

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func (*Session) ClientId

func (_m *Session) ClientId() string

ClientId provides a mock function with given fields:

func (*Session) ExpiresAt

func (_m *Session) ExpiresAt() time.Time

ExpiresAt provides a mock function with given fields:

func (*Session) GrantScope

func (_m *Session) GrantScope(scopes ...string)

GrantScope provides a mock function with given fields: scopes

func (*Session) GrantedScopes

func (_m *Session) GrantedScopes() oauth2.Scope

GrantedScopes provides a mock function with given fields:

func (*Session) Id

func (_m *Session) Id() oauth2.SessionId

Id provides a mock function with given fields:

func (*Session) RedirectUri

func (_m *Session) RedirectUri() *url.URL

RedirectUri provides a mock function with given fields:

func (*Session) RequestValues

func (_m *Session) RequestValues() url.Values

RequestValues provides a mock function with given fields:

func (*Session) SetExpiresAt

func (_m *Session) SetExpiresAt(expireAt time.Time)

SetExpiresAt provides a mock function with given fields: expireAt

func (*Session) SetRedirectUri

func (_m *Session) SetRedirectUri(_a0 string)

SetRedirectUri provides a mock function with given fields: _a0

func (*Session) SetRequestValues

func (_m *Session) SetRequestValues(values url.Values)

SetRequestValues provides a mock function with given fields: values

func (*Session) UserId

func (_m *Session) UserId() string

UserId provides a mock function with given fields:

type TokenStrategy

type TokenStrategy struct {
	mock.Mock
}

TokenStrategy is an autogenerated mock type for the TokenStrategy type

func (*TokenStrategy) AccessTokenLifespan

func (_m *TokenStrategy) AccessTokenLifespan() time.Duration

AccessTokenLifespan provides a mock function with given fields:

func (*TokenStrategy) AccessTokenSignature

func (_m *TokenStrategy) AccessTokenSignature(token string) (string, error)

AccessTokenSignature provides a mock function with given fields: token

func (*TokenStrategy) AuthorizeCodeLifespan

func (_m *TokenStrategy) AuthorizeCodeLifespan() time.Duration

AuthorizeCodeLifespan provides a mock function with given fields:

func (*TokenStrategy) AuthorizeCodeSignature

func (_m *TokenStrategy) AuthorizeCodeSignature(token string) (string, error)

AuthorizeCodeSignature provides a mock function with given fields: token

func (*TokenStrategy) GenerateAccessToken

func (_m *TokenStrategy) GenerateAccessToken(ctx context.Context, session oauth2.Session) (string, string, error)

GenerateAccessToken provides a mock function with given fields: ctx, session

func (*TokenStrategy) GenerateAuthorizeCode

func (_m *TokenStrategy) GenerateAuthorizeCode(ctx context.Context, session oauth2.Session) (string, string, error)

GenerateAuthorizeCode provides a mock function with given fields: ctx, session

func (*TokenStrategy) GenerateRefreshToken

func (_m *TokenStrategy) GenerateRefreshToken(ctx context.Context, session oauth2.Session) (string, string, error)

GenerateRefreshToken provides a mock function with given fields: ctx, session

func (*TokenStrategy) RefreshTokenSignature

func (_m *TokenStrategy) RefreshTokenSignature(token string) (string, error)

RefreshTokenSignature provides a mock function with given fields: token

func (*TokenStrategy) ValidateAccessToken

func (_m *TokenStrategy) ValidateAccessToken(ctx context.Context, session oauth2.Session, token string) error

ValidateAccessToken provides a mock function with given fields: ctx, session, token

func (*TokenStrategy) ValidateAuthorizeCode

func (_m *TokenStrategy) ValidateAuthorizeCode(ctx context.Context, session oauth2.Session, token string) error

ValidateAuthorizeCode provides a mock function with given fields: ctx, session, token

func (*TokenStrategy) ValidateRefreshToken

func (_m *TokenStrategy) ValidateRefreshToken(ctx context.Context, session oauth2.Session, token string) error

ValidateRefreshToken provides a mock function with given fields: ctx, session, token

type UserStorage

type UserStorage struct {
	mock.Mock
}

UserStorage is an autogenerated mock type for the UserStorage type

func (*UserStorage) AuthenticateUser

func (_m *UserStorage) AuthenticateUser(ctx context.Context, username string, password string) (string, error)

AuthenticateUser provides a mock function with given fields: ctx, username, password

Jump to

Keyboard shortcuts

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