compute

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package compute provides handler functions for Azure compute resource tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAKSVMSSInfoHandler

func GetAKSVMSSInfoHandler(client *azureclient.AzureClient, cfg *config.ConfigData) tools.ResourceHandler

GetAKSVMSSInfoHandler returns a handler for the get_aks_vmss_info command

func GetNodePoolsFromAKS

GetNodePoolsFromAKS extracts all node pools from an AKS cluster

func GetVMSSIDFromNodePool

func GetVMSSIDFromNodePool(
	ctx context.Context,
	cluster *armcontainerservice.ManagedCluster,
	nodePoolName string,
	client *azureclient.AzureClient,
) (string, error)

GetVMSSIDFromNodePool extracts the VMSS resource ID from a node pool

func GetVMSSInstancesFromNodePool

func GetVMSSInstancesFromNodePool(
	ctx context.Context,
	cluster *armcontainerservice.ManagedCluster,
	nodePoolName string,
	client *azureclient.AzureClient,
) ([]interface{}, error)

GetVMSSInstancesFromNodePool gets VM instances from a VMSS for a specific node pool

func RegisterAKSVMSSInfoTool

func RegisterAKSVMSSInfoTool() mcp.Tool

RegisterAKSVMSSInfoTool registers the get_aks_vmss_info tool

func RegisterAzComputeCommand

func RegisterAzComputeCommand(cmd ComputeCommand) mcp.Tool

RegisterAzComputeCommand registers a specific az vmss command as an MCP tool

func RegisterAzVmssCommand

func RegisterAzVmssCommand(cmd ComputeCommand) mcp.Tool

RegisterAzVmssCommand registers a specific az vmss command as an MCP tool

Types

type ComputeCommand

type ComputeCommand struct {
	Name        string
	Description string
	ArgsExample string // Example of command arguments
}

ComputeCommand defines a specific az vmss command to be registered as a tool

func GetAdminVmssAzCommands

func GetAdminVmssAzCommands() []ComputeCommand

GetAdminVmssAzCommands returns all admin az vmss commands

func GetAdminVmssCommands

func GetAdminVmssCommands() []ComputeCommand

GetAdminVmssCommands returns all admin az vmss commands

func GetReadOnlyVmssAzCommands

func GetReadOnlyVmssAzCommands() []ComputeCommand

GetReadOnlyVmssAzCommands returns all read-only az vmss commands

func GetReadOnlyVmssCommands

func GetReadOnlyVmssCommands() []ComputeCommand

GetReadOnlyVmssCommands returns all read-only az vmss commands

func GetReadWriteVmssAzCommands

func GetReadWriteVmssAzCommands() []ComputeCommand

GetReadWriteVmssAzCommands returns all read-write az vmss commands

func GetReadWriteVmssCommands

func GetReadWriteVmssCommands() []ComputeCommand

GetReadWriteVmssCommands returns all read-write az vmss commands

Jump to

Keyboard shortcuts

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