Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitRepository ¶
type GitRepository struct { ID int64 `json:"id"` Name string `json:"name"` FullName string `json:"full_name"` Size int `json:"size"` HTMLURL string `json:"html_url"` SSHURL string `json:"ssh_url"` CloneURL string `json:"clone_url"` OriginalURL string `json:"original_url"` }
Repository represents a repository
type GiteaClient ¶
func NewGiteaClient ¶
func NewGiteaClient(gitArgs *GitArgs) *GiteaClient
NewGiteaClient new a gitea clientv2
func (*GiteaClient) ListBranches ¶
func (client *GiteaClient) ListBranches(repoName string) ([]string, error)
ListBranch get a repo all Branch
func (*GiteaClient) ListRepositories ¶
func (client *GiteaClient) ListRepositories(org string) ([]*GitRepository, error)
ListRepositories get current user all repos by org
Click to show internal directories.
Click to hide internal directories.