Documentation ¶
Index ¶
- Constants
- func Address(t *testing.T) []byte
- func AfterThreadStart(t *testing.T) <-chan time.Time
- func CloseDeployment(t *testing.T, st state.State, app apptypes.Application, deployment *base.Bytes, ...)
- func CloseFulfillment(t *testing.T, st state.State, app apptypes.Application, key crypto.PrivKey, ...)
- func CloseLease(t *testing.T, st state.State, app apptypes.Application, id types.LeaseID, ...)
- func CreateAccount(t *testing.T, state state.State) (*types.Account, crypto.PrivKey)
- func CreateDeployment(t *testing.T, st state.State, app apptypes.Application, account *types.Account, ...) (*types.Deployment, *types.DeploymentGroups)
- func CreateFulfillment(t *testing.T, st state.State, app apptypes.Application, provider base.Bytes, ...) *types.Fulfillment
- func CreateLease(t *testing.T, st state.State, app apptypes.Application, provider base.Bytes, ...) *types.Lease
- func CreateOrder(t *testing.T, st state.State, app apptypes.Application, account *types.Account, ...) *types.Order
- func CreateProvider(t *testing.T, st state.State, app apptypes.Application, account *types.Account, ...) *types.Provider
- func Deployment(tenant base.Bytes, nonce uint64, version ...[]byte) *types.Deployment
- func DeploymentAddress(t *testing.T) []byte
- func DeploymentGroup(daddr []byte, nonce uint64) *types.DeploymentGroup
- func DeploymentGroups(deployment base.Bytes, nonce uint64) *types.DeploymentGroups
- func Fulfillment(provider base.Bytes, deplyment base.Bytes, group, order uint64, price uint64) *types.Fulfillment
- func HexAddress(t *testing.T) string
- func HexDeploymentAddress(t *testing.T) string
- func KeyManager(t *testing.T) keys.Keybase
- func Lease(provider base.Bytes, deplyment base.Bytes, group, order uint64, price uint64) *types.Lease
- func Logger() log.Logger
- func ManifestGroupsForDeploymentGroups(t *testing.T, dgroups []*types.DeploymentGroup) []*types.ManifestGroup
- func NewApp(t *testing.T, gen *types.Genesis) abci_types.Application
- func NewNamedKey(t *testing.T) (keys.Info, keys.Keybase)
- func NewState(t *testing.T, gen *types.Genesis) (state.CommitState, state.CacheState)
- func Order(deploymentAddress base.Bytes, groupSeq, orderSeq uint64) *types.Order
- func PrivateKey(t *testing.T) crypto.PrivKey
- func PrivateKeySigner(t *testing.T) (txutil.Signer, crypto.PrivKey)
- func Provider(account base.Bytes, nonce uint64) *types.Provider
- func ProviderTx(account *types.Account, key crypto.PrivKey, nonce uint64) *types.Tx
- func PublicKey(t *testing.T) crypto.PubKey
- func ResourceGroup() types.ResourceGroup
- func ResourceUnit() types.ResourceUnit
- func Shrug(t *testing.T, issue int)
- func Signer(t *testing.T, kmgr keys.Keybase) txutil.Signer
- func SleepForThreadStart(t *testing.T)
- func TempDir(t *testing.T) string
- func UpdateDeployment(t *testing.T, st state.State, app apptypes.Application, key crypto.PrivKey, ...) *types.TxUpdateDeployment
- func WaitReady(t *testing.T, ch <-chan struct{})
- func WithAkashDir(t *testing.T, fn func(string))
- func WithTempDir(t *testing.T, fn func(string))
- func WithTempDirEnv(t *testing.T, key string, fn func(string))
- type MockGRPCStreamServer
- func (s MockGRPCStreamServer) Context() context.Context
- func (s MockGRPCStreamServer) RecvMsg(m interface{}) error
- func (s MockGRPCStreamServer) SendHeader(metadata.MD) error
- func (s MockGRPCStreamServer) SendMsg(m interface{}) error
- func (s MockGRPCStreamServer) SetHeader(metadata.MD) error
- func (s MockGRPCStreamServer) SetTrailer(metadata.MD)
- type ReadCloser
Constants ¶
View Source
const ( KeyPasswd = "0123456789" KeyAlgo = keys.Secp256k1 KeyName = "test" Language = keys.English )
Variables ¶
This section is empty.
Functions ¶
func CloseDeployment ¶ added in v0.0.2
func CloseFulfillment ¶ added in v0.0.4
func CloseFulfillment(t *testing.T, st state.State, app apptypes.Application, key crypto.PrivKey, fulfillment *types.Fulfillment)
func CloseLease ¶ added in v0.0.5
func CreateAccount ¶
func CreateDeployment ¶
func CreateDeployment(t *testing.T, st state.State, app apptypes.Application, account *types.Account, key crypto.PrivKey, nonce uint64) (*types.Deployment, *types.DeploymentGroups)
func CreateFulfillment ¶
func CreateLease ¶
func CreateOrder ¶
func CreateProvider ¶
func Deployment ¶
func DeploymentAddress ¶ added in v0.0.3
func DeploymentGroup ¶ added in v0.3.0
func DeploymentGroup(daddr []byte, nonce uint64) *types.DeploymentGroup
func DeploymentGroups ¶ added in v0.0.2
func DeploymentGroups(deployment base.Bytes, nonce uint64) *types.DeploymentGroups
func Fulfillment ¶
func HexAddress ¶ added in v0.0.3
func HexDeploymentAddress ¶ added in v0.0.3
func ManifestGroupsForDeploymentGroups ¶ added in v0.3.0
func ManifestGroupsForDeploymentGroups(t *testing.T, dgroups []*types.DeploymentGroup) []*types.ManifestGroup
func NewApp ¶
func NewApp(t *testing.T, gen *types.Genesis) abci_types.Application
func NewState ¶
func NewState(t *testing.T, gen *types.Genesis) (state.CommitState, state.CacheState)
NewState used only for testing
func ProviderTx ¶
func ResourceGroup ¶ added in v0.3.0
func ResourceGroup() types.ResourceGroup
func ResourceUnit ¶ added in v0.3.0
func ResourceUnit() types.ResourceUnit
func SleepForThreadStart ¶
func UpdateDeployment ¶ added in v0.3.0
func WithAkashDir ¶ added in v0.0.3
func WithTempDir ¶ added in v0.0.3
Types ¶
type MockGRPCStreamServer ¶ added in v0.2.2
type MockGRPCStreamServer struct{}
func (MockGRPCStreamServer) Context ¶ added in v0.2.2
func (s MockGRPCStreamServer) Context() context.Context
func (MockGRPCStreamServer) RecvMsg ¶ added in v0.2.2
func (s MockGRPCStreamServer) RecvMsg(m interface{}) error
func (MockGRPCStreamServer) SendHeader ¶ added in v0.2.2
func (s MockGRPCStreamServer) SendHeader(metadata.MD) error
func (MockGRPCStreamServer) SendMsg ¶ added in v0.2.2
func (s MockGRPCStreamServer) SendMsg(m interface{}) error
func (MockGRPCStreamServer) SetHeader ¶ added in v0.2.2
func (s MockGRPCStreamServer) SetHeader(metadata.MD) error
func (MockGRPCStreamServer) SetTrailer ¶ added in v0.2.2
func (s MockGRPCStreamServer) SetTrailer(metadata.MD)
type ReadCloser ¶ added in v0.2.2
func (ReadCloser) Close ¶ added in v0.2.2
func (r ReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.