Documentation
¶
Overview ¶
Package s3 provides a treeview.Tree constructor dedicated to AWS S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTreeFromS3 ¶
func NewTreeFromS3(ctx context.Context, path string, profile string, opts ...treeview.Option[treeview.FileInfo]) (*treeview.Tree[treeview.FileInfo], error)
NewTreeFromS3 creates a new tree structure based on files fetched from an S3 path, using configurable options. Returns a pointer to a Tree structure or an error if an issue occurs during tree creation.
Supported options: Build options:
- treeview.WithFilterFunc: Filters items during tree building
- treeview.WithMaxDepth: Limits tree depth during construction
- treeview.WithExpandFunc: Sets initial expansion state for nodes
- treeview.WithTraversalCap: Limits total nodes processed (returns a partial tree + error if exceeded)
- treeview.WithProgressCallback: Invoked after each filesystem entry is processed (breadth-first per directory)
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
config
Package config prepares the AWS configuration that will be used by the AWS services.
|
Package config prepares the AWS configuration that will be used by the AWS services. |
|
localstack/exec
Package exec provides a set of system-related functions such a Run that runs an application.
|
Package exec provides a set of system-related functions such a Run that runs an application. |
Click to show internal directories.
Click to hide internal directories.