presenter

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToFloat added in v1.0.3

func ConvertToFloat(value string) (float64, error)

ConvertToFloat converts a string to a float64, handling commas and other formatting

func FormatCurrency added in v1.0.3

func FormatCurrency(amount float64) string

FormatCurrency formats a float64 amount to a currency string

func ParseDate added in v1.0.3

func ParseDate(dateStr string) (string, error)

ParseDate parses a date string and returns it in a standardized format

func RenderBucketDetail

func RenderBucketDetail(bucket responses.ObjectStorageBucket)

func RenderBucketEvents

func RenderBucketEvents(events []responses.ObjectStorageEvent)

func RenderBucketList

func RenderBucketList(buckets []responses.ObjectStorageBucket)

func RenderCostDocuments added in v1.0.3

func RenderCostDocuments(documents []responses.CostDocument)

RenderCostDocuments displays cost documents in a table format

func RenderExpenses added in v1.0.3

func RenderExpenses(expenses []responses.Expense)

RenderExpenses displays expenses in a table format

func RenderInstanceNetworkList

func RenderInstanceNetworkList(instances []responses.InstanceNetwork)

func RenderNetworkDetail

func RenderNetworkDetail(network responses.Network)

func RenderNetworkList

func RenderNetworkList(networks []responses.Network)

func RenderPayments added in v1.0.3

func RenderPayments(payments []interface{})

RenderPayments displays payment history in a table format

func RenderPortForwardList added in v1.0.3

func RenderPortForwardList(rules []responses.PortForwardRule)

func RenderSSHKeyList added in v1.0.3

func RenderSSHKeyList(sshKeys []responses.UserSSHKey)

func RenderTokenAbilities added in v1.0.3

func RenderTokenAbilities(abilities []string)

func RenderUserProfile added in v1.0.3

func RenderUserProfile(profile *responses.UserProfileResponse)

func RenderWallet added in v1.0.3

func RenderWallet(wallet responses.WalletsBalanceResponse)

RenderWallet displays wallet balance information in a key-value format

Types

This section is empty.

Jump to

Keyboard shortcuts

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