gitearemote

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOwnerRepo

func GetOwnerRepo(fullName string) (string, string)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL