doubles

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterFinderStub

type AdapterFinderStub struct {
	AdapterByServiceTypeValue globalEntities.LocalGitAuthProvider
	AdapterByURLValue         globalEntities.LocalGitAuthProvider
}

AdapterFinderStub implements git.AdapterFinder for testing.

func (*AdapterFinderStub) GetAdapterByServiceType

func (*AdapterFinderStub) GetAdapterByURL

type AuthStub

type AuthStub struct{}

AuthStub is a dummy transport.AuthMethod for testing.

func (*AuthStub) Name

func (s *AuthStub) Name() string

func (*AuthStub) String

func (s *AuthStub) String() string

type CommitSignerStub

type CommitSignerStub struct {
	SignatureValue string
	SignError      error
}

CommitSignerStub implements CommitSigner for testing.

func (*CommitSignerStub) Sign

func (s *CommitSignerStub) Sign(_ context.Context, _ []byte) (string, error)

type ForgeProviderStub

type ForgeProviderStub struct {
	NameValue        string
	MatchURLValue    string
	TokenValue       string
	ServiceTypeValue globalEntities.ServiceType
	AuthMethodsValue []transport.AuthMethod
}

ForgeProviderStub implements ForgeProvider + LocalGitAuthProvider for testing.

func (*ForgeProviderStub) AuthToken

func (s *ForgeProviderStub) AuthToken() string

func (*ForgeProviderStub) CloneURL

func (*ForgeProviderStub) ClosePullRequest

func (s *ForgeProviderStub) ClosePullRequest(
	_ context.Context, _ globalEntities.Repository, _ string,
) (bool, error)

func (*ForgeProviderStub) ConfigureTransport

func (s *ForgeProviderStub) ConfigureTransport()

func (*ForgeProviderStub) DiscoverRepositories

func (s *ForgeProviderStub) DiscoverRepositories(
	_ context.Context, _ string,
) ([]globalEntities.Repository, error)

func (*ForgeProviderStub) GetAuthMethods

func (s *ForgeProviderStub) GetAuthMethods(_ string) []transport.AuthMethod

func (*ForgeProviderStub) GetServiceType

func (s *ForgeProviderStub) GetServiceType() globalEntities.ServiceType

func (*ForgeProviderStub) MatchesURL

func (s *ForgeProviderStub) MatchesURL(rawURL string) bool

func (*ForgeProviderStub) Name

func (s *ForgeProviderStub) Name() string

func (*ForgeProviderStub) PrepareCloneURL

func (s *ForgeProviderStub) PrepareCloneURL(url string) string

func (*ForgeProviderStub) PullRequestExists

func (s *ForgeProviderStub) PullRequestExists(
	_ context.Context, _ globalEntities.Repository, _ string,
) (bool, error)

func (*ForgeProviderStub) SSHCloneURL

type MirrorProviderStub

type MirrorProviderStub struct {
	*ForgeProviderStub

	MigrateErr error
	Migrated   []globalEntities.MirrorInput
}

MirrorProviderStub implements MirrorProvider for testing.

func (*MirrorProviderStub) MigrateRepository

func (s *MirrorProviderStub) MigrateRepository(
	_ context.Context,
	input globalEntities.MirrorInput,
) error

type RepositoryDiscovererStub

type RepositoryDiscovererStub struct {
	NameValue string
}

RepositoryDiscovererStub implements RepositoryDiscoverer for testing.

func (*RepositoryDiscovererStub) DiscoverRepositories

func (s *RepositoryDiscovererStub) DiscoverRepositories(
	_ context.Context, _ string,
) ([]globalEntities.Repository, error)

func (*RepositoryDiscovererStub) Name

func (s *RepositoryDiscovererStub) Name() string

Jump to

Keyboard shortcuts

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