Versions in this module Expand all Collapse all v0 v0.2.2 Apr 19, 2026 v0.2.1 Apr 16, 2026 Changes in this version + type BlobContent struct + Content string + Encoding string + SHA string + Size int64 + URL string type Client + func (c *Client) GetBlob(ctx context.Context, owner, repo, sha string) (*BlobContent, error) + func (c *Client) GetIssue(ctx context.Context, owner, repo string, number int) (*Issue, error) + func (c *Client) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) v0.2.0 Apr 8, 2026 Changes in this version + func FormatContainerID(owner, repo string) string + func ParseContainerID(containerID string) (owner, repo string, err error) + type Builder struct + func NewBuilder() *Builder + func NewBuilderWithConfig(config *Config) *Builder + func (b *Builder) Build(ctx context.Context, tokenProvider driven.TokenProvider, containerID string) (driven.Connector, error) + func (b *Builder) OAuthConfig() *driven.OAuthConfig + func (b *Builder) SupportsContainerSelection() bool + func (b *Builder) SupportsOAuth() bool + func (b *Builder) Type() domain.ProviderType + type Client struct + func NewClient(tokenProvider driven.TokenProvider, baseURL string) *Client + func (c *Client) GetFileContent(ctx context.Context, owner, repo, path string) (*FileContent, error) + func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*Repository, error) + func (c *Client) GetTree(ctx context.Context, owner, repo, sha string) ([]*TreeEntry, error) + func (c *Client) GetUser(ctx context.Context) (*User, error) + func (c *Client) ListAccessibleRepos(ctx context.Context, cursor string) (*ListReposResponse, error) + func (c *Client) ListIssues(ctx context.Context, owner, repo string, since *time.Time, cursor string) ([]*Issue, string, error) + func (c *Client) ListPullRequests(ctx context.Context, owner, repo string, cursor string) ([]*PullRequest, string, error) + func (c *Client) ValidateRepoAccess(ctx context.Context, owner, repo string) error + type Commit struct + Author *CommitAuthor + Date time.Time + Message string + SHA string + type CommitAuthor struct + Date time.Time + Email string + Name string + type Config struct + APIBaseURL string + Concurrency int + ExcludePaths []string + FileExtensions []string + IncludeDiscussions bool + IncludeFiles bool + IncludeIssues bool + IncludePRs bool + IncludeWiki bool + MaxFileSize int64 + MaxRetries int + PerPage int + func DefaultConfig() *Config + type Connector struct + func NewConnector(tokenProvider driven.TokenProvider, owner, repo string, config *Config) *Connector + func (c *Connector) FetchChanges(ctx context.Context, source *domain.Source, cursor string) ([]*domain.Change, string, error) + func (c *Connector) FetchDocument(ctx context.Context, source *domain.Source, externalID string) (*domain.Document, string, error) + func (c *Connector) TestConnection(ctx context.Context, source *domain.Source) error + func (c *Connector) Type() domain.ProviderType + func (c *Connector) ValidateConfig(config domain.SourceConfig) error + type ContainerLister struct + func NewContainerLister(tokenProvider driven.TokenProvider, baseURL string) *ContainerLister + func (l *ContainerLister) ListContainers(ctx context.Context, cursor string) ([]*driven.Container, string, error) + type ContainerListerFactory struct + func NewContainerListerFactory(installationStore driven.ConnectionStore, ...) *ContainerListerFactory + func (f *ContainerListerFactory) Create(ctx context.Context, installationID string) (driven.ContainerLister, error) + type FileContent struct + Content string + Encoding string + HTMLURL string + Name string + Path string + SHA string + Size int64 + type Issue struct + Body string + ClosedAt *time.Time + Comments int + CreatedAt time.Time + HTMLURL string + ID int64 + IsPR bool + Labels []Label + Number int + State string + Title string + UpdatedAt time.Time + User *User + type Label struct + Color string + Name string + type ListReposResponse struct + NextCursor string + Repos []*Repository + type OAuthConfig struct + ClientID string + ClientSecret string + type OAuthHandler struct + func NewOAuthHandler() *OAuthHandler + func (h *OAuthHandler) BuildAuthURL(clientID, redirectURI, state, codeChallenge string, scopes []string) string + func (h *OAuthHandler) DefaultConfig() connectors.OAuthDefaults + func (h *OAuthHandler) ExchangeCode(ctx context.Context, ...) (*driven.OAuthToken, error) + func (h *OAuthHandler) GetUserInfo(ctx context.Context, accessToken string) (*driven.OAuthUserInfo, error) + func (h *OAuthHandler) RefreshToken(ctx context.Context, clientID, clientSecret, refreshToken string) (*driven.OAuthToken, error) + type PRBranch struct + Ref string + SHA string + type PullRequest struct + Base *PRBranch + Body string + ClosedAt *time.Time + CreatedAt time.Time + HTMLURL string + Head *PRBranch + ID int64 + MergedAt *time.Time + Number int + State string + Title string + UpdatedAt time.Time + User *User + type Repository struct + Archived bool + DefaultBranch string + Description string + FullName string + HTMLURL string + ID int64 + Name string + Owner string + OwnerInfo *RepositoryOwner + Private bool + type RepositoryOwner struct + ID int64 + Login string + type TokenRefresher struct + func NewTokenRefresher(clientID, clientSecret string) *TokenRefresher + type TreeEntry struct + Mode string + Path string + SHA string + Size int64 + Type string + URL string + type User struct + AvatarURL string + Email string + HTMLURL string + ID int64 + Login string + Name string