mock

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionManager

type SubscriptionManager struct {
	// contains filtered or unexported fields
}

func NewMockSubscriptionManager

func NewMockSubscriptionManager() *SubscriptionManager

NewMockSubscriptionManager returns a new mock subscriptionManager manager client

func (*SubscriptionManager) AddPodToMarketplace

func (s *SubscriptionManager) AddPodToMarketplace(podAddress, owner common.Address, pod, title, desc, thumbnail string, price uint64, daysValid uint16, category, nameHash [32]byte, key *ecdsa.PrivateKey) error

func (*SubscriptionManager) AllowAccess

func (s *SubscriptionManager) AllowAccess(owner common.Address, si *rpc.ShareInfo, requestHash, secret [32]byte, key *ecdsa.PrivateKey) error

func (*SubscriptionManager) GetAllSubscribablePods

func (s *SubscriptionManager) GetAllSubscribablePods() ([]datahub.DataHubSub, error)

func (*SubscriptionManager) GetOwnSubscribablePods

func (s *SubscriptionManager) GetOwnSubscribablePods(owner common.Address) ([]datahub.DataHubSub, error)

func (*SubscriptionManager) GetSub

func (s *SubscriptionManager) GetSub(subHash [32]byte) (*datahub.DataHubSub, error)

func (*SubscriptionManager) GetSubRequests

func (s *SubscriptionManager) GetSubRequests(owner common.Address) ([]datahub.DataHubSubRequest, error)

func (*SubscriptionManager) GetSubscribablePodInfo

func (s *SubscriptionManager) GetSubscribablePodInfo(subHash [32]byte) (*rpc.SubscriptionItemInfo, error)

func (*SubscriptionManager) GetSubscription

func (s *SubscriptionManager) GetSubscription(infoLocation []byte, secret [32]byte) (*rpc.ShareInfo, error)

func (*SubscriptionManager) GetSubscriptions

func (s *SubscriptionManager) GetSubscriptions(nameHash [32]byte) ([]datahub.DataHubSubItem, error)

func (*SubscriptionManager) HidePodFromMarketplace

func (s *SubscriptionManager) HidePodFromMarketplace(owner common.Address, subHash [32]byte, hide bool, key *ecdsa.PrivateKey) error

func (*SubscriptionManager) RequestAccess

func (s *SubscriptionManager) RequestAccess(subscriber common.Address, subHash, nameHash [32]byte, key *ecdsa.PrivateKey) error

Jump to

Keyboard shortcuts

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