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
Index ¶
- type AuthenticatedHandler
- func (fake *AuthenticatedHandler) Invocations() map[string][][]interface{}
- func (fake *AuthenticatedHandler) ServeHTTP(response http.ResponseWriter, request *http.Request, ...)
- func (fake *AuthenticatedHandler) ServeHTTPArgsForCall(i int) (http.ResponseWriter, *http.Request, uaa_client.CheckTokenResponse)
- func (fake *AuthenticatedHandler) ServeHTTPCallCount() int
- type CCClient
- func (fake *CCClient) GetAppSpaces(token string, appGUIDs []string) (map[string]string, error)
- func (fake *CCClient) GetAppSpacesArgsForCall(i int) (string, []string)
- func (fake *CCClient) GetAppSpacesCallCount() int
- func (fake *CCClient) GetAppSpacesReturns(result1 map[string]string, result2 error)
- func (fake *CCClient) GetSpace(token string, spaceGUID string) (*models.Space, error)
- func (fake *CCClient) GetSpaceArgsForCall(i int) (string, string)
- func (fake *CCClient) GetSpaceCallCount() int
- func (fake *CCClient) GetSpaceGUIDs(token string, appGUIDs []string) ([]string, error)
- func (fake *CCClient) GetSpaceGUIDsArgsForCall(i int) (string, []string)
- func (fake *CCClient) GetSpaceGUIDsCallCount() int
- func (fake *CCClient) GetSpaceGUIDsReturns(result1 []string, result2 error)
- func (fake *CCClient) GetSpaceReturns(result1 *models.Space, result2 error)
- func (fake *CCClient) GetUserSpace(token string, userGUID string, spaces models.Space) (*models.Space, error)
- func (fake *CCClient) GetUserSpaceArgsForCall(i int) (string, string, models.Space)
- func (fake *CCClient) GetUserSpaceCallCount() int
- func (fake *CCClient) GetUserSpaceReturns(result1 *models.Space, result2 error)
- func (fake *CCClient) GetUserSpaces(token string, userGUID string) (map[string]struct{}, error)
- func (fake *CCClient) GetUserSpacesArgsForCall(i int) (string, string)
- func (fake *CCClient) GetUserSpacesCallCount() int
- func (fake *CCClient) GetUserSpacesReturns(result1 map[string]struct{}, result2 error)
- func (fake *CCClient) Invocations() map[string][][]interface{}
- type HTTPHandler
- type PolicyCleaner
- type PolicyFilter
- func (fake *PolicyFilter) FilterPolicies(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)
- func (fake *PolicyFilter) FilterPoliciesArgsForCall(i int) ([]models.Policy, uaa_client.CheckTokenResponse)
- func (fake *PolicyFilter) FilterPoliciesCallCount() int
- func (fake *PolicyFilter) FilterPoliciesReturns(result1 []models.Policy, result2 error)
- func (fake *PolicyFilter) Invocations() map[string][][]interface{}
- type PolicyGuard
- func (fake *PolicyGuard) CheckAccess(policies []models.Policy, tokenData uaa_client.CheckTokenResponse) (bool, error)
- func (fake *PolicyGuard) CheckAccessArgsForCall(i int) ([]models.Policy, uaa_client.CheckTokenResponse)
- func (fake *PolicyGuard) CheckAccessCallCount() int
- func (fake *PolicyGuard) CheckAccessReturns(result1 bool, result2 error)
- func (fake *PolicyGuard) Invocations() map[string][][]interface{}
- type Store
- func (fake *Store) All() ([]models.Policy, error)
- func (fake *Store) AllCallCount() int
- func (fake *Store) AllReturns(result1 []models.Policy, result2 error)
- func (fake *Store) Create(arg1 []models.Policy) error
- func (fake *Store) CreateArgsForCall(i int) []models.Policy
- func (fake *Store) CreateCallCount() int
- func (fake *Store) CreateReturns(result1 error)
- func (fake *Store) Delete(arg1 []models.Policy) error
- func (fake *Store) DeleteArgsForCall(i int) []models.Policy
- func (fake *Store) DeleteCallCount() int
- func (fake *Store) DeleteReturns(result1 error)
- func (fake *Store) Invocations() map[string][][]interface{}
- func (fake *Store) Tags() ([]models.Tag, error)
- func (fake *Store) TagsCallCount() int
- func (fake *Store) TagsReturns(result1 []models.Tag, result2 error)
- type UAAClient
- func (fake *UAAClient) CheckToken(arg1 string) (uaa_client.CheckTokenResponse, error)
- func (fake *UAAClient) CheckTokenArgsForCall(i int) string
- func (fake *UAAClient) CheckTokenCallCount() int
- func (fake *UAAClient) CheckTokenReturns(result1 uaa_client.CheckTokenResponse, result2 error)
- func (fake *UAAClient) GetToken() (string, error)
- func (fake *UAAClient) GetTokenCallCount() int
- func (fake *UAAClient) GetTokenReturns(result1 string, result2 error)
- func (fake *UAAClient) Invocations() map[string][][]interface{}
- type Validator
- func (fake *Validator) Invocations() map[string][][]interface{}
- func (fake *Validator) ValidatePolicies(policies []models.Policy) error
- func (fake *Validator) ValidatePoliciesArgsForCall(i int) []models.Policy
- func (fake *Validator) ValidatePoliciesCallCount() int
- func (fake *Validator) ValidatePoliciesReturns(result1 error)
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 (fake *AuthenticatedHandler) ServeHTTPArgsForCall(i int) (http.ResponseWriter, *http.Request, uaa_client.CheckTokenResponse)
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 (*CCClient) GetAppSpacesArgsForCall ¶
func (*CCClient) GetAppSpacesCallCount ¶
func (*CCClient) GetAppSpacesReturns ¶
func (*CCClient) GetSpaceArgsForCall ¶
func (*CCClient) GetSpaceCallCount ¶
func (*CCClient) GetSpaceGUIDs ¶
func (*CCClient) GetSpaceGUIDsArgsForCall ¶
func (*CCClient) GetSpaceGUIDsCallCount ¶
func (*CCClient) GetSpaceGUIDsReturns ¶
func (*CCClient) GetSpaceReturns ¶
func (*CCClient) GetUserSpace ¶
func (*CCClient) GetUserSpaceArgsForCall ¶
func (*CCClient) GetUserSpaceCallCount ¶
func (*CCClient) GetUserSpaceReturns ¶
func (*CCClient) GetUserSpaces ¶
func (*CCClient) GetUserSpacesArgsForCall ¶
func (*CCClient) GetUserSpacesCallCount ¶
func (*CCClient) GetUserSpacesReturns ¶
func (*CCClient) Invocations ¶
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() ([]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) 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) 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) 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) // contains filtered or unexported fields }
func (*Store) AllCallCount ¶
func (*Store) CreateCallCount ¶
func (*Store) CreateReturns ¶
func (*Store) DeleteCallCount ¶
func (*Store) DeleteReturns ¶
func (*Store) Invocations ¶
func (*Store) TagsCallCount ¶
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 (*UAAClient) CheckTokenCallCount ¶
func (*UAAClient) CheckTokenReturns ¶
func (fake *UAAClient) CheckTokenReturns(result1 uaa_client.CheckTokenResponse, result2 error)
func (*UAAClient) GetTokenCallCount ¶
func (*UAAClient) GetTokenReturns ¶
func (*UAAClient) Invocations ¶
type Validator ¶
type Validator struct { ValidatePoliciesStub func(policies []models.Policy) error // contains filtered or unexported fields }
func (*Validator) Invocations ¶
func (*Validator) ValidatePolicies ¶
func (*Validator) ValidatePoliciesArgsForCall ¶
func (*Validator) ValidatePoliciesCallCount ¶
func (*Validator) ValidatePoliciesReturns ¶
Click to show internal directories.
Click to hide internal directories.