fakegitprovider

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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.

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 BranchClient

type BranchClient struct {
	CreateStub func(context.Context, string, string) error
	// contains filtered or unexported fields
}

func (*BranchClient) Create

func (fake *BranchClient) Create(arg1 context.Context, arg2 string, arg3 string) error

func (*BranchClient) CreateArgsForCall

func (fake *BranchClient) CreateArgsForCall(i int) (context.Context, string, string)

func (*BranchClient) CreateCallCount

func (fake *BranchClient) CreateCallCount() int

func (*BranchClient) CreateCalls

func (fake *BranchClient) CreateCalls(stub func(context.Context, string, string) error)

func (*BranchClient) CreateReturns

func (fake *BranchClient) CreateReturns(result1 error)

func (*BranchClient) CreateReturnsOnCall

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

func (*BranchClient) Invocations

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

type Client

type Client struct {
	HasTokenPermissionStub func(context.Context, gitprovider.TokenPermission) (bool, error)

	OrgRepositoriesStub func() gitprovider.OrgRepositoriesClient

	OrganizationsStub func() gitprovider.OrganizationsClient

	ProviderIDStub func() gitprovider.ProviderID

	RawStub func() interface{}

	SupportedDomainStub func() string

	UserRepositoriesStub func() gitprovider.UserRepositoriesClient
	// contains filtered or unexported fields
}

func (*Client) HasTokenPermission

func (fake *Client) HasTokenPermission(arg1 context.Context, arg2 gitprovider.TokenPermission) (bool, error)

func (*Client) HasTokenPermissionArgsForCall

func (fake *Client) HasTokenPermissionArgsForCall(i int) (context.Context, gitprovider.TokenPermission)

func (*Client) HasTokenPermissionCallCount

func (fake *Client) HasTokenPermissionCallCount() int

func (*Client) HasTokenPermissionCalls

func (fake *Client) HasTokenPermissionCalls(stub func(context.Context, gitprovider.TokenPermission) (bool, error))

func (*Client) HasTokenPermissionReturns

func (fake *Client) HasTokenPermissionReturns(result1 bool, result2 error)

func (*Client) HasTokenPermissionReturnsOnCall

func (fake *Client) HasTokenPermissionReturnsOnCall(i int, result1 bool, result2 error)

func (*Client) Invocations

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

func (*Client) OrgRepositories

func (fake *Client) OrgRepositories() gitprovider.OrgRepositoriesClient

func (*Client) OrgRepositoriesCallCount

func (fake *Client) OrgRepositoriesCallCount() int

func (*Client) OrgRepositoriesCalls

func (fake *Client) OrgRepositoriesCalls(stub func() gitprovider.OrgRepositoriesClient)

func (*Client) OrgRepositoriesReturns

func (fake *Client) OrgRepositoriesReturns(result1 gitprovider.OrgRepositoriesClient)

func (*Client) OrgRepositoriesReturnsOnCall

func (fake *Client) OrgRepositoriesReturnsOnCall(i int, result1 gitprovider.OrgRepositoriesClient)

func (*Client) Organizations

func (fake *Client) Organizations() gitprovider.OrganizationsClient

func (*Client) OrganizationsCallCount

func (fake *Client) OrganizationsCallCount() int

func (*Client) OrganizationsCalls

func (fake *Client) OrganizationsCalls(stub func() gitprovider.OrganizationsClient)

func (*Client) OrganizationsReturns

func (fake *Client) OrganizationsReturns(result1 gitprovider.OrganizationsClient)

func (*Client) OrganizationsReturnsOnCall

func (fake *Client) OrganizationsReturnsOnCall(i int, result1 gitprovider.OrganizationsClient)

func (*Client) ProviderID

func (fake *Client) ProviderID() gitprovider.ProviderID

func (*Client) ProviderIDCallCount

func (fake *Client) ProviderIDCallCount() int

func (*Client) ProviderIDCalls

func (fake *Client) ProviderIDCalls(stub func() gitprovider.ProviderID)

func (*Client) ProviderIDReturns

func (fake *Client) ProviderIDReturns(result1 gitprovider.ProviderID)

func (*Client) ProviderIDReturnsOnCall

func (fake *Client) ProviderIDReturnsOnCall(i int, result1 gitprovider.ProviderID)

func (*Client) Raw

func (fake *Client) Raw() interface{}

func (*Client) RawCallCount

func (fake *Client) RawCallCount() int

func (*Client) RawCalls

func (fake *Client) RawCalls(stub func() interface{})

func (*Client) RawReturns

func (fake *Client) RawReturns(result1 interface{})

func (*Client) RawReturnsOnCall

func (fake *Client) RawReturnsOnCall(i int, result1 interface{})

func (*Client) SupportedDomain

func (fake *Client) SupportedDomain() string

func (*Client) SupportedDomainCallCount

func (fake *Client) SupportedDomainCallCount() int

func (*Client) SupportedDomainCalls

func (fake *Client) SupportedDomainCalls(stub func() string)

func (*Client) SupportedDomainReturns

func (fake *Client) SupportedDomainReturns(result1 string)

func (*Client) SupportedDomainReturnsOnCall

func (fake *Client) SupportedDomainReturnsOnCall(i int, result1 string)

func (*Client) UserRepositories

func (fake *Client) UserRepositories() gitprovider.UserRepositoriesClient

func (*Client) UserRepositoriesCallCount

func (fake *Client) UserRepositoriesCallCount() int

func (*Client) UserRepositoriesCalls

func (fake *Client) UserRepositoriesCalls(stub func() gitprovider.UserRepositoriesClient)

func (*Client) UserRepositoriesReturns

func (fake *Client) UserRepositoriesReturns(result1 gitprovider.UserRepositoriesClient)

func (*Client) UserRepositoriesReturnsOnCall

func (fake *Client) UserRepositoriesReturnsOnCall(i int, result1 gitprovider.UserRepositoriesClient)

type Commit

type Commit struct {
	APIObjectStub func() interface{}

	GetStub func() gitprovider.CommitInfo
	// contains filtered or unexported fields
}

func (*Commit) APIObject

func (fake *Commit) APIObject() interface{}

func (*Commit) APIObjectCallCount

func (fake *Commit) APIObjectCallCount() int

func (*Commit) APIObjectCalls

func (fake *Commit) APIObjectCalls(stub func() interface{})

func (*Commit) APIObjectReturns

func (fake *Commit) APIObjectReturns(result1 interface{})

func (*Commit) APIObjectReturnsOnCall

func (fake *Commit) APIObjectReturnsOnCall(i int, result1 interface{})

func (*Commit) Get

func (fake *Commit) Get() gitprovider.CommitInfo

func (*Commit) GetCallCount

func (fake *Commit) GetCallCount() int

func (*Commit) GetCalls

func (fake *Commit) GetCalls(stub func() gitprovider.CommitInfo)

func (*Commit) GetReturns

func (fake *Commit) GetReturns(result1 gitprovider.CommitInfo)

func (*Commit) GetReturnsOnCall

func (fake *Commit) GetReturnsOnCall(i int, result1 gitprovider.CommitInfo)

func (*Commit) Invocations

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

type CommitClient

type CommitClient struct {
	CreateStub func(context.Context, string, string, []gitprovider.CommitFile) (gitprovider.Commit, error)

	ListPageStub func(context.Context, string, int, int) ([]gitprovider.Commit, error)
	// contains filtered or unexported fields
}

func (*CommitClient) Create

func (fake *CommitClient) Create(arg1 context.Context, arg2 string, arg3 string, arg4 []gitprovider.CommitFile) (gitprovider.Commit, error)

func (*CommitClient) CreateArgsForCall

func (fake *CommitClient) CreateArgsForCall(i int) (context.Context, string, string, []gitprovider.CommitFile)

func (*CommitClient) CreateCallCount

func (fake *CommitClient) CreateCallCount() int

func (*CommitClient) CreateCalls

func (fake *CommitClient) CreateCalls(stub func(context.Context, string, string, []gitprovider.CommitFile) (gitprovider.Commit, error))

func (*CommitClient) CreateReturns

func (fake *CommitClient) CreateReturns(result1 gitprovider.Commit, result2 error)

func (*CommitClient) CreateReturnsOnCall

func (fake *CommitClient) CreateReturnsOnCall(i int, result1 gitprovider.Commit, result2 error)

func (*CommitClient) Invocations

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

func (*CommitClient) ListPage

func (fake *CommitClient) ListPage(arg1 context.Context, arg2 string, arg3 int, arg4 int) ([]gitprovider.Commit, error)

func (*CommitClient) ListPageArgsForCall

func (fake *CommitClient) ListPageArgsForCall(i int) (context.Context, string, int, int)

func (*CommitClient) ListPageCallCount

func (fake *CommitClient) ListPageCallCount() int

func (*CommitClient) ListPageCalls

func (fake *CommitClient) ListPageCalls(stub func(context.Context, string, int, int) ([]gitprovider.Commit, error))

func (*CommitClient) ListPageReturns

func (fake *CommitClient) ListPageReturns(result1 []gitprovider.Commit, result2 error)

func (*CommitClient) ListPageReturnsOnCall

func (fake *CommitClient) ListPageReturnsOnCall(i int, result1 []gitprovider.Commit, result2 error)

type DeployKeyClient

type DeployKeyClient struct {
	CreateStub func(context.Context, gitprovider.DeployKeyInfo) (gitprovider.DeployKey, error)

	GetStub func(context.Context, string) (gitprovider.DeployKey, error)

	ListStub func(context.Context) ([]gitprovider.DeployKey, error)

	ReconcileStub func(context.Context, gitprovider.DeployKeyInfo) (gitprovider.DeployKey, bool, error)
	// contains filtered or unexported fields
}

func (*DeployKeyClient) Create

func (*DeployKeyClient) CreateArgsForCall

func (fake *DeployKeyClient) CreateArgsForCall(i int) (context.Context, gitprovider.DeployKeyInfo)

func (*DeployKeyClient) CreateCallCount

func (fake *DeployKeyClient) CreateCallCount() int

func (*DeployKeyClient) CreateCalls

func (*DeployKeyClient) CreateReturns

func (fake *DeployKeyClient) CreateReturns(result1 gitprovider.DeployKey, result2 error)

func (*DeployKeyClient) CreateReturnsOnCall

func (fake *DeployKeyClient) CreateReturnsOnCall(i int, result1 gitprovider.DeployKey, result2 error)

func (*DeployKeyClient) Get

func (fake *DeployKeyClient) Get(arg1 context.Context, arg2 string) (gitprovider.DeployKey, error)

func (*DeployKeyClient) GetArgsForCall

func (fake *DeployKeyClient) GetArgsForCall(i int) (context.Context, string)

func (*DeployKeyClient) GetCallCount

func (fake *DeployKeyClient) GetCallCount() int

func (*DeployKeyClient) GetCalls

func (fake *DeployKeyClient) GetCalls(stub func(context.Context, string) (gitprovider.DeployKey, error))

func (*DeployKeyClient) GetReturns

func (fake *DeployKeyClient) GetReturns(result1 gitprovider.DeployKey, result2 error)

func (*DeployKeyClient) GetReturnsOnCall

func (fake *DeployKeyClient) GetReturnsOnCall(i int, result1 gitprovider.DeployKey, result2 error)

func (*DeployKeyClient) Invocations

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

func (*DeployKeyClient) List

func (fake *DeployKeyClient) List(arg1 context.Context) ([]gitprovider.DeployKey, error)

func (*DeployKeyClient) ListArgsForCall

func (fake *DeployKeyClient) ListArgsForCall(i int) context.Context

func (*DeployKeyClient) ListCallCount

func (fake *DeployKeyClient) ListCallCount() int

func (*DeployKeyClient) ListCalls

func (fake *DeployKeyClient) ListCalls(stub func(context.Context) ([]gitprovider.DeployKey, error))

func (*DeployKeyClient) ListReturns

func (fake *DeployKeyClient) ListReturns(result1 []gitprovider.DeployKey, result2 error)

func (*DeployKeyClient) ListReturnsOnCall

func (fake *DeployKeyClient) ListReturnsOnCall(i int, result1 []gitprovider.DeployKey, result2 error)

func (*DeployKeyClient) Reconcile

func (*DeployKeyClient) ReconcileArgsForCall

func (fake *DeployKeyClient) ReconcileArgsForCall(i int) (context.Context, gitprovider.DeployKeyInfo)

func (*DeployKeyClient) ReconcileCallCount

func (fake *DeployKeyClient) ReconcileCallCount() int

func (*DeployKeyClient) ReconcileCalls

func (fake *DeployKeyClient) ReconcileCalls(stub func(context.Context, gitprovider.DeployKeyInfo) (gitprovider.DeployKey, bool, error))

func (*DeployKeyClient) ReconcileReturns

func (fake *DeployKeyClient) ReconcileReturns(result1 gitprovider.DeployKey, result2 bool, result3 error)

func (*DeployKeyClient) ReconcileReturnsOnCall

func (fake *DeployKeyClient) ReconcileReturnsOnCall(i int, result1 gitprovider.DeployKey, result2 bool, result3 error)

type FileClient added in v0.7.0

type FileClient struct {
	GetStub func(context.Context, string, string, ...gitprovider.FilesGetOption) ([]*gitprovider.CommitFile, error)
	// contains filtered or unexported fields
}

func (*FileClient) Get added in v0.7.0

func (fake *FileClient) Get(arg1 context.Context, arg2 string, arg3 string, arg4 ...gitprovider.FilesGetOption) ([]*gitprovider.CommitFile, error)

func (*FileClient) GetArgsForCall added in v0.7.0

func (fake *FileClient) GetArgsForCall(i int) (context.Context, string, string, []gitprovider.FilesGetOption)

func (*FileClient) GetCallCount added in v0.7.0

func (fake *FileClient) GetCallCount() int

func (*FileClient) GetCalls added in v0.7.0

func (*FileClient) GetReturns added in v0.7.0

func (fake *FileClient) GetReturns(result1 []*gitprovider.CommitFile, result2 error)

func (*FileClient) GetReturnsOnCall added in v0.7.0

func (fake *FileClient) GetReturnsOnCall(i int, result1 []*gitprovider.CommitFile, result2 error)

func (*FileClient) Invocations added in v0.7.0

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

type OrgRepositoriesClient

func (*OrgRepositoriesClient) CreateCallCount

func (fake *OrgRepositoriesClient) CreateCallCount() int

func (*OrgRepositoriesClient) CreateReturns

func (fake *OrgRepositoriesClient) CreateReturns(result1 gitprovider.OrgRepository, result2 error)

func (*OrgRepositoriesClient) CreateReturnsOnCall

func (fake *OrgRepositoriesClient) CreateReturnsOnCall(i int, result1 gitprovider.OrgRepository, result2 error)

func (*OrgRepositoriesClient) Get

func (*OrgRepositoriesClient) GetArgsForCall

func (*OrgRepositoriesClient) GetCallCount

func (fake *OrgRepositoriesClient) GetCallCount() int

func (*OrgRepositoriesClient) GetCalls

func (*OrgRepositoriesClient) GetReturns

func (fake *OrgRepositoriesClient) GetReturns(result1 gitprovider.OrgRepository, result2 error)

func (*OrgRepositoriesClient) GetReturnsOnCall

func (fake *OrgRepositoriesClient) GetReturnsOnCall(i int, result1 gitprovider.OrgRepository, result2 error)

func (*OrgRepositoriesClient) Invocations

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

func (*OrgRepositoriesClient) List

func (*OrgRepositoriesClient) ListArgsForCall

func (*OrgRepositoriesClient) ListCallCount

func (fake *OrgRepositoriesClient) ListCallCount() int

func (*OrgRepositoriesClient) ListCalls

func (*OrgRepositoriesClient) ListReturns

func (fake *OrgRepositoriesClient) ListReturns(result1 []gitprovider.OrgRepository, result2 error)

func (*OrgRepositoriesClient) ListReturnsOnCall

func (fake *OrgRepositoriesClient) ListReturnsOnCall(i int, result1 []gitprovider.OrgRepository, result2 error)

func (*OrgRepositoriesClient) ReconcileCallCount

func (fake *OrgRepositoriesClient) ReconcileCallCount() int

func (*OrgRepositoriesClient) ReconcileReturns

func (fake *OrgRepositoriesClient) ReconcileReturns(result1 gitprovider.OrgRepository, result2 bool, result3 error)

func (*OrgRepositoriesClient) ReconcileReturnsOnCall

func (fake *OrgRepositoriesClient) ReconcileReturnsOnCall(i int, result1 gitprovider.OrgRepository, result2 bool, result3 error)

type OrgRepository

type OrgRepository struct {
	APIObjectStub func() interface{}

	BranchesStub func() gitprovider.BranchClient

	CommitsStub func() gitprovider.CommitClient

	DeleteStub func(context.Context) error

	DeployKeysStub func() gitprovider.DeployKeyClient

	DeployTokensStub func() (gitprovider.DeployTokenClient, error)

	FilesStub func() gitprovider.FileClient

	GetStub func() gitprovider.RepositoryInfo

	PullRequestsStub func() gitprovider.PullRequestClient

	ReconcileStub func(context.Context) (bool, error)

	RepositoryStub func() gitprovider.RepositoryRef

	SetStub func(gitprovider.RepositoryInfo) error

	TeamAccessStub func() gitprovider.TeamAccessClient

	TreesStub func() gitprovider.TreeClient

	UpdateStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*OrgRepository) APIObject

func (fake *OrgRepository) APIObject() interface{}

func (*OrgRepository) APIObjectCallCount

func (fake *OrgRepository) APIObjectCallCount() int

func (*OrgRepository) APIObjectCalls

func (fake *OrgRepository) APIObjectCalls(stub func() interface{})

func (*OrgRepository) APIObjectReturns

func (fake *OrgRepository) APIObjectReturns(result1 interface{})

func (*OrgRepository) APIObjectReturnsOnCall

func (fake *OrgRepository) APIObjectReturnsOnCall(i int, result1 interface{})

func (*OrgRepository) Branches

func (fake *OrgRepository) Branches() gitprovider.BranchClient

func (*OrgRepository) BranchesCallCount

func (fake *OrgRepository) BranchesCallCount() int

func (*OrgRepository) BranchesCalls

func (fake *OrgRepository) BranchesCalls(stub func() gitprovider.BranchClient)

func (*OrgRepository) BranchesReturns

func (fake *OrgRepository) BranchesReturns(result1 gitprovider.BranchClient)

func (*OrgRepository) BranchesReturnsOnCall

func (fake *OrgRepository) BranchesReturnsOnCall(i int, result1 gitprovider.BranchClient)

func (*OrgRepository) Commits

func (fake *OrgRepository) Commits() gitprovider.CommitClient

func (*OrgRepository) CommitsCallCount

func (fake *OrgRepository) CommitsCallCount() int

func (*OrgRepository) CommitsCalls

func (fake *OrgRepository) CommitsCalls(stub func() gitprovider.CommitClient)

func (*OrgRepository) CommitsReturns

func (fake *OrgRepository) CommitsReturns(result1 gitprovider.CommitClient)

func (*OrgRepository) CommitsReturnsOnCall

func (fake *OrgRepository) CommitsReturnsOnCall(i int, result1 gitprovider.CommitClient)

func (*OrgRepository) Delete

func (fake *OrgRepository) Delete(arg1 context.Context) error

func (*OrgRepository) DeleteArgsForCall

func (fake *OrgRepository) DeleteArgsForCall(i int) context.Context

func (*OrgRepository) DeleteCallCount

func (fake *OrgRepository) DeleteCallCount() int

func (*OrgRepository) DeleteCalls

func (fake *OrgRepository) DeleteCalls(stub func(context.Context) error)

func (*OrgRepository) DeleteReturns

func (fake *OrgRepository) DeleteReturns(result1 error)

func (*OrgRepository) DeleteReturnsOnCall

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

func (*OrgRepository) DeployKeys

func (fake *OrgRepository) DeployKeys() gitprovider.DeployKeyClient

func (*OrgRepository) DeployKeysCallCount

func (fake *OrgRepository) DeployKeysCallCount() int

func (*OrgRepository) DeployKeysCalls

func (fake *OrgRepository) DeployKeysCalls(stub func() gitprovider.DeployKeyClient)

func (*OrgRepository) DeployKeysReturns

func (fake *OrgRepository) DeployKeysReturns(result1 gitprovider.DeployKeyClient)

func (*OrgRepository) DeployKeysReturnsOnCall

func (fake *OrgRepository) DeployKeysReturnsOnCall(i int, result1 gitprovider.DeployKeyClient)

func (*OrgRepository) DeployTokens added in v0.25.0

func (fake *OrgRepository) DeployTokens() (gitprovider.DeployTokenClient, error)

func (*OrgRepository) DeployTokensCallCount added in v0.25.0

func (fake *OrgRepository) DeployTokensCallCount() int

func (*OrgRepository) DeployTokensCalls added in v0.25.0

func (fake *OrgRepository) DeployTokensCalls(stub func() (gitprovider.DeployTokenClient, error))

func (*OrgRepository) DeployTokensReturns added in v0.25.0

func (fake *OrgRepository) DeployTokensReturns(result1 gitprovider.DeployTokenClient, result2 error)

func (*OrgRepository) DeployTokensReturnsOnCall added in v0.25.0

func (fake *OrgRepository) DeployTokensReturnsOnCall(i int, result1 gitprovider.DeployTokenClient, result2 error)

func (*OrgRepository) Files added in v0.7.0

func (fake *OrgRepository) Files() gitprovider.FileClient

func (*OrgRepository) FilesCallCount added in v0.7.0

func (fake *OrgRepository) FilesCallCount() int

func (*OrgRepository) FilesCalls added in v0.7.0

func (fake *OrgRepository) FilesCalls(stub func() gitprovider.FileClient)

func (*OrgRepository) FilesReturns added in v0.7.0

func (fake *OrgRepository) FilesReturns(result1 gitprovider.FileClient)

func (*OrgRepository) FilesReturnsOnCall added in v0.7.0

func (fake *OrgRepository) FilesReturnsOnCall(i int, result1 gitprovider.FileClient)

func (*OrgRepository) Get

func (*OrgRepository) GetCallCount

func (fake *OrgRepository) GetCallCount() int

func (*OrgRepository) GetCalls

func (fake *OrgRepository) GetCalls(stub func() gitprovider.RepositoryInfo)

func (*OrgRepository) GetReturns

func (fake *OrgRepository) GetReturns(result1 gitprovider.RepositoryInfo)

func (*OrgRepository) GetReturnsOnCall

func (fake *OrgRepository) GetReturnsOnCall(i int, result1 gitprovider.RepositoryInfo)

func (*OrgRepository) Invocations

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

func (*OrgRepository) PullRequests

func (fake *OrgRepository) PullRequests() gitprovider.PullRequestClient

func (*OrgRepository) PullRequestsCallCount

func (fake *OrgRepository) PullRequestsCallCount() int

func (*OrgRepository) PullRequestsCalls

func (fake *OrgRepository) PullRequestsCalls(stub func() gitprovider.PullRequestClient)

func (*OrgRepository) PullRequestsReturns

func (fake *OrgRepository) PullRequestsReturns(result1 gitprovider.PullRequestClient)

func (*OrgRepository) PullRequestsReturnsOnCall

func (fake *OrgRepository) PullRequestsReturnsOnCall(i int, result1 gitprovider.PullRequestClient)

func (*OrgRepository) Reconcile

func (fake *OrgRepository) Reconcile(arg1 context.Context) (bool, error)

func (*OrgRepository) ReconcileArgsForCall

func (fake *OrgRepository) ReconcileArgsForCall(i int) context.Context

func (*OrgRepository) ReconcileCallCount

func (fake *OrgRepository) ReconcileCallCount() int

func (*OrgRepository) ReconcileCalls

func (fake *OrgRepository) ReconcileCalls(stub func(context.Context) (bool, error))

func (*OrgRepository) ReconcileReturns

func (fake *OrgRepository) ReconcileReturns(result1 bool, result2 error)

func (*OrgRepository) ReconcileReturnsOnCall

func (fake *OrgRepository) ReconcileReturnsOnCall(i int, result1 bool, result2 error)

func (*OrgRepository) Repository

func (fake *OrgRepository) Repository() gitprovider.RepositoryRef

func (*OrgRepository) RepositoryCallCount

func (fake *OrgRepository) RepositoryCallCount() int

func (*OrgRepository) RepositoryCalls

func (fake *OrgRepository) RepositoryCalls(stub func() gitprovider.RepositoryRef)

func (*OrgRepository) RepositoryReturns

func (fake *OrgRepository) RepositoryReturns(result1 gitprovider.RepositoryRef)

func (*OrgRepository) RepositoryReturnsOnCall

func (fake *OrgRepository) RepositoryReturnsOnCall(i int, result1 gitprovider.RepositoryRef)

func (*OrgRepository) Set

func (*OrgRepository) SetArgsForCall

func (fake *OrgRepository) SetArgsForCall(i int) gitprovider.RepositoryInfo

func (*OrgRepository) SetCallCount

func (fake *OrgRepository) SetCallCount() int

func (*OrgRepository) SetCalls

func (fake *OrgRepository) SetCalls(stub func(gitprovider.RepositoryInfo) error)

func (*OrgRepository) SetReturns

func (fake *OrgRepository) SetReturns(result1 error)

func (*OrgRepository) SetReturnsOnCall

func (fake *OrgRepository) SetReturnsOnCall(i int, result1 error)

func (*OrgRepository) TeamAccess

func (fake *OrgRepository) TeamAccess() gitprovider.TeamAccessClient

func (*OrgRepository) TeamAccessCallCount

func (fake *OrgRepository) TeamAccessCallCount() int

func (*OrgRepository) TeamAccessCalls

func (fake *OrgRepository) TeamAccessCalls(stub func() gitprovider.TeamAccessClient)

func (*OrgRepository) TeamAccessReturns

func (fake *OrgRepository) TeamAccessReturns(result1 gitprovider.TeamAccessClient)

func (*OrgRepository) TeamAccessReturnsOnCall

func (fake *OrgRepository) TeamAccessReturnsOnCall(i int, result1 gitprovider.TeamAccessClient)

func (*OrgRepository) Trees added in v0.9.6

func (fake *OrgRepository) Trees() gitprovider.TreeClient

func (*OrgRepository) TreesCallCount added in v0.9.6

func (fake *OrgRepository) TreesCallCount() int

func (*OrgRepository) TreesCalls added in v0.9.6

func (fake *OrgRepository) TreesCalls(stub func() gitprovider.TreeClient)

func (*OrgRepository) TreesReturns added in v0.9.6

func (fake *OrgRepository) TreesReturns(result1 gitprovider.TreeClient)

func (*OrgRepository) TreesReturnsOnCall added in v0.9.6

func (fake *OrgRepository) TreesReturnsOnCall(i int, result1 gitprovider.TreeClient)

func (*OrgRepository) Update

func (fake *OrgRepository) Update(arg1 context.Context) error

func (*OrgRepository) UpdateArgsForCall

func (fake *OrgRepository) UpdateArgsForCall(i int) context.Context

func (*OrgRepository) UpdateCallCount

func (fake *OrgRepository) UpdateCallCount() int

func (*OrgRepository) UpdateCalls

func (fake *OrgRepository) UpdateCalls(stub func(context.Context) error)

func (*OrgRepository) UpdateReturns

func (fake *OrgRepository) UpdateReturns(result1 error)

func (*OrgRepository) UpdateReturnsOnCall

func (fake *OrgRepository) UpdateReturnsOnCall(i int, result1 error)

type PullRequest added in v0.7.0

type PullRequest struct {
	APIObjectStub func() interface{}

	GetStub func() gitprovider.PullRequestInfo
	// contains filtered or unexported fields
}

func (*PullRequest) APIObject added in v0.7.0

func (fake *PullRequest) APIObject() interface{}

func (*PullRequest) APIObjectCallCount added in v0.7.0

func (fake *PullRequest) APIObjectCallCount() int

func (*PullRequest) APIObjectCalls added in v0.7.0

func (fake *PullRequest) APIObjectCalls(stub func() interface{})

func (*PullRequest) APIObjectReturns added in v0.7.0

func (fake *PullRequest) APIObjectReturns(result1 interface{})

func (*PullRequest) APIObjectReturnsOnCall added in v0.7.0

func (fake *PullRequest) APIObjectReturnsOnCall(i int, result1 interface{})

func (*PullRequest) Get added in v0.7.0

func (*PullRequest) GetCallCount added in v0.7.0

func (fake *PullRequest) GetCallCount() int

func (*PullRequest) GetCalls added in v0.7.0

func (fake *PullRequest) GetCalls(stub func() gitprovider.PullRequestInfo)

func (*PullRequest) GetReturns added in v0.7.0

func (fake *PullRequest) GetReturns(result1 gitprovider.PullRequestInfo)

func (*PullRequest) GetReturnsOnCall added in v0.7.0

func (fake *PullRequest) GetReturnsOnCall(i int, result1 gitprovider.PullRequestInfo)

func (*PullRequest) Invocations added in v0.7.0

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

type PullRequestClient

type PullRequestClient struct {
	CreateStub func(context.Context, string, string, string, string) (gitprovider.PullRequest, error)

	EditStub func(context.Context, int, gitprovider.EditOptions) (gitprovider.PullRequest, error)

	GetStub func(context.Context, int) (gitprovider.PullRequest, error)

	ListStub func(context.Context) ([]gitprovider.PullRequest, error)

	MergeStub func(context.Context, int, gitprovider.MergeMethod, string) error
	// contains filtered or unexported fields
}

func (*PullRequestClient) Create

func (fake *PullRequestClient) Create(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) (gitprovider.PullRequest, error)

func (*PullRequestClient) CreateArgsForCall

func (fake *PullRequestClient) CreateArgsForCall(i int) (context.Context, string, string, string, string)

func (*PullRequestClient) CreateCallCount

func (fake *PullRequestClient) CreateCallCount() int

func (*PullRequestClient) CreateCalls

func (fake *PullRequestClient) CreateCalls(stub func(context.Context, string, string, string, string) (gitprovider.PullRequest, error))

func (*PullRequestClient) CreateReturns

func (fake *PullRequestClient) CreateReturns(result1 gitprovider.PullRequest, result2 error)

func (*PullRequestClient) CreateReturnsOnCall

func (fake *PullRequestClient) CreateReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)

func (*PullRequestClient) Edit added in v0.12.0

func (*PullRequestClient) EditArgsForCall added in v0.12.0

func (fake *PullRequestClient) EditArgsForCall(i int) (context.Context, int, gitprovider.EditOptions)

func (*PullRequestClient) EditCallCount added in v0.12.0

func (fake *PullRequestClient) EditCallCount() int

func (*PullRequestClient) EditCalls added in v0.12.0

func (*PullRequestClient) EditReturns added in v0.12.0

func (fake *PullRequestClient) EditReturns(result1 gitprovider.PullRequest, result2 error)

func (*PullRequestClient) EditReturnsOnCall added in v0.12.0

func (fake *PullRequestClient) EditReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)

func (*PullRequestClient) Get

func (*PullRequestClient) GetArgsForCall

func (fake *PullRequestClient) GetArgsForCall(i int) (context.Context, int)

func (*PullRequestClient) GetCallCount

func (fake *PullRequestClient) GetCallCount() int

func (*PullRequestClient) GetCalls

func (fake *PullRequestClient) GetCalls(stub func(context.Context, int) (gitprovider.PullRequest, error))

func (*PullRequestClient) GetReturns

func (fake *PullRequestClient) GetReturns(result1 gitprovider.PullRequest, result2 error)

func (*PullRequestClient) GetReturnsOnCall

func (fake *PullRequestClient) GetReturnsOnCall(i int, result1 gitprovider.PullRequest, result2 error)

func (*PullRequestClient) Invocations

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

func (*PullRequestClient) List

func (*PullRequestClient) ListArgsForCall

func (fake *PullRequestClient) ListArgsForCall(i int) context.Context

func (*PullRequestClient) ListCallCount

func (fake *PullRequestClient) ListCallCount() int

func (*PullRequestClient) ListCalls

func (fake *PullRequestClient) ListCalls(stub func(context.Context) ([]gitprovider.PullRequest, error))

func (*PullRequestClient) ListReturns

func (fake *PullRequestClient) ListReturns(result1 []gitprovider.PullRequest, result2 error)

func (*PullRequestClient) ListReturnsOnCall

func (fake *PullRequestClient) ListReturnsOnCall(i int, result1 []gitprovider.PullRequest, result2 error)

func (*PullRequestClient) Merge

func (fake *PullRequestClient) Merge(arg1 context.Context, arg2 int, arg3 gitprovider.MergeMethod, arg4 string) error

func (*PullRequestClient) MergeArgsForCall

func (fake *PullRequestClient) MergeArgsForCall(i int) (context.Context, int, gitprovider.MergeMethod, string)

func (*PullRequestClient) MergeCallCount

func (fake *PullRequestClient) MergeCallCount() int

func (*PullRequestClient) MergeCalls

func (fake *PullRequestClient) MergeCalls(stub func(context.Context, int, gitprovider.MergeMethod, string) error)

func (*PullRequestClient) MergeReturns

func (fake *PullRequestClient) MergeReturns(result1 error)

func (*PullRequestClient) MergeReturnsOnCall

func (fake *PullRequestClient) MergeReturnsOnCall(i int, result1 error)

type UserRepositoriesClient

func (*UserRepositoriesClient) CreateCallCount

func (fake *UserRepositoriesClient) CreateCallCount() int

func (*UserRepositoriesClient) CreateReturns

func (fake *UserRepositoriesClient) CreateReturns(result1 gitprovider.UserRepository, result2 error)

func (*UserRepositoriesClient) CreateReturnsOnCall

func (fake *UserRepositoriesClient) CreateReturnsOnCall(i int, result1 gitprovider.UserRepository, result2 error)

func (*UserRepositoriesClient) Get

func (*UserRepositoriesClient) GetArgsForCall

func (*UserRepositoriesClient) GetCallCount

func (fake *UserRepositoriesClient) GetCallCount() int

func (*UserRepositoriesClient) GetCalls

func (*UserRepositoriesClient) GetReturns

func (fake *UserRepositoriesClient) GetReturns(result1 gitprovider.UserRepository, result2 error)

func (*UserRepositoriesClient) GetReturnsOnCall

func (fake *UserRepositoriesClient) GetReturnsOnCall(i int, result1 gitprovider.UserRepository, result2 error)

func (*UserRepositoriesClient) Invocations

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

func (*UserRepositoriesClient) List

func (*UserRepositoriesClient) ListArgsForCall

func (fake *UserRepositoriesClient) ListArgsForCall(i int) (context.Context, gitprovider.UserRef)

func (*UserRepositoriesClient) ListCallCount

func (fake *UserRepositoriesClient) ListCallCount() int

func (*UserRepositoriesClient) ListCalls

func (*UserRepositoriesClient) ListReturns

func (fake *UserRepositoriesClient) ListReturns(result1 []gitprovider.UserRepository, result2 error)

func (*UserRepositoriesClient) ListReturnsOnCall

func (fake *UserRepositoriesClient) ListReturnsOnCall(i int, result1 []gitprovider.UserRepository, result2 error)

func (*UserRepositoriesClient) ReconcileCallCount

func (fake *UserRepositoriesClient) ReconcileCallCount() int

func (*UserRepositoriesClient) ReconcileReturns

func (fake *UserRepositoriesClient) ReconcileReturns(result1 gitprovider.UserRepository, result2 bool, result3 error)

func (*UserRepositoriesClient) ReconcileReturnsOnCall

func (fake *UserRepositoriesClient) ReconcileReturnsOnCall(i int, result1 gitprovider.UserRepository, result2 bool, result3 error)

type UserRepository

type UserRepository struct {
	APIObjectStub func() interface{}

	BranchesStub func() gitprovider.BranchClient

	CommitsStub func() gitprovider.CommitClient

	DeleteStub func(context.Context) error

	DeployKeysStub func() gitprovider.DeployKeyClient

	DeployTokensStub func() (gitprovider.DeployTokenClient, error)

	FilesStub func() gitprovider.FileClient

	GetStub func() gitprovider.RepositoryInfo

	PullRequestsStub func() gitprovider.PullRequestClient

	ReconcileStub func(context.Context) (bool, error)

	RepositoryStub func() gitprovider.RepositoryRef

	SetStub func(gitprovider.RepositoryInfo) error

	TreesStub func() gitprovider.TreeClient

	UpdateStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*UserRepository) APIObject

func (fake *UserRepository) APIObject() interface{}

func (*UserRepository) APIObjectCallCount

func (fake *UserRepository) APIObjectCallCount() int

func (*UserRepository) APIObjectCalls

func (fake *UserRepository) APIObjectCalls(stub func() interface{})

func (*UserRepository) APIObjectReturns

func (fake *UserRepository) APIObjectReturns(result1 interface{})

func (*UserRepository) APIObjectReturnsOnCall

func (fake *UserRepository) APIObjectReturnsOnCall(i int, result1 interface{})

func (*UserRepository) Branches

func (fake *UserRepository) Branches() gitprovider.BranchClient

func (*UserRepository) BranchesCallCount

func (fake *UserRepository) BranchesCallCount() int

func (*UserRepository) BranchesCalls

func (fake *UserRepository) BranchesCalls(stub func() gitprovider.BranchClient)

func (*UserRepository) BranchesReturns

func (fake *UserRepository) BranchesReturns(result1 gitprovider.BranchClient)

func (*UserRepository) BranchesReturnsOnCall

func (fake *UserRepository) BranchesReturnsOnCall(i int, result1 gitprovider.BranchClient)

func (*UserRepository) Commits

func (fake *UserRepository) Commits() gitprovider.CommitClient

func (*UserRepository) CommitsCallCount

func (fake *UserRepository) CommitsCallCount() int

func (*UserRepository) CommitsCalls

func (fake *UserRepository) CommitsCalls(stub func() gitprovider.CommitClient)

func (*UserRepository) CommitsReturns

func (fake *UserRepository) CommitsReturns(result1 gitprovider.CommitClient)

func (*UserRepository) CommitsReturnsOnCall

func (fake *UserRepository) CommitsReturnsOnCall(i int, result1 gitprovider.CommitClient)

func (*UserRepository) Delete

func (fake *UserRepository) Delete(arg1 context.Context) error

func (*UserRepository) DeleteArgsForCall

func (fake *UserRepository) DeleteArgsForCall(i int) context.Context

func (*UserRepository) DeleteCallCount

func (fake *UserRepository) DeleteCallCount() int

func (*UserRepository) DeleteCalls

func (fake *UserRepository) DeleteCalls(stub func(context.Context) error)

func (*UserRepository) DeleteReturns

func (fake *UserRepository) DeleteReturns(result1 error)

func (*UserRepository) DeleteReturnsOnCall

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

func (*UserRepository) DeployKeys

func (fake *UserRepository) DeployKeys() gitprovider.DeployKeyClient

func (*UserRepository) DeployKeysCallCount

func (fake *UserRepository) DeployKeysCallCount() int

func (*UserRepository) DeployKeysCalls

func (fake *UserRepository) DeployKeysCalls(stub func() gitprovider.DeployKeyClient)

func (*UserRepository) DeployKeysReturns

func (fake *UserRepository) DeployKeysReturns(result1 gitprovider.DeployKeyClient)

func (*UserRepository) DeployKeysReturnsOnCall

func (fake *UserRepository) DeployKeysReturnsOnCall(i int, result1 gitprovider.DeployKeyClient)

func (*UserRepository) DeployTokens added in v0.25.0

func (fake *UserRepository) DeployTokens() (gitprovider.DeployTokenClient, error)

func (*UserRepository) DeployTokensCallCount added in v0.25.0

func (fake *UserRepository) DeployTokensCallCount() int

func (*UserRepository) DeployTokensCalls added in v0.25.0

func (fake *UserRepository) DeployTokensCalls(stub func() (gitprovider.DeployTokenClient, error))

func (*UserRepository) DeployTokensReturns added in v0.25.0

func (fake *UserRepository) DeployTokensReturns(result1 gitprovider.DeployTokenClient, result2 error)

func (*UserRepository) DeployTokensReturnsOnCall added in v0.25.0

func (fake *UserRepository) DeployTokensReturnsOnCall(i int, result1 gitprovider.DeployTokenClient, result2 error)

func (*UserRepository) Files added in v0.7.0

func (fake *UserRepository) Files() gitprovider.FileClient

func (*UserRepository) FilesCallCount added in v0.7.0

func (fake *UserRepository) FilesCallCount() int

func (*UserRepository) FilesCalls added in v0.7.0

func (fake *UserRepository) FilesCalls(stub func() gitprovider.FileClient)

func (*UserRepository) FilesReturns added in v0.7.0

func (fake *UserRepository) FilesReturns(result1 gitprovider.FileClient)

func (*UserRepository) FilesReturnsOnCall added in v0.7.0

func (fake *UserRepository) FilesReturnsOnCall(i int, result1 gitprovider.FileClient)

func (*UserRepository) Get

func (*UserRepository) GetCallCount

func (fake *UserRepository) GetCallCount() int

func (*UserRepository) GetCalls

func (fake *UserRepository) GetCalls(stub func() gitprovider.RepositoryInfo)

func (*UserRepository) GetReturns

func (fake *UserRepository) GetReturns(result1 gitprovider.RepositoryInfo)

func (*UserRepository) GetReturnsOnCall

func (fake *UserRepository) GetReturnsOnCall(i int, result1 gitprovider.RepositoryInfo)

func (*UserRepository) Invocations

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

func (*UserRepository) PullRequests

func (fake *UserRepository) PullRequests() gitprovider.PullRequestClient

func (*UserRepository) PullRequestsCallCount

func (fake *UserRepository) PullRequestsCallCount() int

func (*UserRepository) PullRequestsCalls

func (fake *UserRepository) PullRequestsCalls(stub func() gitprovider.PullRequestClient)

func (*UserRepository) PullRequestsReturns

func (fake *UserRepository) PullRequestsReturns(result1 gitprovider.PullRequestClient)

func (*UserRepository) PullRequestsReturnsOnCall

func (fake *UserRepository) PullRequestsReturnsOnCall(i int, result1 gitprovider.PullRequestClient)

func (*UserRepository) Reconcile

func (fake *UserRepository) Reconcile(arg1 context.Context) (bool, error)

func (*UserRepository) ReconcileArgsForCall

func (fake *UserRepository) ReconcileArgsForCall(i int) context.Context

func (*UserRepository) ReconcileCallCount

func (fake *UserRepository) ReconcileCallCount() int

func (*UserRepository) ReconcileCalls

func (fake *UserRepository) ReconcileCalls(stub func(context.Context) (bool, error))

func (*UserRepository) ReconcileReturns

func (fake *UserRepository) ReconcileReturns(result1 bool, result2 error)

func (*UserRepository) ReconcileReturnsOnCall

func (fake *UserRepository) ReconcileReturnsOnCall(i int, result1 bool, result2 error)

func (*UserRepository) Repository

func (fake *UserRepository) Repository() gitprovider.RepositoryRef

func (*UserRepository) RepositoryCallCount

func (fake *UserRepository) RepositoryCallCount() int

func (*UserRepository) RepositoryCalls

func (fake *UserRepository) RepositoryCalls(stub func() gitprovider.RepositoryRef)

func (*UserRepository) RepositoryReturns

func (fake *UserRepository) RepositoryReturns(result1 gitprovider.RepositoryRef)

func (*UserRepository) RepositoryReturnsOnCall

func (fake *UserRepository) RepositoryReturnsOnCall(i int, result1 gitprovider.RepositoryRef)

func (*UserRepository) Set

func (*UserRepository) SetArgsForCall

func (fake *UserRepository) SetArgsForCall(i int) gitprovider.RepositoryInfo

func (*UserRepository) SetCallCount

func (fake *UserRepository) SetCallCount() int

func (*UserRepository) SetCalls

func (fake *UserRepository) SetCalls(stub func(gitprovider.RepositoryInfo) error)

func (*UserRepository) SetReturns

func (fake *UserRepository) SetReturns(result1 error)

func (*UserRepository) SetReturnsOnCall

func (fake *UserRepository) SetReturnsOnCall(i int, result1 error)

func (*UserRepository) Trees added in v0.9.6

func (fake *UserRepository) Trees() gitprovider.TreeClient

func (*UserRepository) TreesCallCount added in v0.9.6

func (fake *UserRepository) TreesCallCount() int

func (*UserRepository) TreesCalls added in v0.9.6

func (fake *UserRepository) TreesCalls(stub func() gitprovider.TreeClient)

func (*UserRepository) TreesReturns added in v0.9.6

func (fake *UserRepository) TreesReturns(result1 gitprovider.TreeClient)

func (*UserRepository) TreesReturnsOnCall added in v0.9.6

func (fake *UserRepository) TreesReturnsOnCall(i int, result1 gitprovider.TreeClient)

func (*UserRepository) Update

func (fake *UserRepository) Update(arg1 context.Context) error

func (*UserRepository) UpdateArgsForCall

func (fake *UserRepository) UpdateArgsForCall(i int) context.Context

func (*UserRepository) UpdateCallCount

func (fake *UserRepository) UpdateCallCount() int

func (*UserRepository) UpdateCalls

func (fake *UserRepository) UpdateCalls(stub func(context.Context) error)

func (*UserRepository) UpdateReturns

func (fake *UserRepository) UpdateReturns(result1 error)

func (*UserRepository) UpdateReturnsOnCall

func (fake *UserRepository) UpdateReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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