Documentation ¶
Index ¶
- func EstimateWorkloadCosts(mainTfContent string, currentCosts float64, ...) (string, string, error)
- func NewGitHubClient(token string) *github.Client
- func WriteAssets(outputDir string, assets *Assets, writePrompts bool) error
- type Assets
- func GenerateCleverCloudMigrationAssets(authToken, awsKey, awsSecret, qoveryAPIKey, githubToken, destination string, ...) (*Assets, error)
- func GenerateHerokuMigrationAssets(herokuAPIKey, awsKey, awsSecret, qoveryAPIKey, githubToken, destination string, ...) (*Assets, error)
- func GenerateMigrationAssets(configs []sources.AppConfig, ...) (*Assets, error)
- type Dockerfile
- type GeneratedTerraform
- type ProgressUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateWorkloadCosts ¶
func EstimateWorkloadCosts(mainTfContent string, currentCosts float64, bedrockClient *bedrock.BedrockClient) (string, string, error)
EstimateWorkloadCosts estimates the costs of running the workload and provides a comparison report
func NewGitHubClient ¶
NewGitHubClient creates a new GitHub client with optional authentication
Types ¶
type Assets ¶
type Assets struct { ReadmeMarkdown string GeneratedTerraformFiles []GeneratedTerraform Dockerfiles []Dockerfile CostEstimationReportMarkdown string }
Assets represents the generated assets for migration
func GenerateCleverCloudMigrationAssets ¶
func GenerateCleverCloudMigrationAssets(authToken, awsKey, awsSecret, qoveryAPIKey, githubToken, destination string, bedrockClientConfig bedrock.ClientConfig, progressChan chan<- ProgressUpdate) (*Assets, error)
func GenerateHerokuMigrationAssets ¶
func GenerateHerokuMigrationAssets(herokuAPIKey, awsKey, awsSecret, qoveryAPIKey, githubToken, destination string, bedrockClientConfig bedrock.ClientConfig, progressChan chan<- ProgressUpdate) (*Assets, error)
func GenerateMigrationAssets ¶
func GenerateMigrationAssets(configs []sources.AppConfig, awsKey, awsSecret, qoveryAPIKey, githubToken, destination string, bedrockClientConfig bedrock.ClientConfig, progressChan chan<- ProgressUpdate) (*Assets, error)
GenerateMigrationAssets generates all necessary assets for migration and reports progress
type Dockerfile ¶
Dockerfile represents a generated Dockerfile for an app
type GeneratedTerraform ¶
func (GeneratedTerraform) SanitizeAppName ¶
func (g GeneratedTerraform) SanitizeAppName() string
type ProgressUpdate ¶
ProgressUpdate represents a progress update
Click to show internal directories.
Click to hide internal directories.