generation

package
v0.0.0-...-a1f8bd1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileGenerator

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

FileGenerator handles configuration file generation

func NewFileGenerator

func NewFileGenerator() *FileGenerator

NewFileGenerator creates a new file generator instance

func NewFileGeneratorWithMode

func NewFileGeneratorWithMode(devMode *modes.DeveloperMode) *FileGenerator

NewFileGeneratorWithMode creates a file generator with existing DeveloperMode (for reuse)

func (*FileGenerator) GenerateClientYAML

func (g *FileGenerator) GenerateClientYAML(analysis *analysis.ProjectAnalysis, opts GenerateOptions) (string, error)

GenerateClientYAML generates Simple Container client configuration

func (*FileGenerator) GenerateDockerCompose

func (g *FileGenerator) GenerateDockerCompose(analysis *analysis.ProjectAnalysis, opts GenerateOptions) (string, error)

GenerateDockerCompose generates docker-compose.yaml for local development

func (*FileGenerator) GenerateDockerfile

func (g *FileGenerator) GenerateDockerfile(analysis *analysis.ProjectAnalysis, opts GenerateOptions) (string, error)

GenerateDockerfile generates optimized Dockerfile based on tech stack

func (*FileGenerator) WriteFile

func (g *FileGenerator) WriteFile(path, content string, overwrite bool) error

WriteFile writes content to a file, creating directories as needed

type GenerateOptions

type GenerateOptions struct {
	ProjectPath   string
	ProjectName   string
	Environment   string
	Parent        string
	CloudProvider string
	OutputDir     string
	SkipExisting  bool
}

GenerateOptions contains options for file generation

Jump to

Keyboard shortcuts

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