local

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	analyze.Repository
	BaseUrl string
	Org     string
	Name    string
}

func (Repo) BuildGitURL

func (gl Repo) BuildGitURL(baseURL string) string

func (Repo) GetDefaultBranch added in v0.15.1

func (gl Repo) GetDefaultBranch() string

func (Repo) GetForksCount added in v0.15.1

func (gl Repo) GetForksCount() int

func (Repo) GetHasDiscussion added in v0.15.1

func (gl Repo) GetHasDiscussion() bool

func (Repo) GetHasIssues added in v0.15.1

func (gl Repo) GetHasIssues() bool

func (Repo) GetHasWiki added in v0.15.1

func (gl Repo) GetHasWiki() bool

func (Repo) GetIsEmpty added in v0.15.1

func (gl Repo) GetIsEmpty() bool

func (Repo) GetIsFork added in v0.10.0

func (gl Repo) GetIsFork() bool

func (Repo) GetIsTemplate added in v0.15.1

func (gl Repo) GetIsTemplate() bool

func (Repo) GetLicense added in v0.15.1

func (gl Repo) GetLicense() string

func (Repo) GetOpenIssuesCount added in v0.15.1

func (gl Repo) GetOpenIssuesCount() int

func (Repo) GetOrganizationID added in v0.15.1

func (gl Repo) GetOrganizationID() int

func (Repo) GetPrimaryLanguage added in v0.15.1

func (gl Repo) GetPrimaryLanguage() string

func (Repo) GetProviderName

func (gl Repo) GetProviderName() string

func (Repo) GetRepoIdentifier

func (gl Repo) GetRepoIdentifier() string

func (Repo) GetRepositoryID added in v0.15.1

func (gl Repo) GetRepositoryID() int

func (Repo) GetSize added in v0.15.1

func (gl Repo) GetSize() int

func (Repo) GetStarsCount added in v0.15.1

func (gl Repo) GetStarsCount() int

type ScmClient

type ScmClient struct {
	analyze.ScmClient
	// contains filtered or unexported fields
}

func NewGitSCMClient

func NewGitSCMClient(ctx context.Context, repoPath string, gitCommand *gitops.GitCommand) (*ScmClient, error)

func (*ScmClient) GetBaseURL added in v0.15.2

func (s *ScmClient) GetBaseURL() (string, error)

func (*ScmClient) GetOrgRepos

func (s *ScmClient) GetOrgRepos(ctx context.Context, org string) <-chan analyze.RepoBatch

func (*ScmClient) GetProviderBaseURL

func (s *ScmClient) GetProviderBaseURL() string

func (*ScmClient) GetProviderName

func (s *ScmClient) GetProviderName() string

func (*ScmClient) GetProviderVersion

func (s *ScmClient) GetProviderVersion(ctx context.Context) (string, error)

func (*ScmClient) GetRepo

func (s *ScmClient) GetRepo(ctx context.Context, org string, name string) (analyze.Repository, error)

func (*ScmClient) GetToken

func (s *ScmClient) GetToken() string

func (*ScmClient) ParseRepoAndOrg

func (s *ScmClient) ParseRepoAndOrg(repoString string) (string, string, error)

Jump to

Keyboard shortcuts

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