Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
SHA string `json:"sha"`
Author CommitAuthor `json:"author"`
Committer CommitAuthor `json:"committer"`
Message string `json:"message"`
Date time.Time `json:"date"`
}
type CommitAuthor ¶
type Hosting ¶
type Hosting interface {
GetRepositories(ctx context.Context, owner string) ([]Repository, error)
GetRepository(ctx context.Context, owner string, repo string) (*Repository, error)
GetBranches(ctx context.Context, repo *Repository) ([]Branch, error)
GetCommits(ctx context.Context, repo *Repository) ([]Commit, error)
GetFiles(ctx context.Context, repo *Repository, path string) (*File, []File, error)
}
type Repository ¶
type Repository struct {
Owner string `json:"owner"`
Name string `json:"name"`
DefaultBranch string `json:"default_branch"`
CloneURL string `json:"clone_url"`
GitURL string `json:"git_url"`
CreatedAt time.Time `json:"created_at"`
PushedAt time.Time `json:"pushed_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.