gitlab

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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