revokfakes

package
v27.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2017 License: Apache-2.0 Imports: 7 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeChangeFetcher

type FakeChangeFetcher struct {
	FetchStub func(logger lager.Logger, owner string, name string) error
	// contains filtered or unexported fields
}

func (*FakeChangeFetcher) Fetch

func (fake *FakeChangeFetcher) Fetch(logger lager.Logger, owner string, name string) error

func (*FakeChangeFetcher) FetchArgsForCall

func (fake *FakeChangeFetcher) FetchArgsForCall(i int) (lager.Logger, string, string)

func (*FakeChangeFetcher) FetchCallCount

func (fake *FakeChangeFetcher) FetchCallCount() int

func (*FakeChangeFetcher) FetchReturns

func (fake *FakeChangeFetcher) FetchReturns(result1 error)

func (*FakeChangeFetcher) Invocations

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

type FakeGitHubClient

type FakeGitHubClient struct {
	ListRepositoriesByOrgStub func(lager.Logger, string) ([]revok.GitHubRepository, error)

	ListOrganizationsStub func(lager.Logger) ([]revok.GitHubOrganization, error)
	// contains filtered or unexported fields
}

func (*FakeGitHubClient) Invocations

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

func (*FakeGitHubClient) ListOrganizations

func (fake *FakeGitHubClient) ListOrganizations(arg1 lager.Logger) ([]revok.GitHubOrganization, error)

func (*FakeGitHubClient) ListOrganizationsArgsForCall

func (fake *FakeGitHubClient) ListOrganizationsArgsForCall(i int) lager.Logger

func (*FakeGitHubClient) ListOrganizationsCallCount

func (fake *FakeGitHubClient) ListOrganizationsCallCount() int

func (*FakeGitHubClient) ListOrganizationsReturns

func (fake *FakeGitHubClient) ListOrganizationsReturns(result1 []revok.GitHubOrganization, result2 error)

func (*FakeGitHubClient) ListRepositoriesByOrg

func (fake *FakeGitHubClient) ListRepositoriesByOrg(arg1 lager.Logger, arg2 string) ([]revok.GitHubRepository, error)

func (*FakeGitHubClient) ListRepositoriesByOrgArgsForCall

func (fake *FakeGitHubClient) ListRepositoriesByOrgArgsForCall(i int) (lager.Logger, string)

func (*FakeGitHubClient) ListRepositoriesByOrgCallCount

func (fake *FakeGitHubClient) ListRepositoriesByOrgCallCount() int

func (*FakeGitHubClient) ListRepositoriesByOrgReturns

func (fake *FakeGitHubClient) ListRepositoriesByOrgReturns(result1 []revok.GitHubRepository, result2 error)

type FakeRepoChangeScheduler

type FakeRepoChangeScheduler struct {
	ScheduleRepoStub func(lager.Logger, db.Repository)
	// contains filtered or unexported fields
}

func (*FakeRepoChangeScheduler) Invocations

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

func (*FakeRepoChangeScheduler) ScheduleRepo

func (fake *FakeRepoChangeScheduler) ScheduleRepo(arg1 lager.Logger, arg2 db.Repository)

func (*FakeRepoChangeScheduler) ScheduleRepoArgsForCall

func (fake *FakeRepoChangeScheduler) ScheduleRepoArgsForCall(i int) (lager.Logger, db.Repository)

func (*FakeRepoChangeScheduler) ScheduleRepoCallCount

func (fake *FakeRepoChangeScheduler) ScheduleRepoCallCount() int

type FakeScanner

type FakeScanner struct {
	ScanStub func(lager.Logger, string, string, map[git.Oid]struct{}, string, string, string) error

	ScanNoNotifyStub func(lager.Logger, string, string, map[git.Oid]struct{}, string, string, string) ([]db.Credential, error)
	// contains filtered or unexported fields
}

func (*FakeScanner) Invocations

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

func (*FakeScanner) Scan

func (fake *FakeScanner) Scan(arg1 lager.Logger, arg2 string, arg3 string, arg4 map[git.Oid]struct{}, arg5 string, arg6 string, arg7 string) error

func (*FakeScanner) ScanArgsForCall

func (fake *FakeScanner) ScanArgsForCall(i int) (lager.Logger, string, string, map[git.Oid]struct{}, string, string, string)

func (*FakeScanner) ScanCallCount

func (fake *FakeScanner) ScanCallCount() int

func (*FakeScanner) ScanNoNotify

func (fake *FakeScanner) ScanNoNotify(arg1 lager.Logger, arg2 string, arg3 string, arg4 map[git.Oid]struct{}, arg5 string, arg6 string, arg7 string) ([]db.Credential, error)

func (*FakeScanner) ScanNoNotifyArgsForCall

func (fake *FakeScanner) ScanNoNotifyArgsForCall(i int) (lager.Logger, string, string, map[git.Oid]struct{}, string, string, string)

func (*FakeScanner) ScanNoNotifyCallCount

func (fake *FakeScanner) ScanNoNotifyCallCount() int

func (*FakeScanner) ScanNoNotifyReturns

func (fake *FakeScanner) ScanNoNotifyReturns(result1 []db.Credential, result2 error)

func (*FakeScanner) ScanReturns

func (fake *FakeScanner) ScanReturns(result1 error)

type FakeScheduler

type FakeScheduler struct {
	ScheduleWorkStub func(string, func())
	// contains filtered or unexported fields
}

func (*FakeScheduler) Invocations

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

func (*FakeScheduler) ScheduleWork

func (fake *FakeScheduler) ScheduleWork(arg1 string, arg2 func())

func (*FakeScheduler) ScheduleWorkArgsForCall

func (fake *FakeScheduler) ScheduleWorkArgsForCall(i int) (string, func())

func (*FakeScheduler) ScheduleWorkCallCount

func (fake *FakeScheduler) ScheduleWorkCallCount() int

type FakeServer

type FakeServer struct {
	GetCredentialCountsStub func(context.Context, *revokpb.CredentialCountRequest) (*revokpb.CredentialCountResponse, error)

	GetOrganizationCredentialCountsStub func(context.Context, *revokpb.OrganizationCredentialCountRequest) (*revokpb.OrganizationCredentialCountResponse, error)

	GetRepositoryCredentialCountsStub func(ctx context.Context, in *revokpb.RepositoryCredentialCountRequest) (*revokpb.RepositoryCredentialCountResponse, error)
	// contains filtered or unexported fields
}

func (*FakeServer) GetCredentialCounts

func (fake *FakeServer) GetCredentialCounts(arg1 context.Context, arg2 *revokpb.CredentialCountRequest) (*revokpb.CredentialCountResponse, error)

func (*FakeServer) GetCredentialCountsArgsForCall

func (fake *FakeServer) GetCredentialCountsArgsForCall(i int) (context.Context, *revokpb.CredentialCountRequest)

func (*FakeServer) GetCredentialCountsCallCount

func (fake *FakeServer) GetCredentialCountsCallCount() int

func (*FakeServer) GetCredentialCountsReturns

func (fake *FakeServer) GetCredentialCountsReturns(result1 *revokpb.CredentialCountResponse, result2 error)

func (*FakeServer) GetOrganizationCredentialCountsArgsForCall

func (fake *FakeServer) GetOrganizationCredentialCountsArgsForCall(i int) (context.Context, *revokpb.OrganizationCredentialCountRequest)

func (*FakeServer) GetOrganizationCredentialCountsCallCount

func (fake *FakeServer) GetOrganizationCredentialCountsCallCount() int

func (*FakeServer) GetOrganizationCredentialCountsReturns

func (fake *FakeServer) GetOrganizationCredentialCountsReturns(result1 *revokpb.OrganizationCredentialCountResponse, result2 error)

func (*FakeServer) GetRepositoryCredentialCountsArgsForCall

func (fake *FakeServer) GetRepositoryCredentialCountsArgsForCall(i int) (context.Context, *revokpb.RepositoryCredentialCountRequest)

func (*FakeServer) GetRepositoryCredentialCountsCallCount

func (fake *FakeServer) GetRepositoryCredentialCountsCallCount() int

func (*FakeServer) GetRepositoryCredentialCountsReturns

func (fake *FakeServer) GetRepositoryCredentialCountsReturns(result1 *revokpb.RepositoryCredentialCountResponse, result2 error)

func (*FakeServer) Invocations

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

Jump to

Keyboard shortcuts

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