Help us shape the future of Go! Take the 2026 Go Developer Survey

groupldap

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package groupldap implements MCP tools for GitLab group LDAP link operations.

The package wraps the GitLab Group LDAP links API:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionSpecs

func ActionSpecs(client *gitlabclient.Client) []toolutil.ActionSpec

ActionSpecs returns canonical specs for group LDAP link actions.

func DeleteForProvider

func DeleteForProvider(ctx context.Context, client *gitlabclient.Client, input DeleteForProviderInput) error

DeleteForProvider deletes a group LDAP link for a specific provider.

func DeleteWithCNOrFilter

func DeleteWithCNOrFilter(ctx context.Context, client *gitlabclient.Client, input DeleteWithCNOrFilterInput) error

DeleteWithCNOrFilter deletes a group LDAP link by CN or filter.

func FormatListMarkdown

func FormatListMarkdown(out ListOutput) string

FormatListMarkdown renders a list of group LDAP links as Markdown.

func FormatOutputMarkdown

func FormatOutputMarkdown(out Output) string

FormatOutputMarkdown renders a single group LDAP link as Markdown.

Types

type AddInput

type AddInput struct {
	GroupID      string `json:"group_id" jsonschema:"Group ID or URL-encoded path,required"`
	CN           string `json:"cn,omitempty" jsonschema:"LDAP Common Name (CN)"`
	Filter       string `json:"filter,omitempty" jsonschema:"LDAP filter"`
	GroupAccess  int    `` /* 236-byte string literal not displayed */
	Provider     string `json:"provider" jsonschema:"LDAP provider name,required"`
	MemberRoleID *int64 `json:"member_role_id,omitempty" jsonschema:"Custom member role ID"`
}

AddInput holds parameters for adding a group LDAP link.

type DeleteForProviderInput

type DeleteForProviderInput struct {
	GroupID  string `json:"group_id" jsonschema:"Group ID or URL-encoded path,required"`
	Provider string `json:"provider" jsonschema:"LDAP provider name,required"`
	CN       string `json:"cn" jsonschema:"LDAP Common Name,required"`
}

DeleteForProviderInput holds parameters for deleting a group LDAP link for a specific provider.

type DeleteOutput

type DeleteOutput = toolutil.DeleteOutput

DeleteOutput confirms the deletion of an LDAP link.

func Sync

func Sync(ctx context.Context, client *gitlabclient.Client, input SyncInput) (DeleteOutput, error)

Sync triggers a synchronization of the group's LDAP group links. The GitLab API returns 202 Accepted; the actual sync runs asynchronously in the background.

type DeleteWithCNOrFilterInput

type DeleteWithCNOrFilterInput struct {
	GroupID  string `json:"group_id" jsonschema:"Group ID or URL-encoded path,required"`
	CN       string `json:"cn,omitempty" jsonschema:"LDAP Common Name to delete"`
	Filter   string `json:"filter,omitempty" jsonschema:"LDAP filter to delete"`
	Provider string `json:"provider,omitempty" jsonschema:"LDAP provider name"`
}

DeleteWithCNOrFilterInput holds parameters for deleting a group LDAP link by CN or filter.

type ListInput

type ListInput struct {
	GroupID string `json:"group_id" jsonschema:"Group ID or URL-encoded path,required"`
}

ListInput holds parameters for listing group LDAP links.

type ListOutput

type ListOutput struct {
	toolutil.HintableOutput
	Links []Output `json:"links"`
}

ListOutput holds a list of group LDAP links.

func List

func List(ctx context.Context, client *gitlabclient.Client, input ListInput) (ListOutput, error)

List retrieves all LDAP links for a group.

type Output

type Output struct {
	toolutil.HintableOutput
	CN           string `json:"cn"`
	Filter       string `json:"filter,omitempty"`
	GroupAccess  int    `json:"group_access"`
	Provider     string `json:"provider"`
	MemberRoleID int64  `json:"member_role_id,omitempty"`
}

Output represents a single group LDAP link.

func Add

func Add(ctx context.Context, client *gitlabclient.Client, input AddInput) (Output, error)

Add creates a new group LDAP link.

type SyncInput

type SyncInput struct {
	GroupID string `json:"group_id" jsonschema:"Group ID or URL-encoded path,required"`
}

SyncInput holds parameters for triggering a group LDAP sync.

Jump to

Keyboard shortcuts

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