gitlab

package
v0.0.0-...-82180e8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Address = "https://gitlab.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client holds a gitlab api client instance

func NewClient

func NewClient(token string) (*Client, error)

NewClient creates a Gitlab API client instance

func (*Client) GetOrganizationMembers

func (c *Client) GetOrganizationMembers(ctx context.Context, target _coreapi.Owner) ([]*_coreapi.Owner, error)

GetOrganizationMembers will gather all the members of a given organization

func (*Client) GetRepositoriesFromOwner

func (c *Client) GetRepositoriesFromOwner(ctx context.Context, target _coreapi.Owner) ([]*_coreapi.Repository, error)

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

func (*Client) GetUserOrganization

func (c *Client) GetUserOrganization(ctx context.Context, login string) (*_coreapi.Owner, error)

GetUserOrganization is used to enumerate the owner in a given org

Jump to

Keyboard shortcuts

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