Documentation ¶
Index ¶
- type BitBucketClient
- func (s BitBucketClient) ChangedFilesInDiff(ctx context.Context, base string, head string) ([]string, error)
- func (s BitBucketClient) ChangedFilesInPullRequest(ctx context.Context, pullRequestID int) ([]string, error)
- func (s BitBucketClient) GetFileContents(ctx context.Context, path string, commitRef string) (content string, err error)
- func (s BitBucketClient) GetFileListing(ctx context.Context, path string, commitRef string) (fileListing []FileListingEntry, err error)
- type BitBucketCredentials
- type FileListingEntry
- type GithubClient
- func (s GithubClient) ChangedFilesInDiff(ctx context.Context, base string, head string) ([]string, error)
- func (s GithubClient) ChangedFilesInPullRequest(ctx context.Context, pullRequestID int) ([]string, error)
- func (s GithubClient) GetFileContents(ctx context.Context, path string, commitRef string) (content string, err error)
- func (s GithubClient) GetFileListing(ctx context.Context, path string, commitRef string) (fileListing []FileListingEntry, err error)
- type GitlabClient
- func (s GitlabClient) ChangedFilesInDiff(ctx context.Context, base string, head string) ([]string, error)
- func (s GitlabClient) ChangedFilesInPullRequest(ctx context.Context, pullRequestID int) ([]string, error)
- func (s GitlabClient) GetFileContents(ctx context.Context, path string, commitRef string) (content string, err error)
- func (s GitlabClient) GetFileListing(ctx context.Context, path string, commitRef string) (fileListing []FileListingEntry, err error)
- type ScmClient
- func NewBitBucketClient(someUUID uuid.UUID, authServer string, server string, clientID string, ...) (ScmClient, error)
- func NewGitHubClient(ctx context.Context, uuid uuid.UUID, server string, token string, ...) (ScmClient, error)
- func NewGitLabClient(ctx context.Context, uuid uuid.UUID, server string, token string, ...) (ScmClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitBucketClient ¶
type BitBucketClient struct {
// contains filtered or unexported fields
}
func (BitBucketClient) ChangedFilesInDiff ¶
func (BitBucketClient) ChangedFilesInPullRequest ¶
func (BitBucketClient) GetFileContents ¶
func (BitBucketClient) GetFileListing ¶
func (s BitBucketClient) GetFileListing(ctx context.Context, path string, commitRef string) ( fileListing []FileListingEntry, err error)
type BitBucketCredentials ¶
type BitBucketCredentials struct {
AccessToken string `json:"access_token"`
}
type FileListingEntry ¶
type GithubClient ¶
type GithubClient struct {
// contains filtered or unexported fields
}
func (GithubClient) ChangedFilesInDiff ¶
func (GithubClient) ChangedFilesInPullRequest ¶
func (GithubClient) GetFileContents ¶
func (GithubClient) GetFileListing ¶
func (s GithubClient) GetFileListing(ctx context.Context, path string, commitRef string) ( fileListing []FileListingEntry, err error)
type GitlabClient ¶ added in v0.3.5
type GitlabClient struct {
// contains filtered or unexported fields
}
func (GitlabClient) ChangedFilesInDiff ¶ added in v0.3.5
func (GitlabClient) ChangedFilesInPullRequest ¶ added in v0.3.5
func (GitlabClient) GetFileContents ¶ added in v0.3.5
func (GitlabClient) GetFileListing ¶ added in v0.3.5
func (s GitlabClient) GetFileListing(ctx context.Context, path string, commitRef string) ( fileListing []FileListingEntry, err error)
type ScmClient ¶
type ScmClient interface { ChangedFilesInPullRequest(ctx context.Context, pullRequestID int) ([]string, error) ChangedFilesInDiff(ctx context.Context, base string, head string) ([]string, error) GetFileContents(ctx context.Context, path string, commitRef string) ( fileContent string, err error) GetFileListing(ctx context.Context, path string, commitRef string) ( fileListing []FileListingEntry, err error) }
func NewBitBucketClient ¶
Click to show internal directories.
Click to hide internal directories.