Documentation ¶
Index ¶
- Variables
- type BidPricingStrategy
- func MakeRandomRangePricing() (BidPricingStrategy, error)
- func MakeScalePricing(cpuScale decimal.Decimal, memoryScale decimal.Decimal, storageScale Storage, ...) (BidPricingStrategy, error)
- func MakeShellScriptPricing(path string, processLimit uint, runtimeLimit time.Duration) (BidPricingStrategy, error)
- type Config
- type ProviderAttrSignatureService
- type Service
- type Status
- type StatusClient
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBidQuantityInvalid = errors.New("A bid quantity is invalid")
View Source
var ErrBidZero = errors.New("A bid of zero was produced")
View Source
var ErrNotRunning = errors.New("not running")
ErrNotRunning declares new error with message "not running"
Functions ¶
This section is empty.
Types ¶
type BidPricingStrategy ¶ added in v0.9.1
type BidPricingStrategy interface {
CalculatePrice(ctx context.Context, owner string, gspec *dtypes.GroupSpec) (sdk.DecCoin, error)
}
func MakeRandomRangePricing ¶ added in v0.9.1
func MakeRandomRangePricing() (BidPricingStrategy, error)
func MakeScalePricing ¶ added in v0.9.1
func MakeShellScriptPricing ¶ added in v0.9.1
type Config ¶ added in v0.10.0
type Config struct { PricingStrategy BidPricingStrategy Deposit sdk.Coin BidTimeout time.Duration Attributes types.Attributes MaxGroupVolumes int }
type ProviderAttrSignatureService ¶ added in v0.10.2
type Service ¶
type Service interface { StatusClient Close() error Done() <-chan struct{} }
Service handles bidding on orders.
type Status ¶ added in v0.6.0
type Status struct {
Orders uint32 `json:"orders"`
}
Status stores orders
type StatusClient ¶ added in v0.3.4
StatusClient interface predefined with Status method
type Storage ¶ added in v0.16.0
func (Storage) AllLessThenOrEqual ¶ added in v0.16.0
AllLessThenOrEqual check all storage classes fit into max limits note better have dedicated limits for each class
func (Storage) IsAnyNegative ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.