Documentation
¶
Index ¶
- func GetOperationAccessLevel(operation string) string
- func GetSupportedOperations() []string
- func MapOperationToCommand(operation string) (string, error)
- func RegisterAzAksOperations(cfg *config.ConfigData) mcp.Tool
- func ValidateOperationAccess(operation string, cfg *config.ConfigData) error
- type AksOperationType
- type AksOperationsExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOperationAccessLevel ¶ added in v0.0.3
GetOperationAccessLevel returns the required access level for an operation
func GetSupportedOperations ¶ added in v0.0.3
func GetSupportedOperations() []string
GetSupportedOperations returns a list of all supported operations
func MapOperationToCommand ¶ added in v0.0.3
MapOperationToCommand maps an operation to its corresponding az command
func RegisterAzAksOperations ¶ added in v0.0.3
func RegisterAzAksOperations(cfg *config.ConfigData) mcp.Tool
RegisterAzAksOperations registers the AKS operations tool
func ValidateOperationAccess ¶ added in v0.0.3
func ValidateOperationAccess(operation string, cfg *config.ConfigData) error
ValidateOperationAccess checks if the operation is allowed for the given access level
Types ¶
type AksOperationType ¶ added in v0.0.3
type AksOperationType string
AksOperationType defines the type of AKS operation
const ( // Cluster operations OpClusterShow AksOperationType = "show" OpClusterList AksOperationType = "list" OpClusterCreate AksOperationType = "create" OpClusterDelete AksOperationType = "delete" OpClusterScale AksOperationType = "scale" OpClusterStart AksOperationType = "start" OpClusterStop AksOperationType = "stop" OpClusterUpdate AksOperationType = "update" OpClusterUpgrade AksOperationType = "upgrade" OpClusterGetVersions AksOperationType = "get-versions" OpClusterCheckNetwork AksOperationType = "check-network" OpClusterGetCredentials AksOperationType = "get-credentials" // Nodepool operations OpNodepoolList AksOperationType = "nodepool-list" OpNodepoolShow AksOperationType = "nodepool-show" OpNodepoolAdd AksOperationType = "nodepool-add" OpNodepoolDelete AksOperationType = "nodepool-delete" OpNodepoolScale AksOperationType = "nodepool-scale" OpNodepoolUpgrade AksOperationType = "nodepool-upgrade" // Account operations OpAccountList AksOperationType = "account-list" OpAccountSet AksOperationType = "account-set" OpLogin AksOperationType = "login" )
type AksOperationsExecutor ¶ added in v0.0.3
type AksOperationsExecutor struct{}
AksOperationsExecutor handles execution of AKS operations
func NewAksOperationsExecutor ¶ added in v0.0.3
func NewAksOperationsExecutor() *AksOperationsExecutor
NewAksOperationsExecutor creates a new AksOperationsExecutor
func (*AksOperationsExecutor) Execute ¶ added in v0.0.3
func (e *AksOperationsExecutor) Execute(params map[string]interface{}, cfg *config.ConfigData) (string, error)
Execute handles the AKS operations
func (*AksOperationsExecutor) ExecuteSpecificCommand ¶ added in v0.0.3
func (e *AksOperationsExecutor) ExecuteSpecificCommand(operation string, params map[string]interface{}, cfg *config.ConfigData) (string, error)
ExecuteSpecificCommand executes a specific operation with the given arguments (for backward compatibility)