Documentation
¶
Index ¶
- type ArchitectureAnalysis
- type ArchitectureAnalyzer
- type DatabaseRequirement
- type FileStorageRequirement
- type GeneratedProject
- type InfrastructureValidator
- type MonitoringRequirement
- type NetworkRequirement
- type PulumiGenerator
- type SecurityRequirement
- type ServiceRequirement
- type StorageRequirement
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchitectureAnalysis ¶
type ArchitectureAnalysis struct {
Services []ServiceRequirement `json:"services"`
Networking NetworkRequirement `json:"networking"`
Storage StorageRequirement `json:"storage"`
Security SecurityRequirement `json:"security"`
Monitoring MonitoringRequirement `json:"monitoring"`
Estimated_Cost string `json:"estimated_cost"`
}
ArchitectureAnalysis represents the analysis result
type ArchitectureAnalyzer ¶
ArchitectureAnalyzer analyzes input and extracts infrastructure requirements
func NewArchitectureAnalyzer ¶
func NewArchitectureAnalyzer(mcpClient *llm.MCPClient, runtime *shared.RuntimeContext) *ArchitectureAnalyzer
NewArchitectureAnalyzer creates a new architecture analyzer
func (*ArchitectureAnalyzer) Analyze ¶
func (a *ArchitectureAnalyzer) Analyze(input map[string]string) (*ArchitectureAnalysis, error)
Analyze performs architecture analysis
type DatabaseRequirement ¶
type FileStorageRequirement ¶
type GeneratedProject ¶
type GeneratedProject struct {
ProjectFiles map[string]string `json:"project_files"`
Dependencies []string `json:"dependencies"`
Instructions string `json:"instructions"`
}
GeneratedProject represents the generated Pulumi project
type InfrastructureValidator ¶
InfrastructureValidator validates the generated infrastructure code
func NewInfrastructureValidator ¶
func NewInfrastructureValidator(mcpClient *llm.MCPClient, runtime *shared.RuntimeContext) *InfrastructureValidator
NewInfrastructureValidator creates a new infrastructure validator
func (*InfrastructureValidator) Validate ¶
func (v *InfrastructureValidator) Validate(project *GeneratedProject) (*ValidationResult, error)
Validate performs validation on the generated project
type MonitoringRequirement ¶
type NetworkRequirement ¶
type PulumiGenerator ¶
PulumiGenerator generates Pulumi TypeScript code
func NewPulumiGenerator ¶
func NewPulumiGenerator(mcpClient *llm.MCPClient, runtime *shared.RuntimeContext) *PulumiGenerator
NewPulumiGenerator creates a new Pulumi code generator
func (*PulumiGenerator) Generate ¶
func (g *PulumiGenerator) Generate(analysis *ArchitectureAnalysis, projectConfig map[string]string) (*GeneratedProject, error)
Generate creates Pulumi project code
type SecurityRequirement ¶
type ServiceRequirement ¶
type StorageRequirement ¶
type StorageRequirement struct {
Databases []DatabaseRequirement `json:"databases"`
FileStorage []FileStorageRequirement `json:"file_storage"`
}
Click to show internal directories.
Click to hide internal directories.