billing

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlanInfo

func AddPlanInfo(plan *billing.BillingPlan, usedBuildMinutes time.Duration)

AddPlanInfo sets the billing plan to make it available to retrieve later with Plan()

func GetBillingURL

func GetBillingURL(hostName, orgName string) string

GetBillingURL returns the billing url based on the given host and org names

func GetUpgradeURL

func GetUpgradeURL(hostName, orgName string) string

GetUpgradeURL returns the billing url based on the given host and org names

func Plan

func Plan() *billing.BillingPlan

Plan returns a copy of the billing plan which should have been set earlier by AddPlanInfo

func UsedBuildTime

func UsedBuildTime() time.Duration

UsedBuildTime returns the used build time(duration) of org referenced by the earthly command

Types

This section is empty.

Jump to

Keyboard shortcuts

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