server

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents the AKS MCP service

func NewService

func NewService(cfg *config.ConfigData, opts ...ServiceOption) *Service

NewService creates a new AKS MCP service with the provided configuration and options. Options can be used to inject dependencies like azcli execution factories.

func (*Service) Initialize

func (s *Service) Initialize() error

Initialize initializes the service

func (*Service) Run

func (s *Service) Run() error

Run starts the service with the specified transport

type ServiceOption added in v0.0.7

type ServiceOption func(*Service)

ServiceOption defines a function that configures the AKS MCP service

func WithAzCliProcFactory added in v0.0.7

func WithAzCliProcFactory(f func(timeout int) azcli.Proc) ServiceOption

WithAzCliProcFactory allows callers to inject a Proc factory for azcli execution. The factory returns an azcli.Proc which can be faked in tests.

Jump to

Keyboard shortcuts

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