pkg

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package pkg provides the core functionality of the program.

Package pkg provides the core functionality of the program.

Package pkg provides the core functionality of the program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTreeWithColor added in v0.0.6

func BuildTreeWithColor(root *gtree.Node, keys [][]string) *gtree.Node

BuildTreeWithColor builds a tree with colored nodes

func BuildTreeWithoutColor added in v0.0.6

func BuildTreeWithoutColor(root *gtree.Node, keys [][]string) *gtree.Node

BuildTreeWithoutColor builds a tree without colored nodes

func FetchS3ObjectKeys

func FetchS3ObjectKeys(s3Svc *s3.S3, bucket string, prefix string, maxDepth *int) ([][]string, error)

FetchS3ObjectKeys returns a slice of keys for all objects in the specified bucket and prefix

func InitializeAWSSession

func InitializeAWSSession(config S3Config) *s3.S3

InitializeAWSSession returns an AWS session based on the provided configuration

func ProcessKeys added in v0.0.6

func ProcessKeys(keys [][]string) (int, int)

ProcessKeys returns the number of files and directories in the provided slice of keys

Types

type S3Config

type S3Config struct {
	AwsProfile  string
	AwsRegion   string
	EndpointURL string
	Local       bool
	MFA         bool
}

S3Config represents the configuration for an S3 session

Jump to

Keyboard shortcuts

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