local

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 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) GetIsFork added in v0.10.0

func (gl Repo) GetIsFork() bool

func (Repo) GetProviderName

func (gl Repo) GetProviderName() string

func (Repo) GetRepoIdentifier

func (gl Repo) GetRepoIdentifier() string

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