resourcegroups

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package resourcegroups implements MCP tools for GitLab resource groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatGroupMarkdown

func FormatGroupMarkdown(g ResourceGroupItem) string

FormatGroupMarkdown performs the format group markdown operation for the resourcegroups package.

func FormatJobsMarkdown

func FormatJobsMarkdown(out ListUpcomingJobsOutput) string

FormatJobsMarkdown performs the format jobs markdown operation for the resourcegroups package.

func FormatListMarkdown

func FormatListMarkdown(out ListOutput) string

FormatListMarkdown performs the format list markdown operation for the resourcegroups package.

func RegisterMeta

func RegisterMeta(server *mcp.Server, client *gitlabclient.Client)

RegisterMeta registers the gitlab_resource_group meta-tool.

func RegisterTools

func RegisterTools(server *mcp.Server, client *gitlabclient.Client)

RegisterTools registers all resource group tools with the MCP server.

Types

type EditInput

type EditInput struct {
	ProjectID   toolutil.StringOrInt `json:"project_id" jsonschema:"Project ID or URL-encoded path,required"`
	Key         string               `json:"key" jsonschema:"Resource group key,required"`
	ProcessMode string               `json:"process_mode" jsonschema:"Process mode (newest_first, oldest_first, unordered),required"`
}

EditInput defines parameters for the edit operation.

type GetInput

type GetInput struct {
	ProjectID toolutil.StringOrInt `json:"project_id" jsonschema:"Project ID or URL-encoded path,required"`
	Key       string               `json:"key" jsonschema:"Resource group key,required"`
}

GetInput defines parameters for the get operation.

type JobItem

type JobItem struct {
	ID     int64  `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
	Stage  string `json:"stage"`
}

JobItem holds data for resourcegroups operations.

type ListInput

type ListInput struct {
	ProjectID toolutil.StringOrInt `json:"project_id" jsonschema:"Project ID or URL-encoded path,required"`
}

ListInput defines parameters for the list operation.

type ListOutput

type ListOutput struct {
	toolutil.HintableOutput
	Groups []ResourceGroupItem `json:"groups"`
}

ListOutput represents the response from the list operation.

func ListAll

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

ListAll lists all for the resourcegroups package.

type ListUpcomingJobsInput

type ListUpcomingJobsInput struct {
	ProjectID toolutil.StringOrInt `json:"project_id" jsonschema:"Project ID or URL-encoded path,required"`
	Key       string               `json:"key" jsonschema:"Resource group key,required"`
}

ListUpcomingJobsInput defines parameters for the list upcoming jobs operation.

type ListUpcomingJobsOutput

type ListUpcomingJobsOutput struct {
	toolutil.HintableOutput
	Jobs []JobItem `json:"jobs"`
}

ListUpcomingJobsOutput represents the response from the list upcoming jobs operation.

func ListUpcomingJobs

func ListUpcomingJobs(ctx context.Context, client *gitlabclient.Client, input ListUpcomingJobsInput) (ListUpcomingJobsOutput, error)

ListUpcomingJobs lists upcoming jobs for the resourcegroups package.

type ResourceGroupItem

type ResourceGroupItem struct {
	toolutil.HintableOutput
	ID          int64  `json:"id"`
	Key         string `json:"key"`
	ProcessMode string `json:"process_mode"`
}

ResourceGroupItem holds data for resourcegroups operations.

func Edit

func Edit(ctx context.Context, client *gitlabclient.Client, input EditInput) (ResourceGroupItem, error)

Edit edits resources for the resourcegroups package.

func Get

Get retrieves resources for the resourcegroups package.

Jump to

Keyboard shortcuts

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