gitlab

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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