Documentation
¶
Overview ¶
Package cloudextractor extracts cloud infrastructure and CI/CD resource definitions and their relationships from YAML configuration files. Supported formats: AWS CloudFormation/SAM, Docker Compose, GitHub Actions, and Serverless Framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudExtractor ¶
type CloudExtractor struct {
// contains filtered or unexported fields
}
CloudExtractor delegates to format-specific sub-extractors.
func NewCloudExtractor ¶
func NewCloudExtractor() *CloudExtractor
NewCloudExtractor creates a CloudExtractor with all registered sub-extractors.
func (*CloudExtractor) CanHandle ¶
func (e *CloudExtractor) CanHandle(path string) bool
CanHandle returns true for all YAML files. Content-based filtering happens in Extract via the sub-extractors.
func (*CloudExtractor) Extract ¶
func (e *CloudExtractor) Extract(ctx context.Context, opts types.ExtractOptions) (*types.ExtractResult, error)
Extract delegates to the first sub-extractor that can handle the file content. If no sub-extractor matches, it returns an empty result.
func (*CloudExtractor) Name ¶
func (e *CloudExtractor) Name() string
Name returns the identifier for this extractor.