pricing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package pricing holds the AWS S3 cost tables s3du applies in the UI and CLI. Both list-request pricing (per 1 000 requests) and storage pricing (per GB-month, per storage class) are baked-in constants — refreshed manually from the AWS pricing API; they don't need to be exact, just close enough to give the operator a sense of the cost order of magnitude.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListCost

func ListCost(requests int64, region string) float64

ListCost is the convenience helper for "what did N list calls cost".

func ListPerRequest

func ListPerRequest(region string) float64

ListPerRequest returns the per-request price for the given region. Always positive (small) — unknown regions fall back to $0.000005 / req.

func MonthlyStorage

func MonthlyStorage(sizeBytes int64, storageClass, region string) float64

MonthlyStorage returns the per-month storage cost in USD for sizeBytes of an object of the given class in the given region. Unknown region/class combinations fall back to us-east-1 pricing; if even that is missing, 0 is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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