fakes

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

This file was generated by counterfeiter

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.

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.

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 CCClient

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

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

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

	GetUserSpaceStub func(token, userGUID string, spaces api.Space) (*api.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

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

func (*CCClient) GetSpace

func (fake *CCClient) GetSpace(token string, spaceGUID string) (*api.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

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

func (*CCClient) GetSpaceReturns

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

func (*CCClient) GetSpaceReturnsOnCall

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

func (*CCClient) GetUserSpace

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

func (*CCClient) GetUserSpaceArgsForCall

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

func (*CCClient) GetUserSpaceCallCount

func (fake *CCClient) GetUserSpaceCallCount() int

func (*CCClient) GetUserSpaceReturns

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

func (*CCClient) GetUserSpaceReturnsOnCall

func (fake *CCClient) GetUserSpaceReturnsOnCall(i int, result1 *api.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

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

func (*CCClient) Invocations

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

type ContextAdapter

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

func (*ContextAdapter) Invocations

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

func (*ContextAdapter) WithTimeout

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

func (*ContextAdapter) WithTimeoutArgsForCall

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

func (*ContextAdapter) WithTimeoutCallCount

func (fake *ContextAdapter) WithTimeoutCallCount() int

func (*ContextAdapter) WithTimeoutReturns

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

func (*ContextAdapter) WithTimeoutReturnsOnCall

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

type DataStore

type DataStore struct {
	AllStub func() ([]store.Policy, error)

	CreateStub func([]store.Policy) error

	DeleteStub func([]store.Policy) error

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

	ByGuidsStub func([]string, []string) ([]store.Policy, error)

	CheckDatabaseStub func() error
	// contains filtered or unexported fields
}

func (*DataStore) All

func (fake *DataStore) All() ([]store.Policy, error)

func (*DataStore) AllCallCount

func (fake *DataStore) AllCallCount() int

func (*DataStore) AllReturns

func (fake *DataStore) AllReturns(result1 []store.Policy, result2 error)

func (*DataStore) AllReturnsOnCall

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

func (*DataStore) ByGuids

func (fake *DataStore) ByGuids(arg1 []string, arg2 []string) ([]store.Policy, error)

func (*DataStore) ByGuidsArgsForCall

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

func (*DataStore) ByGuidsCallCount

func (fake *DataStore) ByGuidsCallCount() int

func (*DataStore) ByGuidsReturns

func (fake *DataStore) ByGuidsReturns(result1 []store.Policy, result2 error)

func (*DataStore) ByGuidsReturnsOnCall

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

func (*DataStore) CheckDatabase

func (fake *DataStore) CheckDatabase() error

func (*DataStore) CheckDatabaseCallCount

func (fake *DataStore) CheckDatabaseCallCount() int

func (*DataStore) CheckDatabaseReturns

func (fake *DataStore) CheckDatabaseReturns(result1 error)

func (*DataStore) CheckDatabaseReturnsOnCall

func (fake *DataStore) CheckDatabaseReturnsOnCall(i int, result1 error)

func (*DataStore) Create

func (fake *DataStore) Create(arg1 []store.Policy) error

func (*DataStore) CreateArgsForCall

func (fake *DataStore) CreateArgsForCall(i int) []store.Policy

func (*DataStore) CreateCallCount

func (fake *DataStore) CreateCallCount() int

func (*DataStore) CreateReturns

func (fake *DataStore) CreateReturns(result1 error)

func (*DataStore) CreateReturnsOnCall

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

func (*DataStore) Delete

func (fake *DataStore) Delete(arg1 []store.Policy) error

func (*DataStore) DeleteArgsForCall

func (fake *DataStore) DeleteArgsForCall(i int) []store.Policy

func (*DataStore) DeleteCallCount

func (fake *DataStore) DeleteCallCount() int

func (*DataStore) DeleteReturns

func (fake *DataStore) DeleteReturns(result1 error)

func (*DataStore) DeleteReturnsOnCall

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

func (*DataStore) Invocations

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

func (*DataStore) Tags

func (fake *DataStore) Tags() ([]store.Tag, error)

func (*DataStore) TagsCallCount

func (fake *DataStore) TagsCallCount() int

func (*DataStore) TagsReturns

func (fake *DataStore) TagsReturns(result1 []store.Tag, result2 error)

func (*DataStore) TagsReturnsOnCall

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

type ErrorResponse

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

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

	NotAcceptableStub func(lager.Logger, http.ResponseWriter, error, string)

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

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

func (*ErrorResponse) BadRequest

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

func (*ErrorResponse) BadRequestArgsForCall

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

func (*ErrorResponse) BadRequestCallCount

func (fake *ErrorResponse) BadRequestCallCount() int

func (*ErrorResponse) Forbidden

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

func (*ErrorResponse) ForbiddenArgsForCall

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

func (*ErrorResponse) ForbiddenCallCount

func (fake *ErrorResponse) ForbiddenCallCount() int

func (*ErrorResponse) InternalServerError

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

func (*ErrorResponse) InternalServerErrorArgsForCall

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

func (*ErrorResponse) InternalServerErrorCallCount

func (fake *ErrorResponse) InternalServerErrorCallCount() int

func (*ErrorResponse) Invocations

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

func (*ErrorResponse) NotAcceptable

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

func (*ErrorResponse) NotAcceptableArgsForCall

func (fake *ErrorResponse) NotAcceptableArgsForCall(i int) (lager.Logger, http.ResponseWriter, error, string)

func (*ErrorResponse) NotAcceptableCallCount

func (fake *ErrorResponse) NotAcceptableCallCount() int

func (*ErrorResponse) Unauthorized

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

func (*ErrorResponse) UnauthorizedArgsForCall

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

func (*ErrorResponse) UnauthorizedCallCount

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 PolicyCleaner

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

func (*PolicyCleaner) DeleteStalePolicies

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

func (*PolicyCleaner) DeleteStalePoliciesCallCount

func (fake *PolicyCleaner) DeleteStalePoliciesCallCount() int

func (*PolicyCleaner) DeleteStalePoliciesReturns

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

func (*PolicyCleaner) DeleteStalePoliciesReturnsOnCall

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

func (*PolicyCleaner) Invocations

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

type PolicyFilter

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

func (*PolicyFilter) FilterPolicies

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

func (*PolicyFilter) FilterPoliciesArgsForCall

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

func (*PolicyFilter) FilterPoliciesCallCount

func (fake *PolicyFilter) FilterPoliciesCallCount() int

func (*PolicyFilter) FilterPoliciesReturns

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

func (*PolicyFilter) FilterPoliciesReturnsOnCall

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

func (*PolicyFilter) Invocations

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

type PolicyGuard

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

func (*PolicyGuard) CheckAccess

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

func (*PolicyGuard) CheckAccessArgsForCall

func (fake *PolicyGuard) CheckAccessArgsForCall(i int) ([]store.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

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

func (*PolicyGuard) Invocations

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

type QuotaGuard

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

func (*QuotaGuard) CheckAccess

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

func (*QuotaGuard) CheckAccessArgsForCall

func (fake *QuotaGuard) CheckAccessArgsForCall(i int) ([]store.Policy, uaa_client.CheckTokenResponse)

func (*QuotaGuard) CheckAccessCallCount

func (fake *QuotaGuard) CheckAccessCallCount() int

func (*QuotaGuard) CheckAccessReturns

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

func (*QuotaGuard) CheckAccessReturnsOnCall

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

func (*QuotaGuard) Invocations

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

type RataAdapter

type RataAdapter struct {
	ParamStub func(*http.Request, string) string
	// contains filtered or unexported fields
}

func (*RataAdapter) Invocations

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

func (*RataAdapter) Param

func (fake *RataAdapter) Param(arg1 *http.Request, arg2 string) string

func (*RataAdapter) ParamArgsForCall

func (fake *RataAdapter) ParamArgsForCall(i int) (*http.Request, string)

func (*RataAdapter) ParamCallCount

func (fake *RataAdapter) ParamCallCount() int

func (*RataAdapter) ParamReturns

func (fake *RataAdapter) ParamReturns(result1 string)

func (*RataAdapter) ParamReturnsOnCall

func (fake *RataAdapter) ParamReturnsOnCall(i int, result1 string)

type RataParam

type RataParam struct {
	ParamStub func(*http.Request, string) string
	// contains filtered or unexported fields
}

func (*RataParam) Invocations

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

func (*RataParam) Param

func (fake *RataParam) Param(arg1 *http.Request, arg2 string) string

func (*RataParam) ParamArgsForCall

func (fake *RataParam) ParamArgsForCall(i int) (*http.Request, string)

func (*RataParam) ParamCallCount

func (fake *RataParam) ParamCallCount() int

func (*RataParam) ParamReturns

func (fake *RataParam) ParamReturns(result1 string)

func (*RataParam) ParamReturnsOnCall

func (fake *RataParam) ParamReturnsOnCall(i int, result1 string)

type Store

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

	CreateStub func([]api.Policy) error

	DeleteStub func([]api.Policy) error

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

	ByGuidsStub func([]string, []string) ([]api.Policy, error)

	CheckDatabaseStub func() error
	// contains filtered or unexported fields
}

func (*Store) All

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

func (*Store) AllCallCount

func (fake *Store) AllCallCount() int

func (*Store) AllReturns

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

func (*Store) AllReturnsOnCall

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

func (*Store) ByGuids

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

func (*Store) ByGuidsArgsForCall

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

func (*Store) ByGuidsCallCount

func (fake *Store) ByGuidsCallCount() int

func (*Store) ByGuidsReturns

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

func (*Store) ByGuidsReturnsOnCall

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

func (*Store) CheckDatabase

func (fake *Store) CheckDatabase() error

func (*Store) CheckDatabaseCallCount

func (fake *Store) CheckDatabaseCallCount() int

func (*Store) CheckDatabaseReturns

func (fake *Store) CheckDatabaseReturns(result1 error)

func (*Store) CheckDatabaseReturnsOnCall

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

func (*Store) Create

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

func (*Store) CreateArgsForCall

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

func (*Store) CreateCallCount

func (fake *Store) CreateCallCount() int

func (*Store) CreateReturns

func (fake *Store) CreateReturns(result1 error)

func (*Store) CreateReturnsOnCall

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

func (*Store) Delete

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

func (*Store) DeleteArgsForCall

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

func (*Store) DeleteCallCount

func (fake *Store) DeleteCallCount() int

func (*Store) DeleteReturns

func (fake *Store) DeleteReturns(result1 error)

func (*Store) DeleteReturnsOnCall

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() ([]api.Tag, error)

func (*Store) TagsCallCount

func (fake *Store) TagsCallCount() int

func (*Store) TagsReturns

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

func (*Store) TagsReturnsOnCall

func (fake *Store) TagsReturnsOnCall(i int, result1 []api.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

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

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

func (*UAAClient) Invocations

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

Jump to

Keyboard shortcuts

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