gitlab

package
v0.0.0-...-81b3271 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package gitlab represents github specific functionality

Package gitlab represents github specific functionality

Index

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

func (c Client) GetOrganizationMembers(target common.Owner) ([]*common.Owner, error)

GetOrganizationMembers will gather all the members of a given organization

func (Client) GetRepositoriesFromOwner

func (c Client) GetRepositoriesFromOwner(target common.Owner) ([]*common.Repository, error)

GetRepositoriesFromOwner is used gather all the repos associated with the org owner or other user

func (Client) GetUserOrganization

func (c Client) GetUserOrganization(login string) (*common.Owner, error)

GetUserOrganization is used to enumerate the owner in a given org

func (Client) NewClient

func (c Client) NewClient(token string, logger *common.Logger) (Client, error)

NewClient creates a gitlab api client instance using a token

Jump to

Keyboard shortcuts

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