cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cmd implements the Cloudrift command-line interface.

The CLI is built using Cobra and provides subcommands for different operations. Currently supported commands:

  • scan: Detect drift between Terraform plans and live AWS state

Usage:

cloudrift scan --config=config/cloudrift.yml --service=s3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command and handles any errors. This is the main entry point called from main.go.

Types

type DriftDetector

type DriftDetector interface {
	// FetchLiveState retrieves the current state of resources from AWS.
	FetchLiveState() (interface{}, error)

	// DetectDrift compares planned state against live state and returns differences.
	DetectDrift(plan interface{}, live interface{}) ([]detector.DriftResult, error)
}

DriftDetector defines the interface for service-specific drift detectors.

Each supported AWS service (S3, EC2, etc.) implements this interface to provide consistent drift detection behavior across services.

Jump to

Keyboard shortcuts

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