Documentation ¶
Index ¶
- Variables
- func AccAddress(t testing.TB) sdk.AccAddress
- func Attribute(t testing.TB) types.Attribute
- func Attributes(t testing.TB) []types.Attribute
- func BidID(t testing.TB) mtypes.BidID
- func BidIDForAccount(t testing.TB, owner, provider sdk.Address) mtypes.BidID
- func Deployment(t testing.TB) dtypes.Deployment
- func DeploymentGroup(t testing.TB, did dtypes.DeploymentID, gseq uint32) dtypes.Group
- func DeploymentGroups(t testing.TB, did dtypes.DeploymentID, gseq uint32) []dtypes.Group
- func DeploymentID(t testing.TB) dtypes.DeploymentID
- func DeploymentIDForAccount(t testing.TB, addr sdk.Address) dtypes.DeploymentID
- func DeploymentVersion(t testing.TB) []byte
- func GroupID(t testing.TB) dtypes.GroupID
- func GroupIDForAccount(t testing.TB, addr sdk.Address) dtypes.GroupID
- func GroupSpec(t testing.TB) dtypes.GroupSpec
- func Key(t testing.TB) ed25519.PrivKey
- func LeaseID(t testing.TB) mtypes.LeaseID
- func LeaseIDForAccount(t testing.TB, owner, provider sdk.Address) mtypes.LeaseID
- func OrderID(t testing.TB) mtypes.OrderID
- func OrderIDForAccount(t testing.TB, addr sdk.Address) mtypes.OrderID
- func ParseDeploymentEvent(t testing.TB, events []abci.Event) sdkutil.ModuleEvent
- func ParseEvent(t testing.TB, events []abci.Event) sdkutil.Event
- func ParseMarketEvent(t testing.TB, events []abci.Event) sdkutil.ModuleEvent
- func ParseProviderEvent(t testing.TB, events []abci.Event) sdkutil.ModuleEvent
- func PlacementRequirements(t testing.TB) types.PlacementRequirements
- func Provider(t testing.TB) ptypes.Provider
- func ProviderHostname(t testing.TB) string
- func RandCPUUnits() uint
- func RandMemoryQuantity() uint64
- func RandStorageQuantity() uint64
- func ResourceUnits(_ testing.TB) types.ResourceUnits
- func Resources(t testing.TB) []dtypes.Resource
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDeploymentVersion = sha256.Sum256([]byte(sum256Seed))
DefaultDeploymentVersion provides consistent sha256 sum for initial Deployment.Version
Functions ¶
func AccAddress ¶
func AccAddress(t testing.TB) sdk.AccAddress
AccAddress provides an Account's Address bytes from a ed25519 generated private key.
func Attributes ¶
Attributes generates a set of sdk.Attribute
func Deployment ¶
func Deployment(t testing.TB) dtypes.Deployment
Deployment generates a dtype.Deployment in state `DeploymentActive`
func DeploymentGroup ¶
DeploymentGroup generates a dtype.DepDeploymentGroup in state `GroupOpen` with a set of random required attributes
func DeploymentGroups ¶
DeploymentGroups returns a set of deployment groups generated by DeploymentGroup
func DeploymentID ¶
func DeploymentID(t testing.TB) dtypes.DeploymentID
func DeploymentIDForAccount ¶
func DeploymentVersion ¶
DeploymentVersion provides a random sha256 sum for simulating Deployments.
func LeaseIDForAccount ¶
func ParseDeploymentEvent ¶
func ParseMarketEvent ¶
func ParseProviderEvent ¶
func PlacementRequirements ¶
func PlacementRequirements(t testing.TB) types.PlacementRequirements
PlacementRequirements generates placement requirements
func ProviderHostname ¶
func RandCPUUnits ¶
func RandCPUUnits() uint
func RandMemoryQuantity ¶
func RandMemoryQuantity() uint64
func RandStorageQuantity ¶
func RandStorageQuantity() uint64
func ResourceUnits ¶
func ResourceUnits(_ testing.TB) types.ResourceUnits
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.