Documentation
¶
Overview ¶
Package compute provides handler functions for Azure compute resource tools.
Index ¶
- func GetAKSVMSSInfoHandler(client *azureclient.AzureClient, cfg *config.ConfigData) tools.ResourceHandler
- func GetNodePoolsFromAKS(ctx context.Context, cluster *armcontainerservice.ManagedCluster, ...) ([]*armcontainerservice.ManagedClusterAgentPoolProfile, error)
- func GetVMSSIDFromNodePool(ctx context.Context, cluster *armcontainerservice.ManagedCluster, ...) (string, error)
- func GetVMSSInstancesFromNodePool(ctx context.Context, cluster *armcontainerservice.ManagedCluster, ...) ([]interface{}, error)
- func RegisterAKSVMSSInfoTool() mcp.Tool
- func RegisterAzComputeCommand(cmd ComputeCommand) mcp.Tool
- func RegisterAzVmssCommand(cmd ComputeCommand) mcp.Tool
- type ComputeCommand
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 ¶
func GetNodePoolsFromAKS( ctx context.Context, cluster *armcontainerservice.ManagedCluster, client *azureclient.AzureClient, ) ([]*armcontainerservice.ManagedClusterAgentPoolProfile, error)
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 ¶
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