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

resourcegroups

package
v2.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package resourcegroups implements MCP tools for GitLab CI/CD resource group operations.

The package wraps the GitLab Resource groups 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 resource group actions.

func FormatGroupMarkdown

func FormatGroupMarkdown(g ResourceGroupItem) string

FormatGroupMarkdown renders a single resource group summary.

func FormatJobsMarkdown

func FormatJobsMarkdown(out ListUpcomingJobsOutput) string

FormatJobsMarkdown renders upcoming resource-group jobs as a Markdown table.

func FormatListMarkdown

func FormatListMarkdown(out ListOutput) string

FormatListMarkdown renders resource groups as a compact Markdown table.

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 job item data for the resourcegroups package.

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 resource group item data for the resourcegroups package.

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