core

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset = "\033[0m"
	Red   = "\033[31m"
	Green = "\033[32m"
)

Variables

This section is empty.

Functions

func ReportResults

func ReportResults(writer *bufio.Writer, msgChannel chan Message)

Types

type AccountResult

type AccountResult struct {
	// contains filtered or unexported fields
}

type ContainerScanner

type ContainerScanner struct {
	HttpClient    *http.Client
	WG            *sync.WaitGroup
	Semaphore     chan struct{}
	OutputChannel chan Message
	ResultsMap    ResultsMap
	BlobsOnly     bool
	VerboseMode   int
	MaxPages      int
}

func (ContainerScanner) Scan

func (cs ContainerScanner) Scan(account string, containerName string)

type ContainerStats

type ContainerStats struct {
	// contains filtered or unexported fields
}

type Message

type Message struct {
	// contains filtered or unexported fields
}

type ResultsMap

type ResultsMap map[string]ContainerStats

func (ResultsMap) PrintResults

func (result ResultsMap) PrintResults()

func (ResultsMap) SaveContainerResults

func (r ResultsMap) SaveContainerResults(
	account string,
	containerName string,
	numFiles int,
	contentLength int64,
)

Jump to

Keyboard shortcuts

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