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 ¶
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) GetAllAppGUIDs(token string) (map[string]interface{}, error)
- func (fake *CCClient) GetAllAppGUIDsArgsForCall(i int) string
- func (fake *CCClient) GetAllAppGUIDsCallCount() int
- func (fake *CCClient) GetAllAppGUIDsReturns(result1 map[string]interface{}, result2 error)
- func (fake *CCClient) Invocations() map[string][][]interface{}
- type Db
- func (fake *Db) Beginx() (*sqlx.Tx, error)
- func (fake *Db) BeginxCallCount() int
- func (fake *Db) BeginxReturns(result1 *sqlx.Tx, result2 error)
- func (fake *Db) DriverName() string
- func (fake *Db) DriverNameCallCount() int
- func (fake *Db) DriverNameReturns(result1 string)
- func (fake *Db) Exec(query string, args ...interface{}) (sql.Result, error)
- func (fake *Db) ExecArgsForCall(i int) (string, []interface{})
- func (fake *Db) ExecCallCount() int
- func (fake *Db) ExecReturns(result1 sql.Result, result2 error)
- func (fake *Db) Get(dest interface{}, query string, args ...interface{}) error
- func (fake *Db) GetArgsForCall(i int) (interface{}, string, []interface{})
- func (fake *Db) GetCallCount() int
- func (fake *Db) GetReturns(result1 error)
- func (fake *Db) Invocations() map[string][][]interface{}
- func (fake *Db) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (fake *Db) NamedExecArgsForCall(i int) (string, interface{})
- func (fake *Db) NamedExecCallCount() int
- func (fake *Db) NamedExecReturns(result1 sql.Result, result2 error)
- func (fake *Db) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (fake *Db) QueryArgsForCall(i int) (string, []interface{})
- func (fake *Db) QueryCallCount() int
- func (fake *Db) QueryReturns(result1 *sql.Rows, result2 error)
- func (fake *Db) QueryRow(query string, args ...interface{}) *sql.Row
- func (fake *Db) QueryRowArgsForCall(i int) (string, []interface{})
- func (fake *Db) QueryRowCallCount() int
- func (fake *Db) QueryRowReturns(result1 *sql.Row)
- func (fake *Db) Select(dest interface{}, query string, args ...interface{}) error
- func (fake *Db) SelectArgsForCall(i int) (interface{}, string, []interface{})
- func (fake *Db) SelectCallCount() int
- func (fake *Db) SelectReturns(result1 error)
- type DestinationRepo
- func (fake *DestinationRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
- func (fake *DestinationRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
- func (fake *DestinationRepo) CountWhereGroupIDCallCount() int
- func (fake *DestinationRepo) CountWhereGroupIDReturns(result1 int, result2 error)
- func (fake *DestinationRepo) Create(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
- func (fake *DestinationRepo) CreateArgsForCall(i int) (store.Transaction, int, int, string)
- func (fake *DestinationRepo) CreateCallCount() int
- func (fake *DestinationRepo) CreateReturns(result1 int, result2 error)
- func (fake *DestinationRepo) Delete(arg1 store.Transaction, arg2 int) error
- func (fake *DestinationRepo) DeleteArgsForCall(i int) (store.Transaction, int)
- func (fake *DestinationRepo) DeleteCallCount() int
- func (fake *DestinationRepo) DeleteReturns(result1 error)
- func (fake *DestinationRepo) GetID(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
- func (fake *DestinationRepo) GetIDArgsForCall(i int) (store.Transaction, int, int, string)
- func (fake *DestinationRepo) GetIDCallCount() int
- func (fake *DestinationRepo) GetIDReturns(result1 int, result2 error)
- func (fake *DestinationRepo) Invocations() map[string][][]interface{}
- type GroupRepo
- func (fake *GroupRepo) Create(arg1 store.Transaction, arg2 string) (int, error)
- func (fake *GroupRepo) CreateArgsForCall(i int) (store.Transaction, string)
- func (fake *GroupRepo) CreateCallCount() int
- func (fake *GroupRepo) CreateReturns(result1 int, result2 error)
- func (fake *GroupRepo) Delete(arg1 store.Transaction, arg2 int) error
- func (fake *GroupRepo) DeleteArgsForCall(i int) (store.Transaction, int)
- func (fake *GroupRepo) DeleteCallCount() int
- func (fake *GroupRepo) DeleteReturns(result1 error)
- func (fake *GroupRepo) GetID(arg1 store.Transaction, arg2 string) (int, error)
- func (fake *GroupRepo) GetIDArgsForCall(i int) (store.Transaction, string)
- func (fake *GroupRepo) GetIDCallCount() int
- func (fake *GroupRepo) GetIDReturns(result1 int, result2 error)
- func (fake *GroupRepo) Invocations() map[string][][]interface{}
- type HTTPClient
- func (fake *HTTPClient) Do(arg1 *http.Request) (*http.Response, error)
- func (fake *HTTPClient) DoArgsForCall(i int) *http.Request
- func (fake *HTTPClient) DoCallCount() int
- func (fake *HTTPClient) DoReturns(result1 *http.Response, result2 error)
- func (fake *HTTPClient) Invocations() map[string][][]interface{}
- type HTTPHandler
- 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 PolicyFilterCCClient
- func (fake *PolicyFilterCCClient) GetAppSpaces(token string, appGUIDs []string) (map[string]string, error)
- func (fake *PolicyFilterCCClient) GetAppSpacesArgsForCall(i int) (string, []string)
- func (fake *PolicyFilterCCClient) GetAppSpacesCallCount() int
- func (fake *PolicyFilterCCClient) GetAppSpacesReturns(result1 map[string]string, result2 error)
- func (fake *PolicyFilterCCClient) GetUserSpaces(token string, userGUID string) (map[string]struct{}, error)
- func (fake *PolicyFilterCCClient) GetUserSpacesArgsForCall(i int) (string, string)
- func (fake *PolicyFilterCCClient) GetUserSpacesCallCount() int
- func (fake *PolicyFilterCCClient) GetUserSpacesReturns(result1 map[string]struct{}, result2 error)
- func (fake *PolicyFilterCCClient) 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 PolicyGuardCCClient
- func (fake *PolicyGuardCCClient) GetSpace(token string, spaceGUID string) (*models.Space, error)
- func (fake *PolicyGuardCCClient) GetSpaceArgsForCall(i int) (string, string)
- func (fake *PolicyGuardCCClient) GetSpaceCallCount() int
- func (fake *PolicyGuardCCClient) GetSpaceGUIDs(token string, appGUIDs []string) ([]string, error)
- func (fake *PolicyGuardCCClient) GetSpaceGUIDsArgsForCall(i int) (string, []string)
- func (fake *PolicyGuardCCClient) GetSpaceGUIDsCallCount() int
- func (fake *PolicyGuardCCClient) GetSpaceGUIDsReturns(result1 []string, result2 error)
- func (fake *PolicyGuardCCClient) GetSpaceReturns(result1 *models.Space, result2 error)
- func (fake *PolicyGuardCCClient) GetUserSpace(token string, userGUID string, spaces models.Space) (*models.Space, error)
- func (fake *PolicyGuardCCClient) GetUserSpaceArgsForCall(i int) (string, string, models.Space)
- func (fake *PolicyGuardCCClient) GetUserSpaceCallCount() int
- func (fake *PolicyGuardCCClient) GetUserSpaceReturns(result1 *models.Space, result2 error)
- func (fake *PolicyGuardCCClient) Invocations() map[string][][]interface{}
- type PolicyRepo
- func (fake *PolicyRepo) CountWhereDestinationID(arg1 store.Transaction, arg2 int) (int, error)
- func (fake *PolicyRepo) CountWhereDestinationIDArgsForCall(i int) (store.Transaction, int)
- func (fake *PolicyRepo) CountWhereDestinationIDCallCount() int
- func (fake *PolicyRepo) CountWhereDestinationIDReturns(result1 int, result2 error)
- func (fake *PolicyRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
- func (fake *PolicyRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
- func (fake *PolicyRepo) CountWhereGroupIDCallCount() int
- func (fake *PolicyRepo) CountWhereGroupIDReturns(result1 int, result2 error)
- func (fake *PolicyRepo) Create(arg1 store.Transaction, arg2 int, arg3 int) error
- func (fake *PolicyRepo) CreateArgsForCall(i int) (store.Transaction, int, int)
- func (fake *PolicyRepo) CreateCallCount() int
- func (fake *PolicyRepo) CreateReturns(result1 error)
- func (fake *PolicyRepo) Delete(arg1 store.Transaction, arg2 int, arg3 int) error
- func (fake *PolicyRepo) DeleteArgsForCall(i int) (store.Transaction, int, int)
- func (fake *PolicyRepo) DeleteCallCount() int
- func (fake *PolicyRepo) DeleteReturns(result1 error)
- func (fake *PolicyRepo) Invocations() map[string][][]interface{}
- type SqlResult
- func (fake *SqlResult) Invocations() map[string][][]interface{}
- func (fake *SqlResult) LastInsertId() (int64, error)
- func (fake *SqlResult) LastInsertIdCallCount() int
- func (fake *SqlResult) LastInsertIdReturns(result1 int64, result2 error)
- func (fake *SqlResult) RowsAffected() (int64, error)
- func (fake *SqlResult) RowsAffectedCallCount() int
- func (fake *SqlResult) RowsAffectedReturns(result1 int64, result2 error)
- 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
- type UAARequestClient
- func (fake *UAARequestClient) CheckToken(token string) (uaa_client.CheckTokenResponse, error)
- func (fake *UAARequestClient) CheckTokenArgsForCall(i int) string
- func (fake *UAARequestClient) CheckTokenCallCount() int
- func (fake *UAARequestClient) CheckTokenReturns(result1 uaa_client.CheckTokenResponse, result2 error)
- func (fake *UAARequestClient) 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)
- type WarrantClient
- func (fake *WarrantClient) GetToken(clientName string, clientSecret string) (string, error)
- func (fake *WarrantClient) GetTokenArgsForCall(i int) (string, string)
- func (fake *WarrantClient) GetTokenCallCount() int
- func (fake *WarrantClient) GetTokenReturns(result1 string, result2 error)
- func (fake *WarrantClient) Invocations() map[string][][]interface{}
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 ¶ added in v0.7.0
type CCClient struct { GetAllAppGUIDsStub func(token string) (map[string]interface{}, error) // contains filtered or unexported fields }
func (*CCClient) GetAllAppGUIDs ¶ added in v0.7.0
func (*CCClient) GetAllAppGUIDsArgsForCall ¶ added in v0.7.0
func (*CCClient) GetAllAppGUIDsCallCount ¶ added in v0.7.0
func (*CCClient) GetAllAppGUIDsReturns ¶ added in v0.7.0
func (*CCClient) Invocations ¶ added in v0.7.0
type Db ¶
type Db struct { BeginxStub func() (*sqlx.Tx, error) ExecStub func(query string, args ...interface{}) (sql.Result, error) NamedExecStub func(query string, arg interface{}) (sql.Result, error) GetStub func(dest interface{}, query string, args ...interface{}) error SelectStub func(dest interface{}, query string, args ...interface{}) error QueryRowStub func(query string, args ...interface{}) *sql.Row QueryStub func(query string, args ...interface{}) (*sql.Rows, error) DriverNameStub func() string // contains filtered or unexported fields }
func (*Db) BeginxCallCount ¶
func (*Db) DriverName ¶
func (*Db) DriverNameCallCount ¶
func (*Db) DriverNameReturns ¶
func (*Db) ExecArgsForCall ¶
func (*Db) ExecCallCount ¶
func (*Db) GetArgsForCall ¶
func (*Db) GetCallCount ¶
func (*Db) GetReturns ¶
func (*Db) Invocations ¶
func (*Db) NamedExecArgsForCall ¶
func (*Db) NamedExecCallCount ¶
func (*Db) QueryArgsForCall ¶
func (*Db) QueryCallCount ¶
func (*Db) QueryRowArgsForCall ¶
func (*Db) QueryRowCallCount ¶
func (*Db) QueryRowReturns ¶
func (*Db) SelectArgsForCall ¶
func (*Db) SelectCallCount ¶
func (*Db) SelectReturns ¶
type DestinationRepo ¶
type DestinationRepo struct { CreateStub func(store.Transaction, int, int, string) (int, error) DeleteStub func(store.Transaction, int) error GetIDStub func(store.Transaction, int, int, string) (int, error) CountWhereGroupIDStub func(store.Transaction, int) (int, error) // contains filtered or unexported fields }
func (*DestinationRepo) CountWhereGroupID ¶
func (fake *DestinationRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
func (*DestinationRepo) CountWhereGroupIDArgsForCall ¶
func (fake *DestinationRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
func (*DestinationRepo) CountWhereGroupIDCallCount ¶
func (fake *DestinationRepo) CountWhereGroupIDCallCount() int
func (*DestinationRepo) CountWhereGroupIDReturns ¶
func (fake *DestinationRepo) CountWhereGroupIDReturns(result1 int, result2 error)
func (*DestinationRepo) Create ¶
func (fake *DestinationRepo) Create(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
func (*DestinationRepo) CreateArgsForCall ¶
func (fake *DestinationRepo) CreateArgsForCall(i int) (store.Transaction, int, int, string)
func (*DestinationRepo) CreateCallCount ¶
func (fake *DestinationRepo) CreateCallCount() int
func (*DestinationRepo) CreateReturns ¶
func (fake *DestinationRepo) CreateReturns(result1 int, result2 error)
func (*DestinationRepo) Delete ¶
func (fake *DestinationRepo) Delete(arg1 store.Transaction, arg2 int) error
func (*DestinationRepo) DeleteArgsForCall ¶
func (fake *DestinationRepo) DeleteArgsForCall(i int) (store.Transaction, int)
func (*DestinationRepo) DeleteCallCount ¶
func (fake *DestinationRepo) DeleteCallCount() int
func (*DestinationRepo) DeleteReturns ¶
func (fake *DestinationRepo) DeleteReturns(result1 error)
func (*DestinationRepo) GetID ¶
func (fake *DestinationRepo) GetID(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
func (*DestinationRepo) GetIDArgsForCall ¶
func (fake *DestinationRepo) GetIDArgsForCall(i int) (store.Transaction, int, int, string)
func (*DestinationRepo) GetIDCallCount ¶
func (fake *DestinationRepo) GetIDCallCount() int
func (*DestinationRepo) GetIDReturns ¶
func (fake *DestinationRepo) GetIDReturns(result1 int, result2 error)
func (*DestinationRepo) Invocations ¶
func (fake *DestinationRepo) Invocations() map[string][][]interface{}
type GroupRepo ¶
type GroupRepo struct { CreateStub func(store.Transaction, string) (int, error) DeleteStub func(store.Transaction, int) error GetIDStub func(store.Transaction, string) (int, error) // contains filtered or unexported fields }
func (*GroupRepo) CreateArgsForCall ¶
func (fake *GroupRepo) CreateArgsForCall(i int) (store.Transaction, string)
func (*GroupRepo) CreateCallCount ¶
func (*GroupRepo) CreateReturns ¶
func (*GroupRepo) DeleteArgsForCall ¶
func (fake *GroupRepo) DeleteArgsForCall(i int) (store.Transaction, int)
func (*GroupRepo) DeleteCallCount ¶
func (*GroupRepo) DeleteReturns ¶
func (*GroupRepo) GetIDArgsForCall ¶
func (fake *GroupRepo) GetIDArgsForCall(i int) (store.Transaction, string)
func (*GroupRepo) GetIDCallCount ¶
func (*GroupRepo) GetIDReturns ¶
func (*GroupRepo) Invocations ¶
type HTTPClient ¶
type HTTPClient struct { DoStub func(*http.Request) (*http.Response, error) // contains filtered or unexported fields }
func (*HTTPClient) DoArgsForCall ¶
func (fake *HTTPClient) DoArgsForCall(i int) *http.Request
func (*HTTPClient) DoCallCount ¶
func (fake *HTTPClient) DoCallCount() int
func (*HTTPClient) DoReturns ¶
func (fake *HTTPClient) DoReturns(result1 *http.Response, result2 error)
func (*HTTPClient) Invocations ¶
func (fake *HTTPClient) Invocations() map[string][][]interface{}
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 PolicyFilter ¶ added in v0.13.0
type PolicyFilter struct { FilterPoliciesStub func(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error) // contains filtered or unexported fields }
func (*PolicyFilter) FilterPolicies ¶ added in v0.13.0
func (fake *PolicyFilter) FilterPolicies(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)
func (*PolicyFilter) FilterPoliciesArgsForCall ¶ added in v0.13.0
func (fake *PolicyFilter) FilterPoliciesArgsForCall(i int) ([]models.Policy, uaa_client.CheckTokenResponse)
func (*PolicyFilter) FilterPoliciesCallCount ¶ added in v0.13.0
func (fake *PolicyFilter) FilterPoliciesCallCount() int
func (*PolicyFilter) FilterPoliciesReturns ¶ added in v0.13.0
func (fake *PolicyFilter) FilterPoliciesReturns(result1 []models.Policy, result2 error)
func (*PolicyFilter) Invocations ¶ added in v0.13.0
func (fake *PolicyFilter) Invocations() map[string][][]interface{}
type PolicyFilterCCClient ¶ added in v0.13.0
type PolicyFilterCCClient struct { GetAppSpacesStub func(token string, appGUIDs []string) (map[string]string, error) GetUserSpacesStub func(token, userGUID string) (map[string]struct{}, error) // contains filtered or unexported fields }
func (*PolicyFilterCCClient) GetAppSpaces ¶ added in v0.13.0
func (*PolicyFilterCCClient) GetAppSpacesArgsForCall ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetAppSpacesArgsForCall(i int) (string, []string)
func (*PolicyFilterCCClient) GetAppSpacesCallCount ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetAppSpacesCallCount() int
func (*PolicyFilterCCClient) GetAppSpacesReturns ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetAppSpacesReturns(result1 map[string]string, result2 error)
func (*PolicyFilterCCClient) GetUserSpaces ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetUserSpaces(token string, userGUID string) (map[string]struct{}, error)
func (*PolicyFilterCCClient) GetUserSpacesArgsForCall ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetUserSpacesArgsForCall(i int) (string, string)
func (*PolicyFilterCCClient) GetUserSpacesCallCount ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetUserSpacesCallCount() int
func (*PolicyFilterCCClient) GetUserSpacesReturns ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) GetUserSpacesReturns(result1 map[string]struct{}, result2 error)
func (*PolicyFilterCCClient) Invocations ¶ added in v0.13.0
func (fake *PolicyFilterCCClient) Invocations() map[string][][]interface{}
type PolicyGuard ¶ added in v0.12.0
type PolicyGuard struct { CheckAccessStub func(policies []models.Policy, tokenData uaa_client.CheckTokenResponse) (bool, error) // contains filtered or unexported fields }
func (*PolicyGuard) CheckAccess ¶ added in v0.12.0
func (fake *PolicyGuard) CheckAccess(policies []models.Policy, tokenData uaa_client.CheckTokenResponse) (bool, error)
func (*PolicyGuard) CheckAccessArgsForCall ¶ added in v0.12.0
func (fake *PolicyGuard) CheckAccessArgsForCall(i int) ([]models.Policy, uaa_client.CheckTokenResponse)
func (*PolicyGuard) CheckAccessCallCount ¶ added in v0.12.0
func (fake *PolicyGuard) CheckAccessCallCount() int
func (*PolicyGuard) CheckAccessReturns ¶ added in v0.12.0
func (fake *PolicyGuard) CheckAccessReturns(result1 bool, result2 error)
func (*PolicyGuard) Invocations ¶ added in v0.12.0
func (fake *PolicyGuard) Invocations() map[string][][]interface{}
type PolicyGuardCCClient ¶ added in v0.12.0
type PolicyGuardCCClient struct { GetSpaceGUIDsStub func(token string, appGUIDs []string) ([]string, error) GetSpaceStub func(token, spaceGUID string) (*models.Space, error) GetUserSpaceStub func(token, userGUID string, spaces models.Space) (*models.Space, error) // contains filtered or unexported fields }
func (*PolicyGuardCCClient) GetSpaceArgsForCall ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceArgsForCall(i int) (string, string)
func (*PolicyGuardCCClient) GetSpaceCallCount ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceCallCount() int
func (*PolicyGuardCCClient) GetSpaceGUIDs ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceGUIDs(token string, appGUIDs []string) ([]string, error)
func (*PolicyGuardCCClient) GetSpaceGUIDsArgsForCall ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceGUIDsArgsForCall(i int) (string, []string)
func (*PolicyGuardCCClient) GetSpaceGUIDsCallCount ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceGUIDsCallCount() int
func (*PolicyGuardCCClient) GetSpaceGUIDsReturns ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceGUIDsReturns(result1 []string, result2 error)
func (*PolicyGuardCCClient) GetSpaceReturns ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetSpaceReturns(result1 *models.Space, result2 error)
func (*PolicyGuardCCClient) GetUserSpace ¶ added in v0.12.0
func (*PolicyGuardCCClient) GetUserSpaceArgsForCall ¶ added in v0.12.0
func (*PolicyGuardCCClient) GetUserSpaceCallCount ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetUserSpaceCallCount() int
func (*PolicyGuardCCClient) GetUserSpaceReturns ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) GetUserSpaceReturns(result1 *models.Space, result2 error)
func (*PolicyGuardCCClient) Invocations ¶ added in v0.12.0
func (fake *PolicyGuardCCClient) Invocations() map[string][][]interface{}
type PolicyRepo ¶
type PolicyRepo struct { CreateStub func(store.Transaction, int, int) error DeleteStub func(store.Transaction, int, int) error CountWhereGroupIDStub func(store.Transaction, int) (int, error) CountWhereDestinationIDStub func(store.Transaction, int) (int, error) // contains filtered or unexported fields }
func (*PolicyRepo) CountWhereDestinationID ¶
func (fake *PolicyRepo) CountWhereDestinationID(arg1 store.Transaction, arg2 int) (int, error)
func (*PolicyRepo) CountWhereDestinationIDArgsForCall ¶
func (fake *PolicyRepo) CountWhereDestinationIDArgsForCall(i int) (store.Transaction, int)
func (*PolicyRepo) CountWhereDestinationIDCallCount ¶
func (fake *PolicyRepo) CountWhereDestinationIDCallCount() int
func (*PolicyRepo) CountWhereDestinationIDReturns ¶
func (fake *PolicyRepo) CountWhereDestinationIDReturns(result1 int, result2 error)
func (*PolicyRepo) CountWhereGroupID ¶
func (fake *PolicyRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
func (*PolicyRepo) CountWhereGroupIDArgsForCall ¶
func (fake *PolicyRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
func (*PolicyRepo) CountWhereGroupIDCallCount ¶
func (fake *PolicyRepo) CountWhereGroupIDCallCount() int
func (*PolicyRepo) CountWhereGroupIDReturns ¶
func (fake *PolicyRepo) CountWhereGroupIDReturns(result1 int, result2 error)
func (*PolicyRepo) Create ¶
func (fake *PolicyRepo) Create(arg1 store.Transaction, arg2 int, arg3 int) error
func (*PolicyRepo) CreateArgsForCall ¶
func (fake *PolicyRepo) CreateArgsForCall(i int) (store.Transaction, int, int)
func (*PolicyRepo) CreateCallCount ¶
func (fake *PolicyRepo) CreateCallCount() int
func (*PolicyRepo) CreateReturns ¶
func (fake *PolicyRepo) CreateReturns(result1 error)
func (*PolicyRepo) Delete ¶
func (fake *PolicyRepo) Delete(arg1 store.Transaction, arg2 int, arg3 int) error
func (*PolicyRepo) DeleteArgsForCall ¶
func (fake *PolicyRepo) DeleteArgsForCall(i int) (store.Transaction, int, int)
func (*PolicyRepo) DeleteCallCount ¶
func (fake *PolicyRepo) DeleteCallCount() int
func (*PolicyRepo) DeleteReturns ¶
func (fake *PolicyRepo) DeleteReturns(result1 error)
func (*PolicyRepo) Invocations ¶
func (fake *PolicyRepo) Invocations() map[string][][]interface{}
type SqlResult ¶
type SqlResult struct { LastInsertIdStub func() (int64, error) RowsAffectedStub func() (int64, error) // contains filtered or unexported fields }
func (*SqlResult) Invocations ¶
func (*SqlResult) LastInsertId ¶
func (*SqlResult) LastInsertIdCallCount ¶
func (*SqlResult) LastInsertIdReturns ¶
func (*SqlResult) RowsAffected ¶
func (*SqlResult) RowsAffectedCallCount ¶
func (*SqlResult) RowsAffectedReturns ¶
type Store ¶
type Store struct { CreateStub func([]models.Policy) error AllStub 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 ¶ added in v0.7.0
type UAAClient struct { GetTokenStub func() (string, error) // contains filtered or unexported fields }
func (*UAAClient) GetTokenCallCount ¶ added in v0.7.0
func (*UAAClient) GetTokenReturns ¶ added in v0.7.0
func (*UAAClient) Invocations ¶ added in v0.7.0
type UAARequestClient ¶
type UAARequestClient struct { CheckTokenStub func(token string) (uaa_client.CheckTokenResponse, error) // contains filtered or unexported fields }
func (*UAARequestClient) CheckToken ¶
func (fake *UAARequestClient) CheckToken(token string) (uaa_client.CheckTokenResponse, error)
func (*UAARequestClient) CheckTokenArgsForCall ¶
func (fake *UAARequestClient) CheckTokenArgsForCall(i int) string
func (*UAARequestClient) CheckTokenCallCount ¶
func (fake *UAARequestClient) CheckTokenCallCount() int
func (*UAARequestClient) CheckTokenReturns ¶
func (fake *UAARequestClient) CheckTokenReturns(result1 uaa_client.CheckTokenResponse, result2 error)
func (*UAARequestClient) Invocations ¶
func (fake *UAARequestClient) Invocations() map[string][][]interface{}
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 ¶
type WarrantClient ¶ added in v0.7.0
type WarrantClient struct { GetTokenStub func(clientName, clientSecret string) (string, error) // contains filtered or unexported fields }
func (*WarrantClient) GetToken ¶ added in v0.7.0
func (fake *WarrantClient) GetToken(clientName string, clientSecret string) (string, error)
func (*WarrantClient) GetTokenArgsForCall ¶ added in v0.7.0
func (fake *WarrantClient) GetTokenArgsForCall(i int) (string, string)
func (*WarrantClient) GetTokenCallCount ¶ added in v0.7.0
func (fake *WarrantClient) GetTokenCallCount() int
func (*WarrantClient) GetTokenReturns ¶ added in v0.7.0
func (fake *WarrantClient) GetTokenReturns(result1 string, result2 error)
func (*WarrantClient) Invocations ¶ added in v0.7.0
func (fake *WarrantClient) Invocations() map[string][][]interface{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.