event

package
v0.6.5-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDeployment

type ClusterDeployment struct {
	LeaseID mtypes.LeaseID
	Group   *mani.Group
	Status  ClusterDeploymentStatus
}

ClusterDeployment stores leaseID, group details and deployment status

type ClusterDeploymentStatus

type ClusterDeploymentStatus string

ClusterDeploymentStatus represents status of the cluster deployment

const (
	// ClusterDeploymentUpdated is used whenever the deployment in the cluster is updated but may not be functional
	ClusterDeploymentUpdated ClusterDeploymentStatus = "updated"
	// ClusterDeploymentPending is used when cluster deployment status is pending
	ClusterDeploymentPending ClusterDeploymentStatus = "pending"
	// ClusterDeploymentDeployed is used when cluster deployment status is deployed
	ClusterDeploymentDeployed ClusterDeploymentStatus = "deployed"
)

type LeaseAddFundsMonitor

type LeaseAddFundsMonitor struct {
	mtypes.LeaseID
	IsNewLease bool
}

type LeaseRemoveFundsMonitor

type LeaseRemoveFundsMonitor struct {
	mtypes.LeaseID
}

type LeaseWon

type LeaseWon struct {
	LeaseID mtypes.LeaseID
	Group   *dtypes.Group
	Price   sdk.DecCoin
}

LeaseWon is the data structure that includes leaseID, group and price

type ManifestReceived

type ManifestReceived struct {
	LeaseID    mtypes.LeaseID
	Manifest   *mani.Manifest
	Deployment *dtypes.QueryDeploymentResponse
	Group      *dtypes.Group
}

ManifestReceived stores leaseID, manifest received, deployment and group details to be provisioned by the Provider.

func (ManifestReceived) ManifestGroup

func (ev ManifestReceived) ManifestGroup() *mani.Group

ManifestGroup returns group if present in manifest or nil

Jump to

Keyboard shortcuts

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