Documentation
¶
Index ¶
- func CheckComposePermissions(ctx context.Context, input CheckComposePermissionsInput) (bool, error)
- func CheckReadPermissions(ctx context.Context, input CheckReadPermissionsInput) (bool, error)
- func CheckWritePermissions(ctx context.Context, input CheckWritePermissionsInput) (bool, error)
- func DisableMetadata(ctx context.Context, input DisableMetadataInput) error
- func GetMetadata(ctx context.Context, input GetMetadataInput) ([]any, error)
- func InsertMetadata(ctx context.Context, input InsertMetadataInput) error
- func SetMetadata(ctx context.Context, input SetMetadataInput) error
- func SetTaxonomy(ctx context.Context, input SetTaxonomyInput) error
- func TransferStreamOwnership(ctx context.Context, input TransferStreamOwnershipInput) error
- func WithSigner(platform *kwilTesting.Platform, signer []byte) *kwilTesting.Platform
- type CheckComposePermissionsInput
- type CheckReadPermissionsInput
- type CheckWritePermissionsInput
- type DescribeTaxonomiesInput
- type DisableMetadataInput
- type GetFirstRecordInput
- type GetIndexChangeInput
- type GetIndexInput
- type GetMetadataInput
- type GetRecordInput
- type InsertMetadataInput
- type ResultRow
- func DescribeTaxonomies(ctx context.Context, input DescribeTaxonomiesInput) ([]ResultRow, error)
- func GetFirstRecord(ctx context.Context, input GetFirstRecordInput) ([]ResultRow, error)
- func GetIndex(ctx context.Context, input GetIndexInput) ([]ResultRow, error)
- func GetIndexChange(ctx context.Context, input GetIndexChangeInput) ([]ResultRow, error)
- func GetRecord(ctx context.Context, input GetRecordInput) ([]ResultRow, error)
- type SetMetadataInput
- type SetTaxonomyInput
- type TransferStreamOwnershipInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckComposePermissions ¶ added in v1.2.2
func CheckComposePermissions(ctx context.Context, input CheckComposePermissionsInput) (bool, error)
CheckComposePermissions checks if a stream is allowed to compose from another stream
func CheckReadPermissions ¶ added in v1.2.2
func CheckReadPermissions(ctx context.Context, input CheckReadPermissionsInput) (bool, error)
CheckReadPermissions checks if a wallet is allowed to read from a contract
func CheckWritePermissions ¶ added in v1.2.2
func CheckWritePermissions(ctx context.Context, input CheckWritePermissionsInput) (bool, error)
CheckWritePermissions checks if a wallet is allowed to write to a contract
func DisableMetadata ¶ added in v1.2.2
func DisableMetadata(ctx context.Context, input DisableMetadataInput) error
DisableMetadata disables metadata in a contract
func GetMetadata ¶ added in v1.2.2
func GetMetadata(ctx context.Context, input GetMetadataInput) ([]any, error)
GetMetadata retrieves metadata from a contract
func InsertMetadata ¶ added in v1.2.2
func InsertMetadata(ctx context.Context, input InsertMetadataInput) error
InsertMetadata inserts metadata into a contract
func SetMetadata ¶ added in v1.2.2
func SetMetadata(ctx context.Context, input SetMetadataInput) error
func SetTaxonomy ¶ added in v1.2.2
func SetTaxonomy(ctx context.Context, input SetTaxonomyInput) error
SetTaxonomy sets the taxonomy for a composed stream with optional start date
func TransferStreamOwnership ¶ added in v1.2.2
func TransferStreamOwnership(ctx context.Context, input TransferStreamOwnershipInput) error
TransferStreamOwnership transfers ownership of a stream to a new owner
func WithSigner ¶
func WithSigner(platform *kwilTesting.Platform, signer []byte) *kwilTesting.Platform
WithSigner returns a new platform with the given signer, but doesn't mutate the original platform
Types ¶
type CheckComposePermissionsInput ¶ added in v1.2.2
type CheckComposePermissionsInput struct {
Platform *kwilTesting.Platform
DBID string
ForeignCaller string
}
type CheckReadPermissionsInput ¶ added in v1.2.2
type CheckReadPermissionsInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
DBID string
Wallet string
}
type CheckWritePermissionsInput ¶ added in v1.2.2
type CheckWritePermissionsInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
DBID string
Wallet string
}
type DescribeTaxonomiesInput ¶
type DescribeTaxonomiesInput struct {
Platform *kwilTesting.Platform
DBID string
LatestVersion bool
}
type DisableMetadataInput ¶ added in v1.2.2
type DisableMetadataInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
DBID string
RowID *types.UUID
}
type GetFirstRecordInput ¶
type GetIndexChangeInput ¶
type GetIndexInput ¶
type GetMetadataInput ¶ added in v1.2.2
type GetMetadataInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
DBID string
Key string
}
type GetRecordInput ¶
type InsertMetadataInput ¶ added in v1.2.2
type InsertMetadataInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
DBID string
Key string
Value string
ValType string
}
type ResultRow ¶
type ResultRow []string
func DescribeTaxonomies ¶
func DescribeTaxonomies(ctx context.Context, input DescribeTaxonomiesInput) ([]ResultRow, error)
DescribeTaxonomies is a helper function to describe taxonomies of a composed stream
func GetFirstRecord ¶
func GetFirstRecord(ctx context.Context, input GetFirstRecordInput) ([]ResultRow, error)
func GetIndexChange ¶
func GetIndexChange(ctx context.Context, input GetIndexChangeInput) ([]ResultRow, error)
type SetMetadataInput ¶ added in v1.2.2
type SetTaxonomyInput ¶ added in v1.2.2
type TransferStreamOwnershipInput ¶ added in v1.2.2
type TransferStreamOwnershipInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
DBID string
NewOwner string
}