gitlab

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdmin added in v0.2.4

func IsAdmin(client *gitlab.Client) bool

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, token string, endpoint string, orgs []string) (*Client, error)

func (*Client) Client

func (c *Client) Client() *gitlab.Client

func (*Client) Group added in v0.2.8

func (c *Client) Group(name string) (*gitlab.Group, error)

func (*Client) GroupHooks

func (c *Client) GroupHooks(gid int) ([]*gitlab.GroupHook, error)

func (*Client) GroupMembers

func (c *Client) GroupMembers(group *gitlab.Group) ([]*gitlab.GroupMember, error)

func (*Client) GroupPlan added in v0.2.8

func (c *Client) GroupPlan(namespace string) (string, error)

func (*Client) Groups

func (c *Client) Groups() ([]*gitlab.Group, error)

func (*Client) IsAdmin added in v0.2.4

func (c *Client) IsAdmin() bool

func (*Client) IsAnalyzable

func (c *Client) IsAnalyzable(repo types.RepositoryWithOwner) (bool, error)

func (*Client) IsGroupPremium added in v0.2.8

func (c *Client) IsGroupPremium(group string) bool

func (*Client) IsServer added in v1.0.0

func (c *Client) IsServer() bool

func (*Client) Organizations

func (c *Client) Organizations() ([]types.Organization, error)

func (*Client) Repositories

func (c *Client) Repositories() ([]types.RepositoryWithOwner, error)

func (*Client) Scopes

func (c *Client) Scopes() permissions.TokenScopes

func (*Client) ServerUrl added in v1.0.0

func (c *Client) ServerUrl() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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