Documentation
¶
Index ¶
- func GetOwnerRepo(fullName string) (string, string)
- type GiteaRemote
- func (r *GiteaRemote) GetInfo() *info.RemoteInfo
- func (r *GiteaRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int
- func (r *GiteaRemote) GetRepoLanguages(repo *gitea.Repository) (*projects.ProjectLanguages, error)
- func (r *GiteaRemote) GetType() string
- func (r *GiteaRemote) ReposToProjects(repos []*gitea.Repository) []*projects.Project
- func (r *GiteaRemote) StreamProjects(pi *load.ProgressInfo, opts *remote.RemoteQueryOpts)
- func (r *GiteaRemote) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOwnerRepo ¶
Simply returns the owner (user or org) of a repo and its name in strings
Types ¶
type GiteaRemote ¶
type GiteaRemote struct {
// contains filtered or unexported fields
}
func NewGiteaRemote ¶
func NewGiteaRemote(remoteInfo *info.RemoteInfo) (*GiteaRemote, error)
Does not prepare the client due to the Gitea client making an initial http connection. API client to be set on-demand
func (*GiteaRemote) GetInfo ¶
func (r *GiteaRemote) GetInfo() *info.RemoteInfo
func (*GiteaRemote) GetNumProjects ¶
func (r *GiteaRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int
func (*GiteaRemote) GetRepoLanguages ¶
func (r *GiteaRemote) GetRepoLanguages(repo *gitea.Repository) (*projects.ProjectLanguages, error)
func (*GiteaRemote) GetType ¶
func (r *GiteaRemote) GetType() string
func (*GiteaRemote) ReposToProjects ¶
func (r *GiteaRemote) ReposToProjects(repos []*gitea.Repository) []*projects.Project
func (*GiteaRemote) StreamProjects ¶
func (r *GiteaRemote) StreamProjects(pi *load.ProgressInfo, opts *remote.RemoteQueryOpts)
func (*GiteaRemote) String ¶
func (r *GiteaRemote) String() string
Click to show internal directories.
Click to hide internal directories.