compliancepolicy

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package compliancepolicy implements MCP tools for GitLab security and compliance policy operations.

The package wraps the GitLab Security policy configurations 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 compliance policy setting actions.

func FormatOutputMarkdown

func FormatOutputMarkdown(out Output) string

FormatOutputMarkdown formats compliance policy settings as Markdown.

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