Documentation
¶
Index ¶
- type AttributeSpec
- type BenchmarkCommand
- type BenchmarkConfig
- type BenchmarkEnvironment
- type BenchmarkResults
- type BuildCommand
- type CDKDeployCommand
- type CDKDestroyCommand
- type CDKDiffCommand
- type CDKInitCommand
- type CDKSynthCommand
- type CLI
- type Command
- type DeployCommand
- type DevCommand
- type DynamORMBenchmarkCommand
- type DynamORMMigrateCommand
- type DynamORMScaffoldCommand
- type GSIAnalysis
- type GSIConfig
- type HealthCommand
- type HelpCommand
- type LSIAnalysis
- type LogsCommand
- type MetricsCommand
- type MigrationConfig
- type NewCommand
- type OperationResult
- type ScaffoldConfig
- type StreamSpec
- type TTLSpec
- type TableAnalysis
- type TestCommand
- type VersionCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeSpec ¶ added in v1.0.37
type AttributeSpec struct {
Name string `json:"name"`
Type string `json:"type"`
Required bool `json:"required"`
}
AttributeSpec defines an attribute specification
type BenchmarkCommand ¶
type BenchmarkCommand struct{}
BenchmarkCommand runs performance benchmarks
func (*BenchmarkCommand) Description ¶
func (c *BenchmarkCommand) Description() string
func (*BenchmarkCommand) Execute ¶
func (c *BenchmarkCommand) Execute(ctx context.Context, args []string) error
func (*BenchmarkCommand) Name ¶
func (c *BenchmarkCommand) Name() string
func (*BenchmarkCommand) Usage ¶
func (c *BenchmarkCommand) Usage() string
type BenchmarkConfig ¶ added in v1.0.37
type BenchmarkConfig struct {
TableName string
Operations []string
Concurrency int
Duration time.Duration
ItemSize int
OutputDir string
Region string
Warmup time.Duration
}
BenchmarkConfig holds benchmarking configuration
type BenchmarkEnvironment ¶ added in v1.0.37
type BenchmarkEnvironment struct {
Region string `json:"region"`
Runtime string `json:"runtime"`
Architecture string `json:"architecture"`
MemorySize string `json:"memory_size"`
TableBillingMode string `json:"table_billing_mode"`
TimestampUTC string `json:"timestamp_utc"`
}
BenchmarkEnvironment captures environment information
type BenchmarkResults ¶ added in v1.0.37
type BenchmarkResults struct {
TableName string `json:"table_name"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
Duration time.Duration `json:"duration"`
Concurrency int `json:"concurrency"`
OperationResults map[string]*OperationResult `json:"operation_results"`
ColdStartTime time.Duration `json:"cold_start_time"`
WarmupTime time.Duration `json:"warmup_time"`
Environment BenchmarkEnvironment `json:"environment"`
}
BenchmarkResults holds benchmark results
type BuildCommand ¶ added in v1.0.37
type BuildCommand struct{}
BuildCommand builds the Lambda function
func (*BuildCommand) Description ¶ added in v1.0.37
func (c *BuildCommand) Description() string
func (*BuildCommand) Execute ¶ added in v1.0.37
func (c *BuildCommand) Execute(ctx context.Context, args []string) error
func (*BuildCommand) Name ¶ added in v1.0.37
func (c *BuildCommand) Name() string
func (*BuildCommand) Usage ¶ added in v1.0.37
func (c *BuildCommand) Usage() string
type CDKDeployCommand ¶ added in v1.0.37
type CDKDeployCommand struct{}
CDKDeployCommand deploys the CDK stack
func (*CDKDeployCommand) Description ¶ added in v1.0.37
func (c *CDKDeployCommand) Description() string
func (*CDKDeployCommand) Execute ¶ added in v1.0.37
func (c *CDKDeployCommand) Execute(ctx context.Context, args []string) error
func (*CDKDeployCommand) Name ¶ added in v1.0.37
func (c *CDKDeployCommand) Name() string
func (*CDKDeployCommand) Usage ¶ added in v1.0.37
func (c *CDKDeployCommand) Usage() string
type CDKDestroyCommand ¶ added in v1.0.37
type CDKDestroyCommand struct{}
CDKDestroyCommand destroys the CDK stack
func (*CDKDestroyCommand) Description ¶ added in v1.0.37
func (c *CDKDestroyCommand) Description() string
func (*CDKDestroyCommand) Execute ¶ added in v1.0.37
func (c *CDKDestroyCommand) Execute(ctx context.Context, args []string) error
func (*CDKDestroyCommand) Name ¶ added in v1.0.37
func (c *CDKDestroyCommand) Name() string
func (*CDKDestroyCommand) Usage ¶ added in v1.0.37
func (c *CDKDestroyCommand) Usage() string
type CDKDiffCommand ¶ added in v1.0.37
type CDKDiffCommand struct{}
CDKDiffCommand shows differences between deployed stack and local code
func (*CDKDiffCommand) Description ¶ added in v1.0.37
func (c *CDKDiffCommand) Description() string
func (*CDKDiffCommand) Execute ¶ added in v1.0.37
func (c *CDKDiffCommand) Execute(ctx context.Context, args []string) error
func (*CDKDiffCommand) Name ¶ added in v1.0.37
func (c *CDKDiffCommand) Name() string
func (*CDKDiffCommand) Usage ¶ added in v1.0.37
func (c *CDKDiffCommand) Usage() string
type CDKInitCommand ¶ added in v1.0.37
type CDKInitCommand struct{}
CDKInitCommand creates a new CDK app for a Lift project
func (*CDKInitCommand) Description ¶ added in v1.0.37
func (c *CDKInitCommand) Description() string
func (*CDKInitCommand) Execute ¶ added in v1.0.37
func (c *CDKInitCommand) Execute(ctx context.Context, args []string) error
func (*CDKInitCommand) Name ¶ added in v1.0.37
func (c *CDKInitCommand) Name() string
func (*CDKInitCommand) Usage ¶ added in v1.0.37
func (c *CDKInitCommand) Usage() string
type CDKSynthCommand ¶ added in v1.0.37
type CDKSynthCommand struct{}
CDKSynthCommand synthesizes the CDK stack
func (*CDKSynthCommand) Description ¶ added in v1.0.37
func (c *CDKSynthCommand) Description() string
func (*CDKSynthCommand) Execute ¶ added in v1.0.37
func (c *CDKSynthCommand) Execute(ctx context.Context, args []string) error
func (*CDKSynthCommand) Name ¶ added in v1.0.37
func (c *CDKSynthCommand) Name() string
func (*CDKSynthCommand) Usage ¶ added in v1.0.37
func (c *CDKSynthCommand) Usage() string
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI represents the main CLI application
func (*CLI) ListCommands ¶
ListCommands returns all available commands
func (*CLI) RegisterCommand ¶
RegisterCommand registers a new command
type Command ¶
type Command interface {
Name() string
Description() string
Usage() string
Execute(ctx context.Context, args []string) error
}
Command represents a CLI command
type DeployCommand ¶
type DeployCommand struct{}
DeployCommand deploys the application
func (*DeployCommand) Description ¶
func (c *DeployCommand) Description() string
func (*DeployCommand) Execute ¶
func (c *DeployCommand) Execute(ctx context.Context, args []string) error
func (*DeployCommand) Name ¶
func (c *DeployCommand) Name() string
func (*DeployCommand) Usage ¶
func (c *DeployCommand) Usage() string
type DevCommand ¶
type DevCommand struct{}
DevCommand starts the development server
func (*DevCommand) Description ¶
func (c *DevCommand) Description() string
func (*DevCommand) Name ¶
func (c *DevCommand) Name() string
func (*DevCommand) Usage ¶
func (c *DevCommand) Usage() string
type DynamORMBenchmarkCommand ¶ added in v1.0.37
type DynamORMBenchmarkCommand struct{}
DynamORMBenchmarkCommand handles performance benchmarking for DynamORM operations
func (*DynamORMBenchmarkCommand) Description ¶ added in v1.0.37
func (c *DynamORMBenchmarkCommand) Description() string
func (*DynamORMBenchmarkCommand) Execute ¶ added in v1.0.37
func (c *DynamORMBenchmarkCommand) Execute(ctx context.Context, args []string) error
func (*DynamORMBenchmarkCommand) Name ¶ added in v1.0.37
func (c *DynamORMBenchmarkCommand) Name() string
func (*DynamORMBenchmarkCommand) Usage ¶ added in v1.0.37
func (c *DynamORMBenchmarkCommand) Usage() string
type DynamORMMigrateCommand ¶ added in v1.0.37
type DynamORMMigrateCommand struct{}
DynamORMMigrateCommand handles migration from existing DynamoDB tables to DynamORM
func (*DynamORMMigrateCommand) Description ¶ added in v1.0.37
func (c *DynamORMMigrateCommand) Description() string
func (*DynamORMMigrateCommand) Execute ¶ added in v1.0.37
func (c *DynamORMMigrateCommand) Execute(ctx context.Context, args []string) error
func (*DynamORMMigrateCommand) Name ¶ added in v1.0.37
func (c *DynamORMMigrateCommand) Name() string
DynamORMMigrateCommand methods
func (*DynamORMMigrateCommand) Usage ¶ added in v1.0.37
func (c *DynamORMMigrateCommand) Usage() string
type DynamORMScaffoldCommand ¶ added in v1.0.37
type DynamORMScaffoldCommand struct{}
DynamORMScaffoldCommand scaffolds DynamORM models, CDK constructs, and examples
func (*DynamORMScaffoldCommand) Description ¶ added in v1.0.37
func (c *DynamORMScaffoldCommand) Description() string
func (*DynamORMScaffoldCommand) Execute ¶ added in v1.0.37
func (c *DynamORMScaffoldCommand) Execute(ctx context.Context, args []string) error
func (*DynamORMScaffoldCommand) Name ¶ added in v1.0.37
func (c *DynamORMScaffoldCommand) Name() string
func (*DynamORMScaffoldCommand) Usage ¶ added in v1.0.37
func (c *DynamORMScaffoldCommand) Usage() string
type GSIAnalysis ¶ added in v1.0.37
type GSIAnalysis struct {
IndexName string `json:"index_name"`
PartitionKey AttributeSpec `json:"partition_key"`
SortKey *AttributeSpec `json:"sort_key,omitempty"`
ProjectionType string `json:"projection_type"`
ItemCount int64 `json:"item_count"`
KeySchema []types.KeySchemaElement `json:"key_schema"`
}
GSIAnalysis contains GSI analysis
type HealthCommand ¶
type HealthCommand struct{}
HealthCommand checks function health
func (*HealthCommand) Description ¶
func (c *HealthCommand) Description() string
func (*HealthCommand) Execute ¶
func (c *HealthCommand) Execute(ctx context.Context, args []string) error
func (*HealthCommand) Name ¶
func (c *HealthCommand) Name() string
func (*HealthCommand) Usage ¶
func (c *HealthCommand) Usage() string
type HelpCommand ¶
type HelpCommand struct {
// contains filtered or unexported fields
}
HelpCommand displays help information
func (*HelpCommand) Description ¶
func (c *HelpCommand) Description() string
func (*HelpCommand) Execute ¶
func (c *HelpCommand) Execute(ctx context.Context, args []string) error
func (*HelpCommand) Name ¶
func (c *HelpCommand) Name() string
func (*HelpCommand) Usage ¶
func (c *HelpCommand) Usage() string
type LSIAnalysis ¶ added in v1.0.37
type LSIAnalysis struct {
IndexName string `json:"index_name"`
SortKey AttributeSpec `json:"sort_key"`
ProjectionType string `json:"projection_type"`
ItemCount int64 `json:"item_count"`
}
LSIAnalysis contains LSI analysis
type LogsCommand ¶
type LogsCommand struct{}
LogsCommand streams function logs
func (*LogsCommand) Description ¶
func (c *LogsCommand) Description() string
func (*LogsCommand) Execute ¶
func (c *LogsCommand) Execute(ctx context.Context, args []string) error
func (*LogsCommand) Name ¶
func (c *LogsCommand) Name() string
func (*LogsCommand) Usage ¶
func (c *LogsCommand) Usage() string
type MetricsCommand ¶
type MetricsCommand struct{}
MetricsCommand displays function metrics
func (*MetricsCommand) Description ¶
func (c *MetricsCommand) Description() string
func (*MetricsCommand) Execute ¶
func (c *MetricsCommand) Execute(ctx context.Context, args []string) error
func (*MetricsCommand) Name ¶
func (c *MetricsCommand) Name() string
func (*MetricsCommand) Usage ¶
func (c *MetricsCommand) Usage() string
type MigrationConfig ¶ added in v1.0.37
type MigrationConfig struct {
TableName string `json:"table_name"`
Region string `json:"region"`
OutputDir string `json:"output_dir"`
AnalyzeOnly bool `json:"analyze_only"`
ModelName string `json:"model_name"`
MultiTenant bool `json:"multi_tenant"`
GenerateTests bool `json:"generate_tests"`
}
MigrationConfig holds migration configuration
type NewCommand ¶
type NewCommand struct{}
NewCommand creates a new Lift project
func (*NewCommand) Description ¶
func (c *NewCommand) Description() string
func (*NewCommand) Name ¶
func (c *NewCommand) Name() string
func (*NewCommand) Usage ¶
func (c *NewCommand) Usage() string
type OperationResult ¶ added in v1.0.37
type OperationResult struct {
Operation string `json:"operation"`
TotalRequests int64 `json:"total_requests"`
SuccessRequests int64 `json:"success_requests"`
FailedRequests int64 `json:"failed_requests"`
AvgLatency time.Duration `json:"avg_latency"`
MinLatency time.Duration `json:"min_latency"`
MaxLatency time.Duration `json:"max_latency"`
P95Latency time.Duration `json:"p95_latency"`
P99Latency time.Duration `json:"p99_latency"`
Throughput float64 `json:"throughput"` // requests per second
ErrorRate float64 `json:"error_rate"`
Latencies []time.Duration `json:"-"` // Raw latencies for percentile calculation
}
OperationResult holds results for a specific operation
type ScaffoldConfig ¶ added in v1.0.37
type ScaffoldConfig struct {
ModelName string
TableName string
MultiTenant bool
EnableTTL bool
EnableStreams bool
GSIs []GSIConfig
}
ScaffoldConfig holds the configuration for scaffolding
type StreamSpec ¶ added in v1.0.37
type StreamSpec struct {
Enabled bool `json:"enabled"`
ViewType string `json:"view_type"`
StreamArn string `json:"stream_arn"`
}
StreamSpec defines stream specification
type TableAnalysis ¶ added in v1.0.37
type TableAnalysis struct {
TableName string `json:"table_name"`
PartitionKey AttributeSpec `json:"partition_key"`
SortKey *AttributeSpec `json:"sort_key,omitempty"`
GlobalSecondaryIndexes []GSIAnalysis `json:"global_secondary_indexes,omitempty"`
LocalSecondaryIndexes []LSIAnalysis `json:"local_secondary_indexes,omitempty"`
TimeToLiveSpec *TTLSpec `json:"time_to_live,omitempty"`
StreamSpec *StreamSpec `json:"stream,omitempty"`
BillingMode string `json:"billing_mode"`
ItemCount int64 `json:"item_count"`
TableSizeBytes int64 `json:"table_size_bytes"`
RecommendedModel string `json:"recommended_model"`
MultiTenantCandidate bool `json:"multi_tenant_candidate"`
Attributes map[string]AttributeSpec `json:"attributes"`
SampleItems []map[string]interface{} `json:"sample_items,omitempty"`
MigrationComplexity string `json:"migration_complexity"`
Warnings []string `json:"warnings,omitempty"`
CreatedAt time.Time `json:"created_at"`
}
TableAnalysis contains the analysis results of a DynamoDB table
type TestCommand ¶
type TestCommand struct{}
TestCommand runs tests
func (*TestCommand) Description ¶
func (c *TestCommand) Description() string
func (*TestCommand) Execute ¶
func (c *TestCommand) Execute(ctx context.Context, args []string) error
func (*TestCommand) Name ¶
func (c *TestCommand) Name() string
func (*TestCommand) Usage ¶
func (c *TestCommand) Usage() string
type VersionCommand ¶
type VersionCommand struct {
// contains filtered or unexported fields
}
VersionCommand displays version information
func (*VersionCommand) Description ¶
func (c *VersionCommand) Description() string
func (*VersionCommand) Execute ¶
func (c *VersionCommand) Execute(ctx context.Context, args []string) error
func (*VersionCommand) Name ¶
func (c *VersionCommand) Name() string
func (*VersionCommand) Usage ¶
func (c *VersionCommand) Usage() string