Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceCheckerConfig ¶ added in v0.12.2
type Client ¶ added in v0.7.3
type Client interface { StatusClient ValidateClient Manifest() manifest.Client Cluster() cluster.Client Hostname() clustertypes.HostnameServiceClient ClusterService() cluster.Service }
type Config ¶ added in v0.9.1
type Config struct { ClusterWaitReadyDuration time.Duration ClusterPublicHostname string ClusterExternalPortQuantity uint InventoryResourcePollPeriod time.Duration InventoryResourceDebugFrequency uint BidPricingStrategy bidengine.BidPricingStrategy BidDeposit sdk.Coin CPUCommitLevel float64 MemoryCommitLevel float64 StorageCommitLevel float64 MaxGroupVolumes int BlockedHostnames []string BidTimeout time.Duration ManifestTimeout time.Duration BalanceCheckerCfg BalanceCheckerConfig Attributes types.Attributes DeploymentIngressStaticHosts bool DeploymentIngressDomain string ClusterSettings map[interface{}]interface{} RPCQueryTimeout time.Duration CachedResultMaxAge time.Duration }
func NewDefaultConfig ¶ added in v0.9.1
func NewDefaultConfig() Config
type Service ¶
Service is the interface that includes StatusClient interface. It also wraps ManifestHandler, Close and Done methods.
func NewService ¶
func NewService(ctx context.Context, cctx client.Context, accAddr sdk.AccAddress, session session.Session, bus pubsub.Bus, cclient cluster.Client, ipOperatorClient operatorclients.IPOperatorClient, waiter waiter.OperatorWaiter, cfg Config) (Service, error)
type Status ¶ added in v0.6.0
type Status struct { Cluster *ctypes.Status `json:"cluster"` Bidengine *bidengine.Status `json:"bidengine"` Manifest *manifest.Status `json:"manifest"` ClusterPublicHostname string `json:"cluster_public_hostname,omitempty"` }
Status is the data structure that stores Cluster, Bidengine and Manifest details.
type StatusClient ¶ added in v0.3.4
StatusClient is the interface which includes status of service
type ValidateClient ¶ added in v0.12.0
type ValidateClient interface {
Validate(context.Context, dtypes.GroupSpec) (ValidateGroupSpecResult, error)
}
ValidateClient is the interface to check if provider will bid on given groupspec
type ValidateGroupSpecResult ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.