fakes

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: Apache-2.0 Imports: 4 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

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) 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) GetSpaceReturns

func (fake *CCClient) GetSpaceReturns(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) 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) Invocations

func (fake *CCClient) 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 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) 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) 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) 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) 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)

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) 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) 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)

Jump to

Keyboard shortcuts

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