Documentation ¶
Index ¶
- type Account
- func (a *Account) CreateAndUploadObject(bucketName, objectName string, fileSize uint64, ...) error
- func (a *Account) CreateBucket(bucketName string, opts *sdkTypes.CreateBucketOptions) (string, error)
- func (a *Account) CreateObjectAllSize(bucketName, objectName string, fileSize uint64, ...) (*storageTypes.ObjectInfo, string, *utils.File, error)
- func (a *Account) GetObject(bucketName, objectName string) (io.ReadCloser, sdkTypes.ObjectStat, error)
- func (a *Account) IsObjectSealed(bucketName, objectName string) *storageTypes.ObjectInfo
- func (a *Account) PutObject(bucketName, objectName, createObjectTx string, file utils.File, ...) error
- func (a *Account) SelectSP(primarySPAddr string) (*spTypes.StorageProvider, error)
- type BaseSuite
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { KM keys.KeyManager Addr types.AccAddress PrimarySPAddr string SDKClient sdkClient.IClient Ctx context.Context Secret string }
func NewAccount ¶
func (*Account) CreateAndUploadObject ¶
func (a *Account) CreateAndUploadObject(bucketName, objectName string, fileSize uint64, visibility storageTypes.VisibilityType) error
func (*Account) CreateBucket ¶
func (*Account) CreateObjectAllSize ¶
func (a *Account) CreateObjectAllSize(bucketName, objectName string, fileSize uint64, opts *sdkTypes.CreateObjectOptions) (*storageTypes.ObjectInfo, string, *utils.File, error)
func (*Account) GetObject ¶
func (a *Account) GetObject(bucketName, objectName string) (io.ReadCloser, sdkTypes.ObjectStat, error)
func (*Account) IsObjectSealed ¶
func (a *Account) IsObjectSealed(bucketName, objectName string) *storageTypes.ObjectInfo
type BaseSuite ¶
type BaseSuite struct { RootAcc *Account TestAcc *Account SPInfo *spTypes.StorageProvider TestResults []Output }
func (*BaseSuite) InitAccountsBNBBalance ¶
func (*BaseSuite) PrintTestResult ¶
func (s *BaseSuite) PrintTestResult()
func (*BaseSuite) SetupSuite ¶
func (s *BaseSuite) SetupSuite()
Click to show internal directories.
Click to hide internal directories.