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 RandGPUUnits() uint
- func RandMemoryQuantity() uint64
- func RandStorageQuantity() uint64
- func Resources(_ testing.TB) types.Resources
- func ResourcesList(t testing.TB, startID uint32) dtypes.ResourceUnits
Constants ¶
This section is empty.
Variables ¶
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 RandGPUUnits ¶
func RandGPUUnits() uint
func RandMemoryQuantity ¶
func RandMemoryQuantity() uint64
func RandStorageQuantity ¶
func RandStorageQuantity() uint64
func ResourcesList ¶
func ResourcesList(t testing.TB, startID uint32) dtypes.ResourceUnits
ResourcesList produces an attribute list for populating a Group's 'Resources' fields.
Types ¶
This section is empty.