compliancepolicy

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package compliancepolicy implements MCP tools for GitLab admin-level compliance policy settings management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatOutputMarkdown

func FormatOutputMarkdown(out Output) string

FormatOutputMarkdown formats compliance policy settings as Markdown.

func RegisterTools

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

RegisterTools registers MCP tools for GitLab admin compliance policy settings.

Types

type GetInput

type GetInput struct{}

GetInput holds parameters for retrieving compliance policy settings.

type Output

type Output struct {
	toolutil.HintableOutput
	CSPNamespaceID *int64 `json:"csp_namespace_id"`
}

Output represents compliance policy settings.

func Get

func Get(ctx context.Context, client *gitlabclient.Client, _ GetInput) (Output, error)

Get retrieves the current admin compliance policy settings.

func Update

func Update(ctx context.Context, client *gitlabclient.Client, in UpdateInput) (Output, error)

Update modifies the admin compliance policy settings.

type UpdateInput

type UpdateInput struct {
	CSPNamespaceID *int64 `json:"csp_namespace_id,omitempty" jsonschema:"Namespace ID for the compliance security policy project"`
}

UpdateInput holds parameters for updating compliance policy settings.

Jump to

Keyboard shortcuts

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