gitlab

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 7 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

This section is empty.

Types

type Client

type Client struct {
	*gitlabSDK.Client
	AccountCreationGroup string
	IsOnPremise          bool
}

func NewClient

func NewClient(ctx context.Context, accessToken, baseURL, accountCreationGroup string) (*Client, error)

func (*Client) AddGroupMember

func (o *Client) AddGroupMember(ctx context.Context, groupId string, userId int, accessLevel gitlabSDK.AccessLevelValue) error

func (*Client) AddProjectMember

func (o *Client) AddProjectMember(ctx context.Context, projectId string, userId int, accessLevel gitlabSDK.AccessLevelValue) (*gitlabSDK.ProjectMember, error)

func (*Client) GetAllUsers added in v0.0.13

func (o *Client) GetAllUsers(ctx context.Context, nextPageToken string) ([]gitlabSDK.User, *gitlabSDK.Response, error)

func (*Client) InviteGroupMember added in v0.0.4

func (o *Client) InviteGroupMember(ctx context.Context, groupId, userEmail string, accessLevel gitlabSDK.AccessLevelValue) error

func (*Client) ListGroupMembers

func (o *Client) ListGroupMembers(ctx context.Context, groupId string) ([]*gitlabSDK.GroupMember, *gitlabSDK.Response, error)

func (*Client) ListGroupMembersPaginate

func (o *Client) ListGroupMembersPaginate(ctx context.Context, groupId string, nextPageStr string) ([]*gitlabSDK.GroupMember, *gitlabSDK.Response, error)

func (*Client) ListGroups

func (o *Client) ListGroups(ctx context.Context, nextPageStr string) ([]*gitlabSDK.Group, *gitlabSDK.Response, error)

func (*Client) ListProjectMembers

func (o *Client) ListProjectMembers(ctx context.Context, projectId string) ([]*gitlabSDK.ProjectMember, *gitlabSDK.Response, error)

func (*Client) ListProjectMembersPaginate

func (o *Client) ListProjectMembersPaginate(ctx context.Context, projectId, nextPageStr string) ([]*gitlabSDK.ProjectMember, *gitlabSDK.Response, error)

func (*Client) ListProjects

func (o *Client) ListProjects(ctx context.Context, groupId, nextPageStr string) ([]*gitlabSDK.Project, *gitlabSDK.Response, error)

func (*Client) RemoveGroupMember

func (o *Client) RemoveGroupMember(ctx context.Context, groupId string, userId int) error

func (*Client) RemoveProjectMember

func (o *Client) RemoveProjectMember(ctx context.Context, projectId string, userId int) error

Jump to

Keyboard shortcuts

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