validate

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvVars

func EnvVars(request mcp.CallToolRequest) ([]client.EnvVarInput, bool, error)

func KeyValuePlan

func KeyValuePlan(plan string) (*client.KeyValuePlan, error)

func OptionalToolArrayParam

func OptionalToolArrayParam[T any](request mcp.CallToolRequest, param string) ([]T, bool, error)

func OptionalToolParam

func OptionalToolParam[T any](request mcp.CallToolRequest, param string) (T, bool, error)

OptionalToolParam retrieves an optional parameter from the request arguments. If the parameter is present and of the correct type, it returns the value and true. If the parameter is not present or of the incorrect type, it returns the zero value and false.

func PaidPlan

func PaidPlan(plan string) (*client.PaidPlan, error)

func PostgresDiskSizeGb

func PostgresDiskSizeGb(diskSizeGb int) error

func PostgresPlan

func PostgresPlan(plan string) (pgclient.PostgresPlans, error)

func RequiredToolArrayParam

func RequiredToolArrayParam[T any](request mcp.CallToolRequest, param string) ([]T, error)

func RequiredToolParam

func RequiredToolParam[T any](request mcp.CallToolRequest, param string) (T, error)

func WorkspaceMatches

func WorkspaceMatches(workspaceID string) error

WorkspaceMatches gets the workspace from the config and validates that it matches the provided input. If the workspace is not set, no error is returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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