Documentation
¶
Overview ¶
Package gitlab represents github specific functionality
Package gitlab represents github specific functionality
Index ¶
- func CheckAPIToken(t string)
- func CloneRepository(cloneConfig *common.CloneConfiguration) (*git.Repository, string, error)
- type Client
- func (c Client) GetOrganizationMembers(target common.Owner) ([]*common.Owner, error)
- func (c Client) GetRepositoriesFromOwner(target common.Owner) ([]*common.Repository, error)
- func (c Client) GetUserOrganization(login string) (*common.Owner, error)
- func (c Client) NewClient(token string, logger *common.Logger) (Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAPIToken ¶
func CheckAPIToken(t string)
CheckAPIToken will ensure we have a valid github api token
func CloneRepository ¶
func CloneRepository(cloneConfig *common.CloneConfiguration) (*git.Repository, string, error)
CloneRepository will crete either an in memory clone of a given repository or clone to a temp dir.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds a gitlab api client instance
func (Client) GetOrganizationMembers ¶
GetOrganizationMembers will gather all the members of a given organization
func (Client) GetRepositoriesFromOwner ¶
GetRepositoriesFromOwner is used gather all the repos associated with the org owner or other user
func (Client) GetUserOrganization ¶
GetUserOrganization is used to enumerate the owner in a given org
Click to show internal directories.
Click to hide internal directories.