fakes

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: Apache-2.0 Imports: 6 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

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

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 AuthenticatedHandler

type AuthenticatedHandler struct {
	ServeHTTPStub func(response http.ResponseWriter, request *http.Request, tokenData uaa_client.CheckTokenResponse)
	// contains filtered or unexported fields
}

func (*AuthenticatedHandler) Invocations

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

func (*AuthenticatedHandler) ServeHTTP

func (fake *AuthenticatedHandler) ServeHTTP(response http.ResponseWriter, request *http.Request, tokenData uaa_client.CheckTokenResponse)

func (*AuthenticatedHandler) ServeHTTPArgsForCall

func (*AuthenticatedHandler) ServeHTTPCallCount

func (fake *AuthenticatedHandler) ServeHTTPCallCount() int

type CCClient

type CCClient struct {
	GetAppSpacesStub func(token string, appGUIDs []string) (map[string]string, error)

	GetSpaceStub func(token, spaceGUID string) (*models.Space, error)

	GetSpaceGUIDsStub func(token string, appGUIDs []string) ([]string, error)

	GetUserSpaceStub func(token, userGUID string, spaces models.Space) (*models.Space, error)

	GetUserSpacesStub func(token, userGUID string) (map[string]struct{}, error)
	// contains filtered or unexported fields
}

func (*CCClient) GetAppSpaces

func (fake *CCClient) GetAppSpaces(token string, appGUIDs []string) (map[string]string, error)

func (*CCClient) GetAppSpacesArgsForCall

func (fake *CCClient) GetAppSpacesArgsForCall(i int) (string, []string)

func (*CCClient) GetAppSpacesCallCount

func (fake *CCClient) GetAppSpacesCallCount() int

func (*CCClient) GetAppSpacesReturns

func (fake *CCClient) GetAppSpacesReturns(result1 map[string]string, result2 error)

func (*CCClient) GetAppSpacesReturnsOnCall added in v0.21.0

func (fake *CCClient) GetAppSpacesReturnsOnCall(i int, result1 map[string]string, result2 error)

func (*CCClient) GetSpace

func (fake *CCClient) GetSpace(token string, spaceGUID string) (*models.Space, error)

func (*CCClient) GetSpaceArgsForCall

func (fake *CCClient) GetSpaceArgsForCall(i int) (string, string)

func (*CCClient) GetSpaceCallCount

func (fake *CCClient) GetSpaceCallCount() int

func (*CCClient) GetSpaceGUIDs

func (fake *CCClient) GetSpaceGUIDs(token string, appGUIDs []string) ([]string, error)

func (*CCClient) GetSpaceGUIDsArgsForCall

func (fake *CCClient) GetSpaceGUIDsArgsForCall(i int) (string, []string)

func (*CCClient) GetSpaceGUIDsCallCount

func (fake *CCClient) GetSpaceGUIDsCallCount() int

func (*CCClient) GetSpaceGUIDsReturns

func (fake *CCClient) GetSpaceGUIDsReturns(result1 []string, result2 error)

func (*CCClient) GetSpaceGUIDsReturnsOnCall added in v0.21.0

func (fake *CCClient) GetSpaceGUIDsReturnsOnCall(i int, result1 []string, result2 error)

func (*CCClient) GetSpaceReturns

func (fake *CCClient) GetSpaceReturns(result1 *models.Space, result2 error)

func (*CCClient) GetSpaceReturnsOnCall added in v0.21.0

func (fake *CCClient) GetSpaceReturnsOnCall(i int, result1 *models.Space, result2 error)

func (*CCClient) GetUserSpace

func (fake *CCClient) GetUserSpace(token string, userGUID string, spaces models.Space) (*models.Space, error)

func (*CCClient) GetUserSpaceArgsForCall

func (fake *CCClient) GetUserSpaceArgsForCall(i int) (string, string, models.Space)

func (*CCClient) GetUserSpaceCallCount

func (fake *CCClient) GetUserSpaceCallCount() int

func (*CCClient) GetUserSpaceReturns

func (fake *CCClient) GetUserSpaceReturns(result1 *models.Space, result2 error)

func (*CCClient) GetUserSpaceReturnsOnCall added in v0.21.0

func (fake *CCClient) GetUserSpaceReturnsOnCall(i int, result1 *models.Space, result2 error)

func (*CCClient) GetUserSpaces

func (fake *CCClient) GetUserSpaces(token string, userGUID string) (map[string]struct{}, error)

func (*CCClient) GetUserSpacesArgsForCall

func (fake *CCClient) GetUserSpacesArgsForCall(i int) (string, string)

func (*CCClient) GetUserSpacesCallCount

func (fake *CCClient) GetUserSpacesCallCount() int

func (*CCClient) GetUserSpacesReturns

func (fake *CCClient) GetUserSpacesReturns(result1 map[string]struct{}, result2 error)

func (*CCClient) GetUserSpacesReturnsOnCall added in v0.21.0

func (fake *CCClient) GetUserSpacesReturnsOnCall(i int, result1 map[string]struct{}, result2 error)

func (*CCClient) Invocations

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

type ContextAdapter added in v0.22.0

type ContextAdapter struct {
	WithTimeoutStub func(context.Context, time.Duration) (context.Context, context.CancelFunc)
	// contains filtered or unexported fields
}

func (*ContextAdapter) Invocations added in v0.22.0

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

func (*ContextAdapter) WithTimeout added in v0.22.0

func (fake *ContextAdapter) WithTimeout(arg1 context.Context, arg2 time.Duration) (context.Context, context.CancelFunc)

func (*ContextAdapter) WithTimeoutArgsForCall added in v0.22.0

func (fake *ContextAdapter) WithTimeoutArgsForCall(i int) (context.Context, time.Duration)

func (*ContextAdapter) WithTimeoutCallCount added in v0.22.0

func (fake *ContextAdapter) WithTimeoutCallCount() int

func (*ContextAdapter) WithTimeoutReturns added in v0.22.0

func (fake *ContextAdapter) WithTimeoutReturns(result1 context.Context, result2 context.CancelFunc)

func (*ContextAdapter) WithTimeoutReturnsOnCall added in v0.22.0

func (fake *ContextAdapter) WithTimeoutReturnsOnCall(i int, result1 context.Context, result2 context.CancelFunc)

type ErrorResponse added in v0.17.0

type ErrorResponse struct {
	InternalServerErrorStub func(http.ResponseWriter, error, string, string)

	BadRequestStub func(http.ResponseWriter, error, string, string)

	ForbiddenStub func(http.ResponseWriter, error, string, string)

	UnauthorizedStub func(http.ResponseWriter, error, string, string)
	// contains filtered or unexported fields
}

func (*ErrorResponse) BadRequest added in v0.17.0

func (fake *ErrorResponse) BadRequest(arg1 http.ResponseWriter, arg2 error, arg3 string, arg4 string)

func (*ErrorResponse) BadRequestArgsForCall added in v0.17.0

func (fake *ErrorResponse) BadRequestArgsForCall(i int) (http.ResponseWriter, error, string, string)

func (*ErrorResponse) BadRequestCallCount added in v0.17.0

func (fake *ErrorResponse) BadRequestCallCount() int

func (*ErrorResponse) Forbidden added in v0.17.0

func (fake *ErrorResponse) Forbidden(arg1 http.ResponseWriter, arg2 error, arg3 string, arg4 string)

func (*ErrorResponse) ForbiddenArgsForCall added in v0.17.0

func (fake *ErrorResponse) ForbiddenArgsForCall(i int) (http.ResponseWriter, error, string, string)

func (*ErrorResponse) ForbiddenCallCount added in v0.17.0

func (fake *ErrorResponse) ForbiddenCallCount() int

func (*ErrorResponse) InternalServerError added in v0.17.0

func (fake *ErrorResponse) InternalServerError(arg1 http.ResponseWriter, arg2 error, arg3 string, arg4 string)

func (*ErrorResponse) InternalServerErrorArgsForCall added in v0.17.0

func (fake *ErrorResponse) InternalServerErrorArgsForCall(i int) (http.ResponseWriter, error, string, string)

func (*ErrorResponse) InternalServerErrorCallCount added in v0.17.0

func (fake *ErrorResponse) InternalServerErrorCallCount() int

func (*ErrorResponse) Invocations added in v0.17.0

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

func (*ErrorResponse) Unauthorized added in v0.17.0

func (fake *ErrorResponse) Unauthorized(arg1 http.ResponseWriter, arg2 error, arg3 string, arg4 string)

func (*ErrorResponse) UnauthorizedArgsForCall added in v0.17.0

func (fake *ErrorResponse) UnauthorizedArgsForCall(i int) (http.ResponseWriter, error, string, string)

func (*ErrorResponse) UnauthorizedCallCount added in v0.17.0

func (fake *ErrorResponse) UnauthorizedCallCount() int

type HTTPHandler

type HTTPHandler struct {
	ServeHTTPStub func(http.ResponseWriter, *http.Request)
	// contains filtered or unexported fields
}

func (*HTTPHandler) Invocations

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

func (*HTTPHandler) ServeHTTP

func (fake *HTTPHandler) ServeHTTP(arg1 http.ResponseWriter, arg2 *http.Request)

func (*HTTPHandler) ServeHTTPArgsForCall

func (fake *HTTPHandler) ServeHTTPArgsForCall(i int) (http.ResponseWriter, *http.Request)

func (*HTTPHandler) ServeHTTPCallCount

func (fake *HTTPHandler) ServeHTTPCallCount() int

type MetricsSender added in v0.17.0

type MetricsSender struct {
	SendDurationStub func(string, time.Duration)

	IncrementCounterStub func(string)
	// contains filtered or unexported fields
}

func (*MetricsSender) IncrementCounter added in v0.17.0

func (fake *MetricsSender) IncrementCounter(arg1 string)

func (*MetricsSender) IncrementCounterArgsForCall added in v0.17.0

func (fake *MetricsSender) IncrementCounterArgsForCall(i int) string

func (*MetricsSender) IncrementCounterCallCount added in v0.17.0

func (fake *MetricsSender) IncrementCounterCallCount() int

func (*MetricsSender) Invocations added in v0.17.0

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

func (*MetricsSender) SendDuration added in v0.17.0

func (fake *MetricsSender) SendDuration(arg1 string, arg2 time.Duration)

func (*MetricsSender) SendDurationArgsForCall added in v0.17.0

func (fake *MetricsSender) SendDurationArgsForCall(i int) (string, time.Duration)

func (*MetricsSender) SendDurationCallCount added in v0.17.0

func (fake *MetricsSender) SendDurationCallCount() int

type PolicyCleaner

type PolicyCleaner struct {
	DeleteStalePoliciesStub func() ([]models.Policy, error)
	// contains filtered or unexported fields
}

func (*PolicyCleaner) DeleteStalePolicies

func (fake *PolicyCleaner) DeleteStalePolicies() ([]models.Policy, error)

func (*PolicyCleaner) DeleteStalePoliciesCallCount

func (fake *PolicyCleaner) DeleteStalePoliciesCallCount() int

func (*PolicyCleaner) DeleteStalePoliciesReturns

func (fake *PolicyCleaner) DeleteStalePoliciesReturns(result1 []models.Policy, result2 error)

func (*PolicyCleaner) DeleteStalePoliciesReturnsOnCall added in v0.21.0

func (fake *PolicyCleaner) DeleteStalePoliciesReturnsOnCall(i int, result1 []models.Policy, result2 error)

func (*PolicyCleaner) Invocations

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

type PolicyFilter

type PolicyFilter struct {
	FilterPoliciesStub func(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)
	// contains filtered or unexported fields
}

func (*PolicyFilter) FilterPolicies

func (fake *PolicyFilter) FilterPolicies(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)

func (*PolicyFilter) FilterPoliciesArgsForCall

func (fake *PolicyFilter) FilterPoliciesArgsForCall(i int) ([]models.Policy, uaa_client.CheckTokenResponse)

func (*PolicyFilter) FilterPoliciesCallCount

func (fake *PolicyFilter) FilterPoliciesCallCount() int

func (*PolicyFilter) FilterPoliciesReturns

func (fake *PolicyFilter) FilterPoliciesReturns(result1 []models.Policy, result2 error)

func (*PolicyFilter) FilterPoliciesReturnsOnCall added in v0.21.0

func (fake *PolicyFilter) FilterPoliciesReturnsOnCall(i int, result1 []models.Policy, result2 error)

func (*PolicyFilter) Invocations

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

type PolicyGuard

type PolicyGuard struct {
	CheckAccessStub func(policies []models.Policy, tokenData uaa_client.CheckTokenResponse) (bool, error)
	// contains filtered or unexported fields
}

func (*PolicyGuard) CheckAccess

func (fake *PolicyGuard) CheckAccess(policies []models.Policy, tokenData uaa_client.CheckTokenResponse) (bool, error)

func (*PolicyGuard) CheckAccessArgsForCall

func (fake *PolicyGuard) CheckAccessArgsForCall(i int) ([]models.Policy, uaa_client.CheckTokenResponse)

func (*PolicyGuard) CheckAccessCallCount

func (fake *PolicyGuard) CheckAccessCallCount() int

func (*PolicyGuard) CheckAccessReturns

func (fake *PolicyGuard) CheckAccessReturns(result1 bool, result2 error)

func (*PolicyGuard) CheckAccessReturnsOnCall added in v0.21.0

func (fake *PolicyGuard) CheckAccessReturnsOnCall(i int, result1 bool, result2 error)

func (*PolicyGuard) Invocations

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

type Store

type Store struct {
	AllStub func() ([]models.Policy, error)

	CreateStub func([]models.Policy) error

	DeleteStub func([]models.Policy) error

	TagsStub func() ([]models.Tag, error)

	ByGuidsStub func([]string, []string) ([]models.Policy, error)
	// contains filtered or unexported fields
}

func (*Store) All

func (fake *Store) All() ([]models.Policy, error)

func (*Store) AllCallCount

func (fake *Store) AllCallCount() int

func (*Store) AllReturns

func (fake *Store) AllReturns(result1 []models.Policy, result2 error)

func (*Store) AllReturnsOnCall added in v0.21.0

func (fake *Store) AllReturnsOnCall(i int, result1 []models.Policy, result2 error)

func (*Store) ByGuids added in v0.17.0

func (fake *Store) ByGuids(arg1 []string, arg2 []string) ([]models.Policy, error)

func (*Store) ByGuidsArgsForCall added in v0.17.0

func (fake *Store) ByGuidsArgsForCall(i int) ([]string, []string)

func (*Store) ByGuidsCallCount added in v0.17.0

func (fake *Store) ByGuidsCallCount() int

func (*Store) ByGuidsReturns added in v0.17.0

func (fake *Store) ByGuidsReturns(result1 []models.Policy, result2 error)

func (*Store) ByGuidsReturnsOnCall added in v0.21.0

func (fake *Store) ByGuidsReturnsOnCall(i int, result1 []models.Policy, result2 error)

func (*Store) Create

func (fake *Store) Create(arg1 []models.Policy) error

func (*Store) CreateArgsForCall

func (fake *Store) CreateArgsForCall(i int) []models.Policy

func (*Store) CreateCallCount

func (fake *Store) CreateCallCount() int

func (*Store) CreateReturns

func (fake *Store) CreateReturns(result1 error)

func (*Store) CreateReturnsOnCall added in v0.21.0

func (fake *Store) CreateReturnsOnCall(i int, result1 error)

func (*Store) Delete

func (fake *Store) Delete(arg1 []models.Policy) error

func (*Store) DeleteArgsForCall

func (fake *Store) DeleteArgsForCall(i int) []models.Policy

func (*Store) DeleteCallCount

func (fake *Store) DeleteCallCount() int

func (*Store) DeleteReturns

func (fake *Store) DeleteReturns(result1 error)

func (*Store) DeleteReturnsOnCall added in v0.21.0

func (fake *Store) DeleteReturnsOnCall(i int, result1 error)

func (*Store) Invocations

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

func (*Store) Tags

func (fake *Store) Tags() ([]models.Tag, error)

func (*Store) TagsCallCount

func (fake *Store) TagsCallCount() int

func (*Store) TagsReturns

func (fake *Store) TagsReturns(result1 []models.Tag, result2 error)

func (*Store) TagsReturnsOnCall added in v0.21.0

func (fake *Store) TagsReturnsOnCall(i int, result1 []models.Tag, result2 error)

type UAAClient

type UAAClient struct {
	GetTokenStub func() (string, error)

	CheckTokenStub func(string) (uaa_client.CheckTokenResponse, error)
	// contains filtered or unexported fields
}

func (*UAAClient) CheckToken

func (fake *UAAClient) CheckToken(arg1 string) (uaa_client.CheckTokenResponse, error)

func (*UAAClient) CheckTokenArgsForCall

func (fake *UAAClient) CheckTokenArgsForCall(i int) string

func (*UAAClient) CheckTokenCallCount

func (fake *UAAClient) CheckTokenCallCount() int

func (*UAAClient) CheckTokenReturns

func (fake *UAAClient) CheckTokenReturns(result1 uaa_client.CheckTokenResponse, result2 error)

func (*UAAClient) CheckTokenReturnsOnCall added in v0.21.0

func (fake *UAAClient) CheckTokenReturnsOnCall(i int, result1 uaa_client.CheckTokenResponse, result2 error)

func (*UAAClient) GetToken

func (fake *UAAClient) GetToken() (string, error)

func (*UAAClient) GetTokenCallCount

func (fake *UAAClient) GetTokenCallCount() int

func (*UAAClient) GetTokenReturns

func (fake *UAAClient) GetTokenReturns(result1 string, result2 error)

func (*UAAClient) GetTokenReturnsOnCall added in v0.21.0

func (fake *UAAClient) GetTokenReturnsOnCall(i int, result1 string, result2 error)

func (*UAAClient) Invocations

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

type Validator

type Validator struct {
	ValidatePoliciesStub func(policies []models.Policy) error
	// contains filtered or unexported fields
}

func (*Validator) Invocations

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

func (*Validator) ValidatePolicies

func (fake *Validator) ValidatePolicies(policies []models.Policy) error

func (*Validator) ValidatePoliciesArgsForCall

func (fake *Validator) ValidatePoliciesArgsForCall(i int) []models.Policy

func (*Validator) ValidatePoliciesCallCount

func (fake *Validator) ValidatePoliciesCallCount() int

func (*Validator) ValidatePoliciesReturns

func (fake *Validator) ValidatePoliciesReturns(result1 error)

func (*Validator) ValidatePoliciesReturnsOnCall added in v0.21.0

func (fake *Validator) ValidatePoliciesReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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