pkg

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 12 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, bucket string, keys [][]string, f bool, directoryOnly bool) *gtree.Node

BuildTreeWithColor builds a tree with colored nodes

func BuildTreeWithoutColor added in v0.0.6

func BuildTreeWithoutColor(root *gtree.Node, bucket string, keys [][]string, f bool, directoryOnly bool) *gtree.Node

BuildTreeWithoutColor builds a tree without colored nodes

func FetchS3ObjectKeys

func FetchS3ObjectKeys(s3Client *s3.Client, bucket string, prefix string, maxDepth *int, size, humanReadable bool, dateTime bool, username bool, pattern string, inversePattern string) ([][]string, error)

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

func InitializeAWSSession

func InitializeAWSSession(conf S3Config) (*s3.Client, error)

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