azuredevopsrepo

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAzureDevOpsRepo

func MakeAzureDevOpsRepo(input string) (clients.Repo, error)

MakeAzureDevOpsRepo takes input of forms in parse and returns and implementation of clients.Repo interface.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func CreateAzureDevOpsClient

func CreateAzureDevOpsClient(ctx context.Context, repo clients.Repo) (*Client, error)

func CreateAzureDevOpsClientWithToken

func CreateAzureDevOpsClientWithToken(ctx context.Context, token string, repo clients.Repo) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetBranch

func (c *Client) GetBranch(branch string) (*clients.BranchRef, error)

func (*Client) GetCreatedAt

func (c *Client) GetCreatedAt() (time.Time, error)

func (*Client) GetDefaultBranch

func (c *Client) GetDefaultBranch() (*clients.BranchRef, error)

func (*Client) GetDefaultBranchName

func (c *Client) GetDefaultBranchName() (string, error)

func (*Client) GetFileReader

func (c *Client) GetFileReader(filename string) (io.ReadCloser, error)

func (*Client) GetOrgRepoClient

func (c *Client) GetOrgRepoClient(context.Context) (clients.RepoClient, error)

Org repository, AKA the <org>/.github repository, is a GitHub-specific feature.

func (*Client) InitRepo

func (c *Client) InitRepo(inputRepo clients.Repo, commitSHA string, commitDepth int) error

func (*Client) IsArchived

func (c *Client) IsArchived() (bool, error)

func (*Client) ListCheckRunsForRef

func (c *Client) ListCheckRunsForRef(ref string) ([]clients.CheckRun, error)

func (*Client) ListCommits

func (c *Client) ListCommits() ([]clients.Commit, error)

func (*Client) ListContributors

func (c *Client) ListContributors() ([]clients.User, error)

func (*Client) ListFiles

func (c *Client) ListFiles(predicate func(string) (bool, error)) ([]string, error)

func (*Client) ListIssues

func (c *Client) ListIssues() ([]clients.Issue, error)

func (*Client) ListLicenses

func (c *Client) ListLicenses() ([]clients.License, error)

Azure DevOps doesn't have a license detection feature. Thankfully, the License check falls back to file-based detection.

func (*Client) ListProgrammingLanguages

func (c *Client) ListProgrammingLanguages() ([]clients.Language, error)

func (*Client) ListReleases

func (c *Client) ListReleases() ([]clients.Release, error)

func (*Client) ListStatuses

func (c *Client) ListStatuses(ref string) ([]clients.Status, error)

func (*Client) ListSuccessfulWorkflowRuns

func (c *Client) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)

func (*Client) ListWebhooks

func (c *Client) ListWebhooks() ([]clients.Webhook, error)

func (*Client) LocalPath

func (c *Client) LocalPath() (string, error)

func (*Client) Search

func (c *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)

func (*Client) SearchCommits

func (c *Client) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)

func (*Client) URI

func (c *Client) URI() string

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func (*Repo) AppendMetadata

func (r *Repo) AppendMetadata(metadata ...string)

func (*Repo) Host

func (r *Repo) Host() string

func (*Repo) IsValid

func (r *Repo) IsValid() error

IsValid checks if the repoURL is valid.

func (*Repo) Metadata

func (r *Repo) Metadata() []string

Metadata implements Repo.Metadata.

func (*Repo) Path

func (r *Repo) Path() string

Path() implements RepoClient.Path.

func (*Repo) String

func (r *Repo) String() string

String implements Repo.String.

func (*Repo) URI

func (r *Repo) URI() string

URI implements Repo.URI().

Jump to

Keyboard shortcuts

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