options

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBacalhauCliFlags

func AddBacalhauCliFlags(cmd *cobra.Command, bacalhauOptions *bacalhau.BacalhauExecutorOptions)

func AddPricingCliFlags

func AddPricingCliFlags(cmd *cobra.Command, pricingConfig *dto.DealPricing)

func AddPricingModeCliFlags

func AddPricingModeCliFlags(cmd *cobra.Command, pricingMode *dto.PricingMode)

func AddServicesCliFlags

func AddServicesCliFlags(cmd *cobra.Command, servicesConfig *dto.ServiceConfig)

func AddTimeoutCliFlags

func AddTimeoutCliFlags(cmd *cobra.Command, timeoutConfig *dto.DealTimeouts)

func AddWeb3CliFlags

func AddWeb3CliFlags(cmd *cobra.Command, web3Options *web3.Web3Options)

func CheckBacalhauOptions

func CheckBacalhauOptions(options bacalhau.BacalhauExecutorOptions) error

func CheckServicesOptions

func CheckServicesOptions(options dto.ServiceConfig) error

func CheckWeb3Options

func CheckWeb3Options(options web3.Web3Options) error

func GetDefaultBacalhauOptions

func GetDefaultBacalhauOptions() bacalhau.BacalhauExecutorOptions

func GetDefaultPricingMode

func GetDefaultPricingMode(mode dto.PricingMode) (pricingMode dto.PricingMode)

func GetDefaultPricingOptions

func GetDefaultPricingOptions() dto.DealPricing

func GetDefaultServeOptionInt

func GetDefaultServeOptionInt(envName string, defaultValue int) int

func GetDefaultServeOptionString

func GetDefaultServeOptionString(envName string, defaultValue string) string

func GetDefaultServeOptionStringArray

func GetDefaultServeOptionStringArray(envName string, defaultValue []string) []string

func GetDefaultServeOptionUint64

func GetDefaultServeOptionUint64(envName string, defaultValue uint64) uint64

TODO: migrate all these with conf.Config

func GetDefaultServicesOptions

func GetDefaultServicesOptions() dto.ServiceConfig

func GetDefaultTimeoutOptions

func GetDefaultTimeoutOptions() dto.DealTimeouts

func GetDefaultWeb3Options

func GetDefaultWeb3Options(s enums.ServiceType) web3.Web3Options

func ProcessServicesOptions

func ProcessServicesOptions(options dto.ServiceConfig) (dto.ServiceConfig, error)

func ProcessWeb3Options

func ProcessWeb3Options(options web3.Web3Options) (web3.Web3Options, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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