Documentation ¶
Overview ¶
Package assets is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package assets is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AssetIdentityFromUuid(uuid string) string
- func AssetUuidFromEventIdentity(eventIdentity string) string
- func AssetUuidFromIdentity(assetIdentity string) string
- func ChainIDFromString(chainID string) (*big.Int, error)
- func EventIdentityFromUuid(assetUuid, eventUuid string) string
- func EventUuidFromIdentity(eventIdentity string) string
- func NewFlatMarshalerForAssets(ignoreFields []string) *simpleoneof.Marshaler
- func NewFlatMarshalerForEvents() *simpleoneof.Marshaler
- func NewFlatMarshalerForNotifications() *simpleoneof.Marshaler
- func PermissionedIdentityFromPublic(publicIdentity string) string
- func PrivacyStringToPublicBool(b string) (bool, error)
- func PrivacyToPublicBool(b Privacy) bool
- func PublicIdentityFromPermissioned(permissionedIdentity string) string
- func RegisterAssetsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssetsClient) error
- func RegisterAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssetsServer) error
- func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)
- func RegisterEventsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEventsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventsClient) error
- func RegisterEventsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEventsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventsServer) error
- func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)
- func RegisterPublicAssetsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPublicAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicAssetsClient) error
- func RegisterPublicAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPublicAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicAssetsServer) error
- func RegisterPublicAssetsServer(s grpc.ServiceRegistrar, srv PublicAssetsServer)
- type AssetResponse
- func (a *AssetResponse) AccessPolicyStringValue(name, defaultValue string) (string, error)
- func (*AssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssetResponse) GetAccessPolicy() map[string]*attribute.Attribute
- func (x *AssetResponse) GetAtTime() *timestamppb.Timestamp
- func (x *AssetResponse) GetAttributes() map[string]*attribute.Attribute
- func (x *AssetResponse) GetBehaviours() []string
- func (x *AssetResponse) GetChainId() string
- func (x *AssetResponse) GetConfirmationStatus() ConfirmationStatus
- func (x *AssetResponse) GetIdentity() string
- func (x *AssetResponse) GetOwner() string
- func (x *AssetResponse) GetProofMechanism() ProofMechanism
- func (x *AssetResponse) GetPublic() bool
- func (x *AssetResponse) GetTenantIdentity() string
- func (x *AssetResponse) GetTracked() TrackedStatus
- func (a *AssetResponse) IsPubliclyAttested(publicWallet string) bool
- func (a *AssetResponse) IsSharedForWallet(policyKey, wallet, attribute string) (bool, error)
- func (*AssetResponse) ProtoMessage()
- func (x *AssetResponse) ProtoReflect() protoreflect.Message
- func (x *AssetResponse) Reset()
- func (x *AssetResponse) String() string
- func (m *AssetResponse) Validate() error
- func (m *AssetResponse) ValidateAll() error
- type AssetResponseMultiError
- type AssetResponseValidationError
- func (e AssetResponseValidationError) Cause() error
- func (e AssetResponseValidationError) Error() string
- func (e AssetResponseValidationError) ErrorName() string
- func (e AssetResponseValidationError) Field() string
- func (e AssetResponseValidationError) Key() bool
- func (e AssetResponseValidationError) Reason() string
- type AssetsClient
- type AssetsServer
- type ConfirmationStatus
- func (ConfirmationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ConfirmationStatus) Enum() *ConfirmationStatus
- func (ConfirmationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfirmationStatus) Number() protoreflect.EnumNumber
- func (x ConfirmationStatus) String() string
- func (ConfirmationStatus) Type() protoreflect.EnumType
- type CreateAssetRequest
- func (*CreateAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssetRequest) GetAttributes() map[string]*attribute.Attribute
- func (x *CreateAssetRequest) GetBehaviours() []string
- func (x *CreateAssetRequest) GetChainId() string
- func (x *CreateAssetRequest) GetProofMechanism() ProofMechanism
- func (x *CreateAssetRequest) GetPublic() bool
- func (*CreateAssetRequest) ProtoMessage()
- func (x *CreateAssetRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAssetRequest) Reset()
- func (x *CreateAssetRequest) String() string
- func (m *CreateAssetRequest) Validate() error
- func (m *CreateAssetRequest) ValidateAll() error
- type CreateAssetRequestMultiError
- type CreateAssetRequestValidationError
- func (e CreateAssetRequestValidationError) Cause() error
- func (e CreateAssetRequestValidationError) Error() string
- func (e CreateAssetRequestValidationError) ErrorName() string
- func (e CreateAssetRequestValidationError) Field() string
- func (e CreateAssetRequestValidationError) Key() bool
- func (e CreateAssetRequestValidationError) Reason() string
- type CreateEventRequest
- func (*CreateEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEventRequest) GetAssetAttributes() map[string]*attribute.Attribute
- func (x *CreateEventRequest) GetBehaviour() string
- func (x *CreateEventRequest) GetEventAttributes() map[string]*attribute.Attribute
- func (x *CreateEventRequest) GetOperation() string
- func (x *CreateEventRequest) GetPrincipalDeclared() *Principal
- func (x *CreateEventRequest) GetTimestampDeclared() *timestamppb.Timestamp
- func (x *CreateEventRequest) GetUuid() string
- func (*CreateEventRequest) ProtoMessage()
- func (x *CreateEventRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEventRequest) Reset()
- func (x *CreateEventRequest) String() string
- func (m *CreateEventRequest) Validate() error
- func (m *CreateEventRequest) ValidateAll() error
- type CreateEventRequestMultiError
- type CreateEventRequestValidationError
- func (e CreateEventRequestValidationError) Cause() error
- func (e CreateEventRequestValidationError) Error() string
- func (e CreateEventRequestValidationError) ErrorName() string
- func (e CreateEventRequestValidationError) Field() string
- func (e CreateEventRequestValidationError) Key() bool
- func (e CreateEventRequestValidationError) Reason() string
- type EventCommitMessage
- func (*EventCommitMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EventCommitMessage) GetKhipuPackedAssemblyInputs() []byte
- func (x *EventCommitMessage) GetKhipuPackedCommitInput() []byte
- func (x *EventCommitMessage) GetKhipuPackedInputVer() int32
- func (x *EventCommitMessage) GetMessage() *EventMessage
- func (*EventCommitMessage) ProtoMessage()
- func (x *EventCommitMessage) ProtoReflect() protoreflect.Message
- func (x *EventCommitMessage) Reset()
- func (x *EventCommitMessage) String() string
- func (m *EventCommitMessage) Validate() error
- func (m *EventCommitMessage) ValidateAll() error
- type EventCommitMessageMultiError
- type EventCommitMessageValidationError
- func (e EventCommitMessageValidationError) Cause() error
- func (e EventCommitMessageValidationError) Error() string
- func (e EventCommitMessageValidationError) ErrorName() string
- func (e EventCommitMessageValidationError) Field() string
- func (e EventCommitMessageValidationError) Key() bool
- func (e EventCommitMessageValidationError) Reason() string
- type EventMessage
- func (*EventMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EventMessage) GetAsset() *AssetResponse
- func (x *EventMessage) GetAssetCreate2Factory() string
- func (x *EventMessage) GetEvent() *EventResponse
- func (x *EventMessage) GetEventCreate2Factory() string
- func (x *EventMessage) GetFailedReason() string
- func (x *EventMessage) GetTenantId() string
- func (*EventMessage) ProtoMessage()
- func (x *EventMessage) ProtoReflect() protoreflect.Message
- func (x *EventMessage) Reset()
- func (x *EventMessage) String() string
- func (m *EventMessage) Validate() error
- func (m *EventMessage) ValidateAll() error
- type EventMessageMultiError
- type EventMessageValidationError
- func (e EventMessageValidationError) Cause() error
- func (e EventMessageValidationError) Error() string
- func (e EventMessageValidationError) ErrorName() string
- func (e EventMessageValidationError) Field() string
- func (e EventMessageValidationError) Key() bool
- func (e EventMessageValidationError) Reason() string
- type EventReceiptMessage
- func (*EventReceiptMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EventReceiptMessage) GetCommitTransactionHash() []byte
- func (x *EventReceiptMessage) GetMessage() *EventMessage
- func (*EventReceiptMessage) ProtoMessage()
- func (x *EventReceiptMessage) ProtoReflect() protoreflect.Message
- func (x *EventReceiptMessage) Reset()
- func (x *EventReceiptMessage) String() string
- func (m *EventReceiptMessage) Validate() error
- func (m *EventReceiptMessage) ValidateAll() error
- type EventReceiptMessageMultiError
- type EventReceiptMessageValidationError
- func (e EventReceiptMessageValidationError) Cause() error
- func (e EventReceiptMessageValidationError) Error() string
- func (e EventReceiptMessageValidationError) ErrorName() string
- func (e EventReceiptMessageValidationError) Field() string
- func (e EventReceiptMessageValidationError) Key() bool
- func (e EventReceiptMessageValidationError) Reason() string
- type EventResponse
- func (*EventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventResponse) GetAssetAttributes() map[string]*attribute.Attribute
- func (x *EventResponse) GetAssetIdentity() string
- func (x *EventResponse) GetBehaviour() string
- func (x *EventResponse) GetBlockNumber() uint64
- func (x *EventResponse) GetConfirmationStatus() ConfirmationStatus
- func (x *EventResponse) GetEventAttributes() map[string]*attribute.Attribute
- func (x *EventResponse) GetFrom() string
- func (x *EventResponse) GetIdentity() string
- func (x *EventResponse) GetMerklelogEntry() *MerkleLogEntry
- func (x *EventResponse) GetOperation() string
- func (x *EventResponse) GetPrincipalAccepted() *Principal
- func (x *EventResponse) GetPrincipalDeclared() *Principal
- func (m *EventResponse) GetProofDetails() isEventResponse_ProofDetails
- func (x *EventResponse) GetTenantIdentity() string
- func (x *EventResponse) GetTimestampAccepted() *timestamppb.Timestamp
- func (x *EventResponse) GetTimestampCommitted() *timestamppb.Timestamp
- func (x *EventResponse) GetTimestampDeclared() *timestamppb.Timestamp
- func (x *EventResponse) GetTransactionId() string
- func (x *EventResponse) GetTransactionIndex() uint64
- func (*EventResponse) ProtoMessage()
- func (x *EventResponse) ProtoReflect() protoreflect.Message
- func (x *EventResponse) Reset()
- func (x *EventResponse) String() string
- func (m *EventResponse) Validate() error
- func (m *EventResponse) ValidateAll() error
- type EventResponseJSONAPI
- func (*EventResponseJSONAPI) Descriptor() ([]byte, []int)deprecated
- func (x *EventResponseJSONAPI) GetAssetAttributes() map[string]string
- func (x *EventResponseJSONAPI) GetAssetIdentity() string
- func (x *EventResponseJSONAPI) GetBehaviour() string
- func (x *EventResponseJSONAPI) GetBlockNumber() uint64
- func (x *EventResponseJSONAPI) GetConfirmationStatus() string
- func (x *EventResponseJSONAPI) GetEventAttributes() map[string]string
- func (x *EventResponseJSONAPI) GetFrom() string
- func (x *EventResponseJSONAPI) GetIdentity() string
- func (x *EventResponseJSONAPI) GetMerklelogEntry() *MerkleLogEntry
- func (x *EventResponseJSONAPI) GetOperation() string
- func (x *EventResponseJSONAPI) GetPrincipalAccepted() *Principal
- func (x *EventResponseJSONAPI) GetPrincipalDeclared() *Principal
- func (m *EventResponseJSONAPI) GetProofDetails() isEventResponseJSONAPI_ProofDetails
- func (x *EventResponseJSONAPI) GetTenantIdentity() string
- func (x *EventResponseJSONAPI) GetTimestampAccepted() string
- func (x *EventResponseJSONAPI) GetTimestampCommitted() string
- func (x *EventResponseJSONAPI) GetTimestampDeclared() string
- func (x *EventResponseJSONAPI) GetTransactionId() string
- func (x *EventResponseJSONAPI) GetTransactionIndex() uint64
- func (*EventResponseJSONAPI) ProtoMessage()
- func (x *EventResponseJSONAPI) ProtoReflect() protoreflect.Message
- func (x *EventResponseJSONAPI) Reset()
- func (x *EventResponseJSONAPI) String() string
- func (m *EventResponseJSONAPI) Validate() error
- func (m *EventResponseJSONAPI) ValidateAll() error
- type EventResponseJSONAPIMultiError
- type EventResponseJSONAPIValidationError
- func (e EventResponseJSONAPIValidationError) Cause() error
- func (e EventResponseJSONAPIValidationError) Error() string
- func (e EventResponseJSONAPIValidationError) ErrorName() string
- func (e EventResponseJSONAPIValidationError) Field() string
- func (e EventResponseJSONAPIValidationError) Key() bool
- func (e EventResponseJSONAPIValidationError) Reason() string
- type EventResponseJSONAPI_MerklelogEntry
- type EventResponseMultiError
- type EventResponseValidationError
- func (e EventResponseValidationError) Cause() error
- func (e EventResponseValidationError) Error() string
- func (e EventResponseValidationError) ErrorName() string
- func (e EventResponseValidationError) Field() string
- func (e EventResponseValidationError) Key() bool
- func (e EventResponseValidationError) Reason() string
- type EventResponse_MerklelogEntry
- type EventsClient
- type EventsServer
- type GetAssetPublicURLRequest
- func (*GetAssetPublicURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssetPublicURLRequest) GetUuid() string
- func (*GetAssetPublicURLRequest) ProtoMessage()
- func (x *GetAssetPublicURLRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssetPublicURLRequest) Reset()
- func (x *GetAssetPublicURLRequest) String() string
- func (m *GetAssetPublicURLRequest) Validate() error
- func (m *GetAssetPublicURLRequest) ValidateAll() error
- type GetAssetPublicURLRequestMultiError
- type GetAssetPublicURLRequestValidationError
- func (e GetAssetPublicURLRequestValidationError) Cause() error
- func (e GetAssetPublicURLRequestValidationError) Error() string
- func (e GetAssetPublicURLRequestValidationError) ErrorName() string
- func (e GetAssetPublicURLRequestValidationError) Field() string
- func (e GetAssetPublicURLRequestValidationError) Key() bool
- func (e GetAssetPublicURLRequestValidationError) Reason() string
- type GetAssetRequest
- func (*GetAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssetRequest) GetAtTime() *timestamppb.Timestamp
- func (x *GetAssetRequest) GetUuid() string
- func (*GetAssetRequest) ProtoMessage()
- func (x *GetAssetRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssetRequest) Reset()
- func (x *GetAssetRequest) String() string
- func (m *GetAssetRequest) Validate() error
- func (m *GetAssetRequest) ValidateAll() error
- type GetAssetRequestMultiError
- type GetAssetRequestValidationError
- func (e GetAssetRequestValidationError) Cause() error
- func (e GetAssetRequestValidationError) Error() string
- func (e GetAssetRequestValidationError) ErrorName() string
- func (e GetAssetRequestValidationError) Field() string
- func (e GetAssetRequestValidationError) Key() bool
- func (e GetAssetRequestValidationError) Reason() string
- type GetEventRequest
- func (*GetEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventRequest) GetAssetUuid() string
- func (x *GetEventRequest) GetUuid() string
- func (*GetEventRequest) ProtoMessage()
- func (x *GetEventRequest) ProtoReflect() protoreflect.Message
- func (x *GetEventRequest) Reset()
- func (x *GetEventRequest) String() string
- func (m *GetEventRequest) Validate() error
- func (m *GetEventRequest) ValidateAll() error
- type GetEventRequestMultiError
- type GetEventRequestValidationError
- func (e GetEventRequestValidationError) Cause() error
- func (e GetEventRequestValidationError) Error() string
- func (e GetEventRequestValidationError) ErrorName() string
- func (e GetEventRequestValidationError) Field() string
- func (e GetEventRequestValidationError) Key() bool
- func (e GetEventRequestValidationError) Reason() string
- type IdentityFactory
- type ListAssetsRequest
- func (*ListAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssetsRequest) GetAttributes() map[string]string
- func (x *ListAssetsRequest) GetChainId() string
- func (x *ListAssetsRequest) GetConfirmationStatus() ConfirmationStatus
- func (x *ListAssetsRequest) GetFilters() []*filter.Filter
- func (x *ListAssetsRequest) GetOrderBy() ListAssetsRequest_OrderBy
- func (x *ListAssetsRequest) GetPageSize() int32
- func (x *ListAssetsRequest) GetPageToken() string
- func (x *ListAssetsRequest) GetPrivacy() Privacy
- func (x *ListAssetsRequest) GetProofMechanism() ProofMechanism
- func (x *ListAssetsRequest) GetTracked() TrackedStatus
- func (*ListAssetsRequest) ProtoMessage()
- func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAssetsRequest) Reset()
- func (x *ListAssetsRequest) String() string
- func (m *ListAssetsRequest) Validate() error
- func (m *ListAssetsRequest) ValidateAll() error
- type ListAssetsRequestMultiError
- type ListAssetsRequestValidationError
- func (e ListAssetsRequestValidationError) Cause() error
- func (e ListAssetsRequestValidationError) Error() string
- func (e ListAssetsRequestValidationError) ErrorName() string
- func (e ListAssetsRequestValidationError) Field() string
- func (e ListAssetsRequestValidationError) Key() bool
- func (e ListAssetsRequestValidationError) Reason() string
- type ListAssetsRequest_OrderBy
- func (ListAssetsRequest_OrderBy) Descriptor() protoreflect.EnumDescriptor
- func (x ListAssetsRequest_OrderBy) Enum() *ListAssetsRequest_OrderBy
- func (ListAssetsRequest_OrderBy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListAssetsRequest_OrderBy) Number() protoreflect.EnumNumber
- func (x ListAssetsRequest_OrderBy) String() string
- func (ListAssetsRequest_OrderBy) Type() protoreflect.EnumType
- type ListAssetsResponse
- func (*ListAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssetsResponse) GetAssets() []*AssetResponse
- func (x *ListAssetsResponse) GetNextPageToken() string
- func (*ListAssetsResponse) ProtoMessage()
- func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssetsResponse) Reset()
- func (x *ListAssetsResponse) String() string
- func (m *ListAssetsResponse) Validate() error
- func (m *ListAssetsResponse) ValidateAll() error
- type ListAssetsResponseMultiError
- type ListAssetsResponseValidationError
- func (e ListAssetsResponseValidationError) Cause() error
- func (e ListAssetsResponseValidationError) Error() string
- func (e ListAssetsResponseValidationError) ErrorName() string
- func (e ListAssetsResponseValidationError) Field() string
- func (e ListAssetsResponseValidationError) Key() bool
- func (e ListAssetsResponseValidationError) Reason() string
- type ListEventsRequest
- func (*ListEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsRequest) GetAsset() *ListEventsRequest_AssetQuery
- func (x *ListEventsRequest) GetAssetAttributes() map[string]string
- func (x *ListEventsRequest) GetBehaviour() string
- func (x *ListEventsRequest) GetConfirmationStatus() ConfirmationStatus
- func (x *ListEventsRequest) GetEventAttributes() map[string]string
- func (x *ListEventsRequest) GetFilters() []*filter.Filter
- func (x *ListEventsRequest) GetOperation() string
- func (x *ListEventsRequest) GetOrderBy() ListEventsRequest_OrderBy
- func (x *ListEventsRequest) GetPageSize() int32
- func (x *ListEventsRequest) GetPageToken() string
- func (x *ListEventsRequest) GetPrincipalAccepted() *Principal
- func (x *ListEventsRequest) GetPrincipalDeclared() *Principal
- func (x *ListEventsRequest) GetProofMechanism() ProofMechanism
- func (x *ListEventsRequest) GetTimestampAcceptedBefore() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetTimestampAcceptedSince() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetTimestampCommittedBefore() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetTimestampCommittedSince() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetTimestampDeclaredBefore() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetTimestampDeclaredSince() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetUuid() string
- func (*ListEventsRequest) ProtoMessage()
- func (x *ListEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ListEventsRequest) Reset()
- func (x *ListEventsRequest) String() string
- func (m *ListEventsRequest) Validate() error
- func (m *ListEventsRequest) ValidateAll() error
- type ListEventsRequestMultiError
- type ListEventsRequestValidationError
- func (e ListEventsRequestValidationError) Cause() error
- func (e ListEventsRequestValidationError) Error() string
- func (e ListEventsRequestValidationError) ErrorName() string
- func (e ListEventsRequestValidationError) Field() string
- func (e ListEventsRequestValidationError) Key() bool
- func (e ListEventsRequestValidationError) Reason() string
- type ListEventsRequest_AssetQuery
- func (*ListEventsRequest_AssetQuery) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsRequest_AssetQuery) GetAttributes() map[string]string
- func (*ListEventsRequest_AssetQuery) ProtoMessage()
- func (x *ListEventsRequest_AssetQuery) ProtoReflect() protoreflect.Message
- func (x *ListEventsRequest_AssetQuery) Reset()
- func (x *ListEventsRequest_AssetQuery) String() string
- func (m *ListEventsRequest_AssetQuery) Validate() error
- func (m *ListEventsRequest_AssetQuery) ValidateAll() error
- type ListEventsRequest_AssetQueryMultiError
- type ListEventsRequest_AssetQueryValidationError
- func (e ListEventsRequest_AssetQueryValidationError) Cause() error
- func (e ListEventsRequest_AssetQueryValidationError) Error() string
- func (e ListEventsRequest_AssetQueryValidationError) ErrorName() string
- func (e ListEventsRequest_AssetQueryValidationError) Field() string
- func (e ListEventsRequest_AssetQueryValidationError) Key() bool
- func (e ListEventsRequest_AssetQueryValidationError) Reason() string
- type ListEventsRequest_OrderBy
- func (ListEventsRequest_OrderBy) Descriptor() protoreflect.EnumDescriptor
- func (x ListEventsRequest_OrderBy) Enum() *ListEventsRequest_OrderBy
- func (ListEventsRequest_OrderBy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListEventsRequest_OrderBy) Number() protoreflect.EnumNumber
- func (x ListEventsRequest_OrderBy) String() string
- func (ListEventsRequest_OrderBy) Type() protoreflect.EnumType
- type ListEventsResponse
- func (*ListEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsResponse) GetEvents() []*EventResponse
- func (x *ListEventsResponse) GetNextPageToken() string
- func (*ListEventsResponse) ProtoMessage()
- func (x *ListEventsResponse) ProtoReflect() protoreflect.Message
- func (x *ListEventsResponse) Reset()
- func (x *ListEventsResponse) String() string
- func (m *ListEventsResponse) Validate() error
- func (m *ListEventsResponse) ValidateAll() error
- type ListEventsResponseMultiError
- type ListEventsResponseValidationError
- func (e ListEventsResponseValidationError) Cause() error
- func (e ListEventsResponseValidationError) Error() string
- func (e ListEventsResponseValidationError) ErrorName() string
- func (e ListEventsResponseValidationError) Field() string
- func (e ListEventsResponseValidationError) Key() bool
- func (e ListEventsResponseValidationError) Reason() string
- type MerkleLogCommit
- func (*MerkleLogCommit) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleLogCommit) GetIdtimestamp() string
- func (x *MerkleLogCommit) GetIndex() uint64
- func (*MerkleLogCommit) ProtoMessage()
- func (x *MerkleLogCommit) ProtoReflect() protoreflect.Message
- func (x *MerkleLogCommit) Reset()
- func (x *MerkleLogCommit) String() string
- func (m *MerkleLogCommit) Validate() error
- func (m *MerkleLogCommit) ValidateAll() error
- type MerkleLogCommitMessage
- func (*MerkleLogCommitMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleLogCommitMessage) GetCommit() *MerkleLogCommit
- func (x *MerkleLogCommitMessage) GetEventIdentity() string
- func (x *MerkleLogCommitMessage) GetTenantIdentity() string
- func (x *MerkleLogCommitMessage) GetTimestamp() *timestamppb.Timestamp
- func (*MerkleLogCommitMessage) ProtoMessage()
- func (x *MerkleLogCommitMessage) ProtoReflect() protoreflect.Message
- func (x *MerkleLogCommitMessage) Reset()
- func (x *MerkleLogCommitMessage) String() string
- func (m *MerkleLogCommitMessage) Validate() error
- func (m *MerkleLogCommitMessage) ValidateAll() error
- type MerkleLogCommitMessageMultiError
- type MerkleLogCommitMessageValidationError
- func (e MerkleLogCommitMessageValidationError) Cause() error
- func (e MerkleLogCommitMessageValidationError) Error() string
- func (e MerkleLogCommitMessageValidationError) ErrorName() string
- func (e MerkleLogCommitMessageValidationError) Field() string
- func (e MerkleLogCommitMessageValidationError) Key() bool
- func (e MerkleLogCommitMessageValidationError) Reason() string
- type MerkleLogCommitMultiError
- type MerkleLogCommitValidationError
- func (e MerkleLogCommitValidationError) Cause() error
- func (e MerkleLogCommitValidationError) Error() string
- func (e MerkleLogCommitValidationError) ErrorName() string
- func (e MerkleLogCommitValidationError) Field() string
- func (e MerkleLogCommitValidationError) Key() bool
- func (e MerkleLogCommitValidationError) Reason() string
- type MerkleLogConfirm
- func (*MerkleLogConfirm) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleLogConfirm) GetIdtimestamp() string
- func (x *MerkleLogConfirm) GetMmrSize() uint64
- func (x *MerkleLogConfirm) GetRoot() []byte
- func (x *MerkleLogConfirm) GetSignedTreeHead() []byte
- func (x *MerkleLogConfirm) GetTimestamp() int64
- func (*MerkleLogConfirm) ProtoMessage()
- func (x *MerkleLogConfirm) ProtoReflect() protoreflect.Message
- func (x *MerkleLogConfirm) Reset()
- func (x *MerkleLogConfirm) String() string
- func (m *MerkleLogConfirm) Validate() error
- func (m *MerkleLogConfirm) ValidateAll() error
- type MerkleLogConfirmMessage
- func (*MerkleLogConfirmMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleLogConfirmMessage) GetConfirm() *MerkleLogConfirm
- func (x *MerkleLogConfirmMessage) GetTenantIdentity() string
- func (*MerkleLogConfirmMessage) ProtoMessage()
- func (x *MerkleLogConfirmMessage) ProtoReflect() protoreflect.Message
- func (x *MerkleLogConfirmMessage) Reset()
- func (x *MerkleLogConfirmMessage) String() string
- func (m *MerkleLogConfirmMessage) Validate() error
- func (m *MerkleLogConfirmMessage) ValidateAll() error
- type MerkleLogConfirmMessageMultiError
- type MerkleLogConfirmMessageValidationError
- func (e MerkleLogConfirmMessageValidationError) Cause() error
- func (e MerkleLogConfirmMessageValidationError) Error() string
- func (e MerkleLogConfirmMessageValidationError) ErrorName() string
- func (e MerkleLogConfirmMessageValidationError) Field() string
- func (e MerkleLogConfirmMessageValidationError) Key() bool
- func (e MerkleLogConfirmMessageValidationError) Reason() string
- type MerkleLogConfirmMultiError
- type MerkleLogConfirmValidationError
- func (e MerkleLogConfirmValidationError) Cause() error
- func (e MerkleLogConfirmValidationError) Error() string
- func (e MerkleLogConfirmValidationError) ErrorName() string
- func (e MerkleLogConfirmValidationError) Field() string
- func (e MerkleLogConfirmValidationError) Key() bool
- func (e MerkleLogConfirmValidationError) Reason() string
- type MerkleLogEntry
- func (*MerkleLogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleLogEntry) GetCommit() *MerkleLogCommit
- func (x *MerkleLogEntry) GetConfirm() *MerkleLogConfirm
- func (x *MerkleLogEntry) GetUnequivocal() *MerkleLogUnequivocal
- func (*MerkleLogEntry) ProtoMessage()
- func (x *MerkleLogEntry) ProtoReflect() protoreflect.Message
- func (x *MerkleLogEntry) Reset()
- func (x *MerkleLogEntry) String() string
- func (m *MerkleLogEntry) Validate() error
- func (m *MerkleLogEntry) ValidateAll() error
- type MerkleLogEntryMultiError
- type MerkleLogEntryValidationError
- func (e MerkleLogEntryValidationError) Cause() error
- func (e MerkleLogEntryValidationError) Error() string
- func (e MerkleLogEntryValidationError) ErrorName() string
- func (e MerkleLogEntryValidationError) Field() string
- func (e MerkleLogEntryValidationError) Key() bool
- func (e MerkleLogEntryValidationError) Reason() string
- type MerkleLogUnequivocal
- func (*MerkleLogUnequivocal) Descriptor() ([]byte, []int)deprecated
- func (*MerkleLogUnequivocal) ProtoMessage()
- func (x *MerkleLogUnequivocal) ProtoReflect() protoreflect.Message
- func (x *MerkleLogUnequivocal) Reset()
- func (x *MerkleLogUnequivocal) String() string
- func (m *MerkleLogUnequivocal) Validate() error
- func (m *MerkleLogUnequivocal) ValidateAll() error
- type MerkleLogUnequivocalMessage
- func (*MerkleLogUnequivocalMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleLogUnequivocalMessage) GetTenantIdentity() string
- func (x *MerkleLogUnequivocalMessage) GetUnequivocal() *MerkleLogUnequivocal
- func (*MerkleLogUnequivocalMessage) ProtoMessage()
- func (x *MerkleLogUnequivocalMessage) ProtoReflect() protoreflect.Message
- func (x *MerkleLogUnequivocalMessage) Reset()
- func (x *MerkleLogUnequivocalMessage) String() string
- func (m *MerkleLogUnequivocalMessage) Validate() error
- func (m *MerkleLogUnequivocalMessage) ValidateAll() error
- type MerkleLogUnequivocalMessageMultiError
- type MerkleLogUnequivocalMessageValidationError
- func (e MerkleLogUnequivocalMessageValidationError) Cause() error
- func (e MerkleLogUnequivocalMessageValidationError) Error() string
- func (e MerkleLogUnequivocalMessageValidationError) ErrorName() string
- func (e MerkleLogUnequivocalMessageValidationError) Field() string
- func (e MerkleLogUnequivocalMessageValidationError) Key() bool
- func (e MerkleLogUnequivocalMessageValidationError) Reason() string
- type MerkleLogUnequivocalMultiError
- type MerkleLogUnequivocalValidationError
- func (e MerkleLogUnequivocalValidationError) Cause() error
- func (e MerkleLogUnequivocalValidationError) Error() string
- func (e MerkleLogUnequivocalValidationError) ErrorName() string
- func (e MerkleLogUnequivocalValidationError) Field() string
- func (e MerkleLogUnequivocalValidationError) Key() bool
- func (e MerkleLogUnequivocalValidationError) Reason() string
- type Principal
- func (*Principal) Descriptor() ([]byte, []int)deprecated
- func (x *Principal) GetDisplayName() string
- func (x *Principal) GetEmail() string
- func (x *Principal) GetIssuer() string
- func (x *Principal) GetSubject() string
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (x *Principal) String() string
- func (m *Principal) Validate() error
- func (m *Principal) ValidateAll() error
- type PrincipalMultiError
- type PrincipalValidationError
- type Privacy
- type ProofMechanism
- func (ProofMechanism) Descriptor() protoreflect.EnumDescriptor
- func (x ProofMechanism) Enum() *ProofMechanism
- func (ProofMechanism) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProofMechanism) Number() protoreflect.EnumNumber
- func (x ProofMechanism) String() string
- func (ProofMechanism) Type() protoreflect.EnumType
- type PublicAssetURLResponse
- func (*PublicAssetURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublicAssetURLResponse) GetPublicurl() string
- func (*PublicAssetURLResponse) ProtoMessage()
- func (x *PublicAssetURLResponse) ProtoReflect() protoreflect.Message
- func (x *PublicAssetURLResponse) Reset()
- func (x *PublicAssetURLResponse) String() string
- func (m *PublicAssetURLResponse) Validate() error
- func (m *PublicAssetURLResponse) ValidateAll() error
- type PublicAssetURLResponseMultiError
- type PublicAssetURLResponseValidationError
- func (e PublicAssetURLResponseValidationError) Cause() error
- func (e PublicAssetURLResponseValidationError) Error() string
- func (e PublicAssetURLResponseValidationError) ErrorName() string
- func (e PublicAssetURLResponseValidationError) Field() string
- func (e PublicAssetURLResponseValidationError) Key() bool
- func (e PublicAssetURLResponseValidationError) Reason() string
- type PublicAssetsClient
- type PublicAssetsServer
- type PublicEventURLResponse
- func (*PublicEventURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublicEventURLResponse) GetPublicurl() string
- func (*PublicEventURLResponse) ProtoMessage()
- func (x *PublicEventURLResponse) ProtoReflect() protoreflect.Message
- func (x *PublicEventURLResponse) Reset()
- func (x *PublicEventURLResponse) String() string
- func (m *PublicEventURLResponse) Validate() error
- func (m *PublicEventURLResponse) ValidateAll() error
- type PublicEventURLResponseMultiError
- type PublicEventURLResponseValidationError
- func (e PublicEventURLResponseValidationError) Cause() error
- func (e PublicEventURLResponseValidationError) Error() string
- func (e PublicEventURLResponseValidationError) ErrorName() string
- func (e PublicEventURLResponseValidationError) Field() string
- func (e PublicEventURLResponseValidationError) Key() bool
- func (e PublicEventURLResponseValidationError) Reason() string
- type TrackedStatus
- func (TrackedStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TrackedStatus) Enum() *TrackedStatus
- func (TrackedStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TrackedStatus) Number() protoreflect.EnumNumber
- func (x TrackedStatus) String() string
- func (TrackedStatus) Type() protoreflect.EnumType
- type UUIDIdentityFactory
- type UnimplementedAssetsServer
- func (UnimplementedAssetsServer) CreateAsset(context.Context, *CreateAssetRequest) (*AssetResponse, error)
- func (UnimplementedAssetsServer) GetAsset(context.Context, *GetAssetRequest) (*AssetResponse, error)
- func (UnimplementedAssetsServer) GetAssetPublicURL(context.Context, *GetAssetPublicURLRequest) (*PublicAssetURLResponse, error)
- func (UnimplementedAssetsServer) GetCaps(context.Context, *caps.GetCapsRequest) (*caps.Caps, error)
- func (UnimplementedAssetsServer) GetEvent(context.Context, *GetEventRequest) (*EventResponse, error)
- func (UnimplementedAssetsServer) GetEventPublicURL(context.Context, *GetEventRequest) (*PublicEventURLResponse, error)
- func (UnimplementedAssetsServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
- func (UnimplementedAssetsServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
- type UnimplementedEventsServer
- type UnimplementedPublicAssetsServer
- func (UnimplementedPublicAssetsServer) GetPublicAsset(context.Context, *GetAssetRequest) (*AssetResponse, error)
- func (UnimplementedPublicAssetsServer) GetPublicEvent(context.Context, *GetEventRequest) (*EventResponse, error)
- func (UnimplementedPublicAssetsServer) ListPublicEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
- type UnsafeAssetsServer
- type UnsafeEventsServer
- type UnsafePublicAssetsServer
Constants ¶
const ( AssetAttributesRead = "asset_attributes_read" AssetAttributesWrite = "asset_attributes_write" EventDisplayTypeRead = "event_arc_display_type_read" EventDisplayTypeWrite = "event_arc_display_type_write" WalletValueMarker = "wallet" TesseraPubValueMarker = "tessera" AttributeItem = "attribute" ValueItem = "value" AttributeWildcard = "*" )
const ( PublicAssets_GetPublicEvent_FullMethodName = "/archivist.v2.PublicAssets/GetPublicEvent" PublicAssets_GetPublicAsset_FullMethodName = "/archivist.v2.PublicAssets/GetPublicAsset" PublicAssets_ListPublicEvents_FullMethodName = "/archivist.v2.PublicAssets/ListPublicEvents" )
const ( Assets_ListAssets_FullMethodName = "/archivist.v2.Assets/ListAssets" Assets_CreateAsset_FullMethodName = "/archivist.v2.Assets/CreateAsset" Assets_GetAsset_FullMethodName = "/archivist.v2.Assets/GetAsset" Assets_GetAssetPublicURL_FullMethodName = "/archivist.v2.Assets/GetAssetPublicURL" Assets_GetEvent_FullMethodName = "/archivist.v2.Assets/GetEvent" Assets_GetEventPublicURL_FullMethodName = "/archivist.v2.Assets/GetEventPublicURL" Assets_ListEvents_FullMethodName = "/archivist.v2.Assets/ListEvents" Assets_GetCaps_FullMethodName = "/archivist.v2.Assets/GetCaps" )
const (
Events_Create_FullMethodName = "/archivist.v2.Events/Create"
)
Variables ¶
var ( ConfirmationStatus_name = map[int32]string{ 0: "CONFIRMATION_STATUS_UNSPECIFIED", 1: "PENDING", 2: "CONFIRMED", 3: "FAILED", 4: "STORED", 5: "COMMITTED", 6: "UNEQUIVOCAL", } ConfirmationStatus_value = map[string]int32{ "CONFIRMATION_STATUS_UNSPECIFIED": 0, "PENDING": 1, "CONFIRMED": 2, "FAILED": 3, "STORED": 4, "COMMITTED": 5, "UNEQUIVOCAL": 6, } )
Enum value maps for ConfirmationStatus.
var ( TrackedStatus_name = map[int32]string{ 0: "TRACKED_STATUS_UNSPECIFIED", 1: "TRACKED", 2: "NOT_TRACKED", 3: "ANY", } TrackedStatus_value = map[string]int32{ "TRACKED_STATUS_UNSPECIFIED": 0, "TRACKED": 1, "NOT_TRACKED": 2, "ANY": 3, } )
Enum value maps for TrackedStatus.
var ( ProofMechanism_name = map[int32]string{ 0: "PROOF_MECHANISM_UNSPECIFIED", 1: "RESERVED1", 2: "SIMPLE_HASH", 3: "MERKLE_LOG", } ProofMechanism_value = map[string]int32{ "PROOF_MECHANISM_UNSPECIFIED": 0, "RESERVED1": 1, "SIMPLE_HASH": 2, "MERKLE_LOG": 3, } )
Enum value maps for ProofMechanism.
var ( Privacy_name = map[int32]string{ 0: "PRIVACY_UNSPECIFIED", 1: "RESTRICTED", 2: "PUBLIC", } Privacy_value = map[string]int32{ "PRIVACY_UNSPECIFIED": 0, "RESTRICTED": 1, "PUBLIC": 2, } )
Enum value maps for Privacy.
var ( ListAssetsRequest_OrderBy_name = map[int32]string{ 0: "DEFAULT", 1: "SIMPLEHASHV1", 2: "SIMPLEHASHV2", } ListAssetsRequest_OrderBy_value = map[string]int32{ "DEFAULT": 0, "SIMPLEHASHV1": 1, "SIMPLEHASHV2": 2, } )
Enum value maps for ListAssetsRequest_OrderBy.
var ( ListEventsRequest_OrderBy_name = map[int32]string{ 0: "DEFAULT", 1: "SIMPLEHASHV1", 2: "SIMPLEHASHV2", } ListEventsRequest_OrderBy_value = map[string]int32{ "DEFAULT": 0, "SIMPLEHASHV1": 1, "SIMPLEHASHV2": 2, } )
Enum value maps for ListEventsRequest_OrderBy.
var Assets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "archivist.v2.Assets", HandlerType: (*AssetsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListAssets", Handler: _Assets_ListAssets_Handler, }, { MethodName: "CreateAsset", Handler: _Assets_CreateAsset_Handler, }, { MethodName: "GetAsset", Handler: _Assets_GetAsset_Handler, }, { MethodName: "GetAssetPublicURL", Handler: _Assets_GetAssetPublicURL_Handler, }, { MethodName: "GetEvent", Handler: _Assets_GetEvent_Handler, }, { MethodName: "GetEventPublicURL", Handler: _Assets_GetEventPublicURL_Handler, }, { MethodName: "ListEvents", Handler: _Assets_ListEvents_Handler, }, { MethodName: "GetCaps", Handler: _Assets_GetCaps_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "datatrails-common-api/assets/v2/assets/service.proto", }
Assets_ServiceDesc is the grpc.ServiceDesc for Assets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Events_ServiceDesc = grpc.ServiceDesc{ ServiceName: "archivist.v2.Events", HandlerType: (*EventsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Events_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "datatrails-common-api/assets/v2/assets/service.proto", }
Events_ServiceDesc is the grpc.ServiceDesc for Events service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_datatrails_common_api_assets_v2_assets_assetresponse_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_createasset_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_createevent_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_enums_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_eventmessage_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_eventresponse_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_eventresponsejsonapi_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_getasset_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_getevent_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_listassets_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_listevents_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_merklelogentry_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_miscmessages_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_principal_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_publicassets_proto protoreflect.FileDescriptor
var File_datatrails_common_api_assets_v2_assets_service_proto protoreflect.FileDescriptor
var PublicAssets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "archivist.v2.PublicAssets", HandlerType: (*PublicAssetsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPublicEvent", Handler: _PublicAssets_GetPublicEvent_Handler, }, { MethodName: "GetPublicAsset", Handler: _PublicAssets_GetPublicAsset_Handler, }, { MethodName: "ListPublicEvents", Handler: _PublicAssets_ListPublicEvents_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "datatrails-common-api/assets/v2/assets/publicassets.proto", }
PublicAssets_ServiceDesc is the grpc.ServiceDesc for PublicAssets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func AssetIdentityFromUuid ¶
AssetIdentityFromUuid derives RRN identity for asset from a bare uuid id
func AssetUuidFromEventIdentity ¶
AssetUuidFromEventIdentity gets the asset UUID from an event identity
func AssetUuidFromIdentity ¶
AssetUuidFromIdentity derives asset base uuid id from RRN identity When the prefix does not match this will return the original identity unchanged
func ChainIDFromString ¶
ChainIDFromString converts the string representation of a chain id to a big integer. Ensuring it is <= floor(MAX_UINT64/2) - 36
We operate private consortia style networks and so can decide the range of chain ids we support for our networks. We choose to stick inside the uint64 representable range specified in the *stale* EIP-2294. We could in future relax this.
History: EIP-155 which introduced replay protection, does not specify an upper bound for chainId. The subsequent EIP-1344 for the ChainID opcode implicitly bounds it at 256bit (because that is the maximum the the evm allows for an atomic type).
func EventIdentityFromUuid ¶
EventIdentityFromUuid derives RRN identity for asset from base uuid ids
func EventUuidFromIdentity ¶
EventUuidFromIdentity gets the event UUID from an event identity
func NewFlatMarshalerForAssets ¶
func NewFlatMarshalerForAssets(ignoreFields []string) *simpleoneof.Marshaler
NewFlatMarshalerForAssets creates marshaler configured to handle assets/events
func NewFlatMarshalerForEvents ¶
func NewFlatMarshalerForEvents() *simpleoneof.Marshaler
NewFlatMarshalerForEvents creates marshaler configured to handle assets/events
func NewFlatMarshalerForNotifications ¶
func NewFlatMarshalerForNotifications() *simpleoneof.Marshaler
NewFlatMarshalerForNotifications create marshaler configured to handle event message - we send it to UI
func PermissionedIdentityFromPublic ¶
PermissionedIdentityFromPublic returns the permissioned identity from the public identity
NOTE: if the given identity is already a permissioned identity, return the permissioned identity unchanged.
func PrivacyStringToPublicBool ¶
PrivacyStringToPublicBool converts a string repr of Privacy enum to bool.
func PrivacyToPublicBool ¶
PrivacyToPublicBool converts Privacy to bool
func PublicIdentityFromPermissioned ¶
PublicIdentityFromPermissioned returns the public identity from the permissioned identity
func RegisterAssetsHandler ¶
RegisterAssetsHandler registers the http handlers for service Assets to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAssetsHandlerClient ¶
func RegisterAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssetsClient) error
RegisterAssetsHandlerClient registers the http handlers for service Assets to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AssetsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AssetsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AssetsClient" to call the correct interceptors.
func RegisterAssetsHandlerFromEndpoint ¶
func RegisterAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAssetsHandlerFromEndpoint is same as RegisterAssetsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAssetsHandlerServer ¶
func RegisterAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssetsServer) error
RegisterAssetsHandlerServer registers the http handlers for service Assets to "mux". UnaryRPC :call AssetsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAssetsHandlerFromEndpoint instead.
func RegisterAssetsServer ¶
func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)
func RegisterEventsHandler ¶
RegisterEventsHandler registers the http handlers for service Events to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEventsHandlerClient ¶
func RegisterEventsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventsClient) error
RegisterEventsHandlerClient registers the http handlers for service Events to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventsClient" to call the correct interceptors.
func RegisterEventsHandlerFromEndpoint ¶
func RegisterEventsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEventsHandlerFromEndpoint is same as RegisterEventsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEventsHandlerServer ¶
func RegisterEventsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventsServer) error
RegisterEventsHandlerServer registers the http handlers for service Events to "mux". UnaryRPC :call EventsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventsHandlerFromEndpoint instead.
func RegisterEventsServer ¶
func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)
func RegisterPublicAssetsHandler ¶
func RegisterPublicAssetsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPublicAssetsHandler registers the http handlers for service PublicAssets to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPublicAssetsHandlerClient ¶
func RegisterPublicAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicAssetsClient) error
RegisterPublicAssetsHandlerClient registers the http handlers for service PublicAssets to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicAssetsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicAssetsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PublicAssetsClient" to call the correct interceptors.
func RegisterPublicAssetsHandlerFromEndpoint ¶
func RegisterPublicAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPublicAssetsHandlerFromEndpoint is same as RegisterPublicAssetsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPublicAssetsHandlerServer ¶
func RegisterPublicAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicAssetsServer) error
RegisterPublicAssetsHandlerServer registers the http handlers for service PublicAssets to "mux". UnaryRPC :call PublicAssetsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicAssetsHandlerFromEndpoint instead.
func RegisterPublicAssetsServer ¶
func RegisterPublicAssetsServer(s grpc.ServiceRegistrar, srv PublicAssetsServer)
Types ¶
type AssetResponse ¶
type AssetResponse struct { // asset identity Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // list of enabled behaviours Behaviours []string `protobuf:"bytes,2,rep,name=behaviours,proto3" json:"behaviours,omitempty"` // all the assets attributes Attributes map[string]*attribute.Attribute `` /* 161-byte string literal not displayed */ // indicated if asset has been committed to the blockchain, possible values are CONFIRMED for committed, PENDING for not yet committed or FAILED for permanent failure ConfirmationStatus ConfirmationStatus `` /* 153-byte string literal not displayed */ // indicates if asset is being tracked in the system TRACKED or NOT_TRACKED Tracked TrackedStatus `protobuf:"varint,5,opt,name=tracked,proto3,enum=archivist.v2.TrackedStatus" json:"tracked,omitempty"` // describes the access policy for this asset AccessPolicy map[string]*attribute.Attribute `` /* 185-byte string literal not displayed */ // wallet address for the owner of this asset Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"` AtTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=at_time,json=atTime,proto3" json:"at_time,omitempty"` ProofMechanism ProofMechanism `` /* 138-byte string literal not displayed */ ChainId string `protobuf:"bytes,11,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Public bool `protobuf:"varint,12,opt,name=public,proto3" json:"public,omitempty"` TenantIdentity string `protobuf:"bytes,13,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` // contains filtered or unexported fields }
The full set of properties common to all assets. Note that some of these properies are synthesized by the system. Individual apis will clarify which properties the accept and require. Assets may have one or more representative images. Those will be included in the attachments list. The label for those attachements is up to the UI Note that there is no PATCH or PUT for assets as they are immutable and "changes" are merely aggregated events on the identified asset, therefore mutable fields; display_name, extended_attributes, type_attributes, tracked and attachments, will each require an Event to change (see Events below).
func (*AssetResponse) AccessPolicyStringValue ¶
func (a *AssetResponse) AccessPolicyStringValue(name, defaultValue string) (string, error)
AccessPolicyStringValue retreives the names value form an access policy attribute. if the attribute is missing the defaultValue is returned. otherwise the value is returned if it is a string. If the value exists and is not a string an error is returned.
func (*AssetResponse) Descriptor
deprecated
func (*AssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssetResponse.ProtoReflect.Descriptor instead.
func (*AssetResponse) GetAccessPolicy ¶
func (x *AssetResponse) GetAccessPolicy() map[string]*attribute.Attribute
func (*AssetResponse) GetAtTime ¶
func (x *AssetResponse) GetAtTime() *timestamppb.Timestamp
func (*AssetResponse) GetAttributes ¶
func (x *AssetResponse) GetAttributes() map[string]*attribute.Attribute
func (*AssetResponse) GetBehaviours ¶
func (x *AssetResponse) GetBehaviours() []string
func (*AssetResponse) GetChainId ¶
func (x *AssetResponse) GetChainId() string
func (*AssetResponse) GetConfirmationStatus ¶
func (x *AssetResponse) GetConfirmationStatus() ConfirmationStatus
func (*AssetResponse) GetIdentity ¶
func (x *AssetResponse) GetIdentity() string
func (*AssetResponse) GetOwner ¶
func (x *AssetResponse) GetOwner() string
func (*AssetResponse) GetProofMechanism ¶
func (x *AssetResponse) GetProofMechanism() ProofMechanism
func (*AssetResponse) GetPublic ¶
func (x *AssetResponse) GetPublic() bool
func (*AssetResponse) GetTenantIdentity ¶
func (x *AssetResponse) GetTenantIdentity() string
func (*AssetResponse) GetTracked ¶
func (x *AssetResponse) GetTracked() TrackedStatus
func (*AssetResponse) IsPubliclyAttested ¶ added in v0.3.4
func (a *AssetResponse) IsPubliclyAttested(publicWallet string) bool
IsPubliclyAttested determines if an asset is publicly attested if public wallet address is present *anywhere* in the policy we assume the asset is public as there is no other way of getting public wallet to policy other than setting public: true on an asset previous method was to specific and did not work with partial attestation
func (*AssetResponse) IsSharedForWallet ¶
func (a *AssetResponse) IsSharedForWallet(policyKey, wallet, attribute string) (bool, error)
IsSharedForWallet determines if the value identified by `attribute` is shared with the organisation identified by `wallet`. `policyKey` determines the kind of share: asset attribute or event attribute and whether it is a read share or a write share. The same attribute may be independently read or write shared, and may be independently shared when present on event attributes or asset attributes. Please use the appropriate constants defined in this package.
func (*AssetResponse) ProtoMessage ¶
func (*AssetResponse) ProtoMessage()
func (*AssetResponse) ProtoReflect ¶
func (x *AssetResponse) ProtoReflect() protoreflect.Message
func (*AssetResponse) Reset ¶
func (x *AssetResponse) Reset()
func (*AssetResponse) String ¶
func (x *AssetResponse) String() string
func (*AssetResponse) Validate ¶
func (m *AssetResponse) Validate() error
Validate checks the field values on AssetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AssetResponse) ValidateAll ¶
func (m *AssetResponse) ValidateAll() error
ValidateAll checks the field values on AssetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssetResponseMultiError, or nil if none found.
type AssetResponseMultiError ¶
type AssetResponseMultiError []error
AssetResponseMultiError is an error wrapping multiple validation errors returned by AssetResponse.ValidateAll() if the designated constraints aren't met.
func (AssetResponseMultiError) AllErrors ¶
func (m AssetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AssetResponseMultiError) Error ¶
func (m AssetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AssetResponseValidationError ¶
type AssetResponseValidationError struct {
// contains filtered or unexported fields
}
AssetResponseValidationError is the validation error returned by AssetResponse.Validate if the designated constraints aren't met.
func (AssetResponseValidationError) Cause ¶
func (e AssetResponseValidationError) Cause() error
Cause function returns cause value.
func (AssetResponseValidationError) Error ¶
func (e AssetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AssetResponseValidationError) ErrorName ¶
func (e AssetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AssetResponseValidationError) Field ¶
func (e AssetResponseValidationError) Field() string
Field function returns field value.
func (AssetResponseValidationError) Key ¶
func (e AssetResponseValidationError) Key() bool
Key function returns key value.
func (AssetResponseValidationError) Reason ¶
func (e AssetResponseValidationError) Reason() string
Reason function returns reason value.
type AssetsClient ¶
type AssetsClient interface { ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) CreateAsset(ctx context.Context, in *CreateAssetRequest, opts ...grpc.CallOption) (*AssetResponse, error) GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*AssetResponse, error) GetAssetPublicURL(ctx context.Context, in *GetAssetPublicURLRequest, opts ...grpc.CallOption) (*PublicAssetURLResponse, error) GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*EventResponse, error) GetEventPublicURL(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*PublicEventURLResponse, error) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) GetCaps(ctx context.Context, in *caps.GetCapsRequest, opts ...grpc.CallOption) (*caps.Caps, error) }
AssetsClient is the client API for Assets service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAssetsClient ¶
func NewAssetsClient(cc grpc.ClientConnInterface) AssetsClient
type AssetsServer ¶
type AssetsServer interface { ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) CreateAsset(context.Context, *CreateAssetRequest) (*AssetResponse, error) GetAsset(context.Context, *GetAssetRequest) (*AssetResponse, error) GetAssetPublicURL(context.Context, *GetAssetPublicURLRequest) (*PublicAssetURLResponse, error) GetEvent(context.Context, *GetEventRequest) (*EventResponse, error) GetEventPublicURL(context.Context, *GetEventRequest) (*PublicEventURLResponse, error) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) GetCaps(context.Context, *caps.GetCapsRequest) (*caps.Caps, error) // contains filtered or unexported methods }
AssetsServer is the server API for Assets service. All implementations must embed UnimplementedAssetsServer for forward compatibility
type ConfirmationStatus ¶
type ConfirmationStatus int32
const ( ConfirmationStatus_CONFIRMATION_STATUS_UNSPECIFIED ConfirmationStatus = 0 ConfirmationStatus_PENDING ConfirmationStatus = 1 // not yet committed ConfirmationStatus_CONFIRMED ConfirmationStatus = 2 // committed. forestrie: "You can easily prove it changed" ConfirmationStatus_FAILED ConfirmationStatus = 3 // permanent failure // Regarding the new statuses for forestrie, See // https://github.com/datatrails/epic-8120-scalable-proof-mechanisms/blob/main/event-trust-levels.md ConfirmationStatus_STORED ConfirmationStatus = 4 // forestrie, "its in the db" ConfirmationStatus_COMMITTED ConfirmationStatus = 5 // forestrie, "you can know if its changed" // We re-use the constant for CONFIRMED (above) ConfirmationStatus_UNEQUIVOCAL ConfirmationStatus = 6 // forestrie, "You easily prove it was publicly available to all" )
func (ConfirmationStatus) Descriptor ¶
func (ConfirmationStatus) Descriptor() protoreflect.EnumDescriptor
func (ConfirmationStatus) Enum ¶
func (x ConfirmationStatus) Enum() *ConfirmationStatus
func (ConfirmationStatus) EnumDescriptor
deprecated
func (ConfirmationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfirmationStatus.Descriptor instead.
func (ConfirmationStatus) Number ¶
func (x ConfirmationStatus) Number() protoreflect.EnumNumber
func (ConfirmationStatus) String ¶
func (x ConfirmationStatus) String() string
func (ConfirmationStatus) Type ¶
func (ConfirmationStatus) Type() protoreflect.EnumType
type CreateAssetRequest ¶
type CreateAssetRequest struct { // list of enabled behaviours Behaviours []string `protobuf:"bytes,1,rep,name=behaviours,proto3" json:"behaviours,omitempty"` // event attributes for the assets creation Attributes map[string]*attribute.Attribute `` /* 161-byte string literal not displayed */ // mechanism for evidential proof for Events on this Asset ProofMechanism ProofMechanism `` /* 137-byte string literal not displayed */ ChainId string `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Public bool `protobuf:"varint,6,opt,name=public,proto3" json:"public,omitempty"` // contains filtered or unexported fields }
func (*CreateAssetRequest) Descriptor
deprecated
func (*CreateAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssetRequest.ProtoReflect.Descriptor instead.
func (*CreateAssetRequest) GetAttributes ¶
func (x *CreateAssetRequest) GetAttributes() map[string]*attribute.Attribute
func (*CreateAssetRequest) GetBehaviours ¶
func (x *CreateAssetRequest) GetBehaviours() []string
func (*CreateAssetRequest) GetChainId ¶
func (x *CreateAssetRequest) GetChainId() string
func (*CreateAssetRequest) GetProofMechanism ¶
func (x *CreateAssetRequest) GetProofMechanism() ProofMechanism
func (*CreateAssetRequest) GetPublic ¶
func (x *CreateAssetRequest) GetPublic() bool
func (*CreateAssetRequest) ProtoMessage ¶
func (*CreateAssetRequest) ProtoMessage()
func (*CreateAssetRequest) ProtoReflect ¶
func (x *CreateAssetRequest) ProtoReflect() protoreflect.Message
func (*CreateAssetRequest) Reset ¶
func (x *CreateAssetRequest) Reset()
func (*CreateAssetRequest) String ¶
func (x *CreateAssetRequest) String() string
func (*CreateAssetRequest) Validate ¶
func (m *CreateAssetRequest) Validate() error
Validate checks the field values on CreateAssetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAssetRequest) ValidateAll ¶
func (m *CreateAssetRequest) ValidateAll() error
ValidateAll checks the field values on CreateAssetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAssetRequestMultiError, or nil if none found.
type CreateAssetRequestMultiError ¶
type CreateAssetRequestMultiError []error
CreateAssetRequestMultiError is an error wrapping multiple validation errors returned by CreateAssetRequest.ValidateAll() if the designated constraints aren't met.
func (CreateAssetRequestMultiError) AllErrors ¶
func (m CreateAssetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAssetRequestMultiError) Error ¶
func (m CreateAssetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAssetRequestValidationError ¶
type CreateAssetRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAssetRequestValidationError is the validation error returned by CreateAssetRequest.Validate if the designated constraints aren't met.
func (CreateAssetRequestValidationError) Cause ¶
func (e CreateAssetRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAssetRequestValidationError) Error ¶
func (e CreateAssetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAssetRequestValidationError) ErrorName ¶
func (e CreateAssetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAssetRequestValidationError) Field ¶
func (e CreateAssetRequestValidationError) Field() string
Field function returns field value.
func (CreateAssetRequestValidationError) Key ¶
func (e CreateAssetRequestValidationError) Key() bool
Key function returns key value.
func (CreateAssetRequestValidationError) Reason ¶
func (e CreateAssetRequestValidationError) Reason() string
Reason function returns reason value.
type CreateEventRequest ¶
type CreateEventRequest struct { // relative resource name for associated asset ( asset the operation is performed on - has to have specific behaviour enabled) Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // name of this behaviour Behaviour string `protobuf:"bytes,2,opt,name=behaviour,proto3" json:"behaviour,omitempty"` // name of operation on this behviour Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"` // principal information associated with event - if not provided will be set to principal_accepted PrincipalDeclared *Principal `protobuf:"bytes,5,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"` // timestamp when operation was actually performed - if not provided will be set to timestamp_accepted TimestampDeclared *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp_declared,json=timestampDeclared,proto3" json:"timestamp_declared,omitempty"` // map of event attributes. Specific behaviours define required and optional event attributes for each supported operation. EventAttributes map[string]*attribute.Attribute `` /* 194-byte string literal not displayed */ // map of asset attributes. Specific behaviours define required and optional asset attributes. These attributes cause the corresponding attributes on the asset to be updated. AssetAttributes map[string]*attribute.Attribute `` /* 194-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateEventRequest) Descriptor
deprecated
func (*CreateEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.
func (*CreateEventRequest) GetAssetAttributes ¶
func (x *CreateEventRequest) GetAssetAttributes() map[string]*attribute.Attribute
func (*CreateEventRequest) GetBehaviour ¶
func (x *CreateEventRequest) GetBehaviour() string
func (*CreateEventRequest) GetEventAttributes ¶
func (x *CreateEventRequest) GetEventAttributes() map[string]*attribute.Attribute
func (*CreateEventRequest) GetOperation ¶
func (x *CreateEventRequest) GetOperation() string
func (*CreateEventRequest) GetPrincipalDeclared ¶
func (x *CreateEventRequest) GetPrincipalDeclared() *Principal
func (*CreateEventRequest) GetTimestampDeclared ¶
func (x *CreateEventRequest) GetTimestampDeclared() *timestamppb.Timestamp
func (*CreateEventRequest) GetUuid ¶
func (x *CreateEventRequest) GetUuid() string
func (*CreateEventRequest) ProtoMessage ¶
func (*CreateEventRequest) ProtoMessage()
func (*CreateEventRequest) ProtoReflect ¶
func (x *CreateEventRequest) ProtoReflect() protoreflect.Message
func (*CreateEventRequest) Reset ¶
func (x *CreateEventRequest) Reset()
func (*CreateEventRequest) String ¶
func (x *CreateEventRequest) String() string
func (*CreateEventRequest) Validate ¶
func (m *CreateEventRequest) Validate() error
Validate checks the field values on CreateEventRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateEventRequest) ValidateAll ¶
func (m *CreateEventRequest) ValidateAll() error
ValidateAll checks the field values on CreateEventRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateEventRequestMultiError, or nil if none found.
type CreateEventRequestMultiError ¶
type CreateEventRequestMultiError []error
CreateEventRequestMultiError is an error wrapping multiple validation errors returned by CreateEventRequest.ValidateAll() if the designated constraints aren't met.
func (CreateEventRequestMultiError) AllErrors ¶
func (m CreateEventRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateEventRequestMultiError) Error ¶
func (m CreateEventRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateEventRequestValidationError ¶
type CreateEventRequestValidationError struct {
// contains filtered or unexported fields
}
CreateEventRequestValidationError is the validation error returned by CreateEventRequest.Validate if the designated constraints aren't met.
func (CreateEventRequestValidationError) Cause ¶
func (e CreateEventRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateEventRequestValidationError) Error ¶
func (e CreateEventRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateEventRequestValidationError) ErrorName ¶
func (e CreateEventRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateEventRequestValidationError) Field ¶
func (e CreateEventRequestValidationError) Field() string
Field function returns field value.
func (CreateEventRequestValidationError) Key ¶
func (e CreateEventRequestValidationError) Key() bool
Key function returns key value.
func (CreateEventRequestValidationError) Reason ¶
func (e CreateEventRequestValidationError) Reason() string
Reason function returns reason value.
type EventCommitMessage ¶
type EventCommitMessage struct { Message *EventMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // repeated bytes khipu_transaction_hashes = 2; // It is very cumbersome to represent the PackedInput as proto. Instead we // have used go gob for simplicity, but we do want internal schema // versioning hence khipu_packed_input_ver KhipuPackedInputVer int32 `protobuf:"varint,6,opt,name=khipu_packed_input_ver,json=khipuPackedInputVer,proto3" json:"khipu_packed_input_ver,omitempty"` // recievers ignore versions != what they are built against KhipuPackedAssemblyInputs []byte `` /* 140-byte string literal not displayed */ KhipuPackedCommitInput []byte `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
EventCommitMessage is used between the khipu assemble and event commit stages
func (*EventCommitMessage) Descriptor
deprecated
func (*EventCommitMessage) Descriptor() ([]byte, []int)
Deprecated: Use EventCommitMessage.ProtoReflect.Descriptor instead.
func (*EventCommitMessage) GetKhipuPackedAssemblyInputs ¶
func (x *EventCommitMessage) GetKhipuPackedAssemblyInputs() []byte
func (*EventCommitMessage) GetKhipuPackedCommitInput ¶
func (x *EventCommitMessage) GetKhipuPackedCommitInput() []byte
func (*EventCommitMessage) GetKhipuPackedInputVer ¶
func (x *EventCommitMessage) GetKhipuPackedInputVer() int32
func (*EventCommitMessage) GetMessage ¶
func (x *EventCommitMessage) GetMessage() *EventMessage
func (*EventCommitMessage) ProtoMessage ¶
func (*EventCommitMessage) ProtoMessage()
func (*EventCommitMessage) ProtoReflect ¶
func (x *EventCommitMessage) ProtoReflect() protoreflect.Message
func (*EventCommitMessage) Reset ¶
func (x *EventCommitMessage) Reset()
func (*EventCommitMessage) String ¶
func (x *EventCommitMessage) String() string
func (*EventCommitMessage) Validate ¶
func (m *EventCommitMessage) Validate() error
Validate checks the field values on EventCommitMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EventCommitMessage) ValidateAll ¶
func (m *EventCommitMessage) ValidateAll() error
ValidateAll checks the field values on EventCommitMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventCommitMessageMultiError, or nil if none found.
type EventCommitMessageMultiError ¶
type EventCommitMessageMultiError []error
EventCommitMessageMultiError is an error wrapping multiple validation errors returned by EventCommitMessage.ValidateAll() if the designated constraints aren't met.
func (EventCommitMessageMultiError) AllErrors ¶
func (m EventCommitMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EventCommitMessageMultiError) Error ¶
func (m EventCommitMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EventCommitMessageValidationError ¶
type EventCommitMessageValidationError struct {
// contains filtered or unexported fields
}
EventCommitMessageValidationError is the validation error returned by EventCommitMessage.Validate if the designated constraints aren't met.
func (EventCommitMessageValidationError) Cause ¶
func (e EventCommitMessageValidationError) Cause() error
Cause function returns cause value.
func (EventCommitMessageValidationError) Error ¶
func (e EventCommitMessageValidationError) Error() string
Error satisfies the builtin error interface
func (EventCommitMessageValidationError) ErrorName ¶
func (e EventCommitMessageValidationError) ErrorName() string
ErrorName returns error name.
func (EventCommitMessageValidationError) Field ¶
func (e EventCommitMessageValidationError) Field() string
Field function returns field value.
func (EventCommitMessageValidationError) Key ¶
func (e EventCommitMessageValidationError) Key() bool
Key function returns key value.
func (EventCommitMessageValidationError) Reason ¶
func (e EventCommitMessageValidationError) Reason() string
Reason function returns reason value.
type EventMessage ¶
type EventMessage struct { Event *EventResponse `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` Asset *AssetResponse `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` FailedReason string `protobuf:"bytes,4,opt,name=failed_reason,json=failedReason,proto3" json:"failed_reason,omitempty"` // asset_create2_factory of the asset contract that exported the asset rlp // (from which the AssetResponse is made). identifies the asset contract // which enacted the change. The factory changes when the subjective value // chain membership changes, and if the factory itself needs upgrading // (which is very rare). So this value is a very clear (and easily // accessible) chain level record of who the SVC value chain colaborators // were when the change was made. All changes to an asset which share the // same factory can only have been enacted by a combination of the // privateFor's for whome the factory was deployed. AssetCreate2Factory string `protobuf:"bytes,5,opt,name=asset_create2_factory,json=assetCreate2Factory,proto3" json:"asset_create2_factory,omitempty"` // event_create2_factory of the behaviour contract that exported the event // rlp (from which the EventResponse is made). identifies the behaviour // contract which enacted the change. The factory changes when the // subjective value chain membership changes, and if the factory itself // needs upgrading (which is very rare) EventCreate2Factory string `protobuf:"bytes,6,opt,name=event_create2_factory,json=eventCreate2Factory,proto3" json:"event_create2_factory,omitempty"` // contains filtered or unexported fields }
func (*EventMessage) Descriptor
deprecated
func (*EventMessage) Descriptor() ([]byte, []int)
Deprecated: Use EventMessage.ProtoReflect.Descriptor instead.
func (*EventMessage) GetAsset ¶
func (x *EventMessage) GetAsset() *AssetResponse
func (*EventMessage) GetAssetCreate2Factory ¶
func (x *EventMessage) GetAssetCreate2Factory() string
func (*EventMessage) GetEvent ¶
func (x *EventMessage) GetEvent() *EventResponse
func (*EventMessage) GetEventCreate2Factory ¶
func (x *EventMessage) GetEventCreate2Factory() string
func (*EventMessage) GetFailedReason ¶
func (x *EventMessage) GetFailedReason() string
func (*EventMessage) GetTenantId ¶
func (x *EventMessage) GetTenantId() string
func (*EventMessage) ProtoMessage ¶
func (*EventMessage) ProtoMessage()
func (*EventMessage) ProtoReflect ¶
func (x *EventMessage) ProtoReflect() protoreflect.Message
func (*EventMessage) Reset ¶
func (x *EventMessage) Reset()
func (*EventMessage) String ¶
func (x *EventMessage) String() string
func (*EventMessage) Validate ¶
func (m *EventMessage) Validate() error
Validate checks the field values on EventMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EventMessage) ValidateAll ¶
func (m *EventMessage) ValidateAll() error
ValidateAll checks the field values on EventMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventMessageMultiError, or nil if none found.
type EventMessageMultiError ¶
type EventMessageMultiError []error
EventMessageMultiError is an error wrapping multiple validation errors returned by EventMessage.ValidateAll() if the designated constraints aren't met.
func (EventMessageMultiError) AllErrors ¶
func (m EventMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EventMessageMultiError) Error ¶
func (m EventMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EventMessageValidationError ¶
type EventMessageValidationError struct {
// contains filtered or unexported fields
}
EventMessageValidationError is the validation error returned by EventMessage.Validate if the designated constraints aren't met.
func (EventMessageValidationError) Cause ¶
func (e EventMessageValidationError) Cause() error
Cause function returns cause value.
func (EventMessageValidationError) Error ¶
func (e EventMessageValidationError) Error() string
Error satisfies the builtin error interface
func (EventMessageValidationError) ErrorName ¶
func (e EventMessageValidationError) ErrorName() string
ErrorName returns error name.
func (EventMessageValidationError) Field ¶
func (e EventMessageValidationError) Field() string
Field function returns field value.
func (EventMessageValidationError) Key ¶
func (e EventMessageValidationError) Key() bool
Key function returns key value.
func (EventMessageValidationError) Reason ¶
func (e EventMessageValidationError) Reason() string
Reason function returns reason value.
type EventReceiptMessage ¶
type EventReceiptMessage struct { Message *EventMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` CommitTransactionHash []byte `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
EventReceiptMessage is used between the event commit and commit receipt stages
func (*EventReceiptMessage) Descriptor
deprecated
func (*EventReceiptMessage) Descriptor() ([]byte, []int)
Deprecated: Use EventReceiptMessage.ProtoReflect.Descriptor instead.
func (*EventReceiptMessage) GetCommitTransactionHash ¶
func (x *EventReceiptMessage) GetCommitTransactionHash() []byte
func (*EventReceiptMessage) GetMessage ¶
func (x *EventReceiptMessage) GetMessage() *EventMessage
func (*EventReceiptMessage) ProtoMessage ¶
func (*EventReceiptMessage) ProtoMessage()
func (*EventReceiptMessage) ProtoReflect ¶
func (x *EventReceiptMessage) ProtoReflect() protoreflect.Message
func (*EventReceiptMessage) Reset ¶
func (x *EventReceiptMessage) Reset()
func (*EventReceiptMessage) String ¶
func (x *EventReceiptMessage) String() string
func (*EventReceiptMessage) Validate ¶
func (m *EventReceiptMessage) Validate() error
Validate checks the field values on EventReceiptMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EventReceiptMessage) ValidateAll ¶
func (m *EventReceiptMessage) ValidateAll() error
ValidateAll checks the field values on EventReceiptMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventReceiptMessageMultiError, or nil if none found.
type EventReceiptMessageMultiError ¶
type EventReceiptMessageMultiError []error
EventReceiptMessageMultiError is an error wrapping multiple validation errors returned by EventReceiptMessage.ValidateAll() if the designated constraints aren't met.
func (EventReceiptMessageMultiError) AllErrors ¶
func (m EventReceiptMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EventReceiptMessageMultiError) Error ¶
func (m EventReceiptMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EventReceiptMessageValidationError ¶
type EventReceiptMessageValidationError struct {
// contains filtered or unexported fields
}
EventReceiptMessageValidationError is the validation error returned by EventReceiptMessage.Validate if the designated constraints aren't met.
func (EventReceiptMessageValidationError) Cause ¶
func (e EventReceiptMessageValidationError) Cause() error
Cause function returns cause value.
func (EventReceiptMessageValidationError) Error ¶
func (e EventReceiptMessageValidationError) Error() string
Error satisfies the builtin error interface
func (EventReceiptMessageValidationError) ErrorName ¶
func (e EventReceiptMessageValidationError) ErrorName() string
ErrorName returns error name.
func (EventReceiptMessageValidationError) Field ¶
func (e EventReceiptMessageValidationError) Field() string
Field function returns field value.
func (EventReceiptMessageValidationError) Key ¶
func (e EventReceiptMessageValidationError) Key() bool
Key function returns key value.
func (EventReceiptMessageValidationError) Reason ¶
func (e EventReceiptMessageValidationError) Reason() string
Reason function returns reason value.
type EventResponse ¶
type EventResponse struct { // Relative Resource Name for the operation event Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // relative resource name for associated asset ( asset the operation is performed on - has to have specific behaviour enabled) AssetIdentity string `protobuf:"bytes,2,opt,name=asset_identity,json=assetIdentity,proto3" json:"asset_identity,omitempty"` // map of event attributes. Specific behaviours define required and optional event attributes for each supported operation. EventAttributes map[string]*attribute.Attribute `` /* 195-byte string literal not displayed */ // map of asset attributes. Specific behaviours define required and optional asset attributes. These attributes cause the corresponding attributes on the asset to be updated. AssetAttributes map[string]*attribute.Attribute `` /* 195-byte string literal not displayed */ // name of operation on this behviour Operation string `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"` // name of this behaviour Behaviour string `protobuf:"bytes,14,opt,name=behaviour,proto3" json:"behaviour,omitempty"` // timestamp when operation was actually performed - if not provided will be set to timestamp_accepted TimestampDeclared *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp_declared,json=timestampDeclared,proto3" json:"timestamp_declared,omitempty"` // timestamp when system received operation request TimestampAccepted *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp_accepted,json=timestampAccepted,proto3" json:"timestamp_accepted,omitempty"` // timestamp for when the event was committed to a verifiable log TimestampCommitted *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp_committed,json=timestampCommitted,proto3" json:"timestamp_committed,omitempty"` // principal information associated with event - if not provided will be set to principal_accepted PrincipalDeclared *Principal `protobuf:"bytes,8,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"` // principal logged into the system that performed the operation PrincipalAccepted *Principal `protobuf:"bytes,9,opt,name=principal_accepted,json=principalAccepted,proto3" json:"principal_accepted,omitempty"` // indicated if operation has been committed to the blockchain ConfirmationStatus ConfirmationStatus `` /* 154-byte string literal not displayed */ // hash of transaction committing this operation on blockchain TransactionId string `protobuf:"bytes,11,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // block number of committing transaction BlockNumber uint64 `protobuf:"varint,12,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // transaction index of committing transaction TransactionIndex uint64 `protobuf:"varint,13,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // wallet address for the creator of this event From string `protobuf:"bytes,15,opt,name=from,proto3" json:"from,omitempty"` TenantIdentity string `protobuf:"bytes,18,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` // proof details for proof_mechanism MERKLE_LOG // // Types that are assignable to ProofDetails: // // *EventResponse_MerklelogEntry ProofDetails isEventResponse_ProofDetails `protobuf_oneof:"proof_details"` // contains filtered or unexported fields }
func (*EventResponse) Descriptor
deprecated
func (*EventResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventResponse.ProtoReflect.Descriptor instead.
func (*EventResponse) GetAssetAttributes ¶
func (x *EventResponse) GetAssetAttributes() map[string]*attribute.Attribute
func (*EventResponse) GetAssetIdentity ¶
func (x *EventResponse) GetAssetIdentity() string
func (*EventResponse) GetBehaviour ¶
func (x *EventResponse) GetBehaviour() string
func (*EventResponse) GetBlockNumber ¶
func (x *EventResponse) GetBlockNumber() uint64
func (*EventResponse) GetConfirmationStatus ¶
func (x *EventResponse) GetConfirmationStatus() ConfirmationStatus
func (*EventResponse) GetEventAttributes ¶
func (x *EventResponse) GetEventAttributes() map[string]*attribute.Attribute
func (*EventResponse) GetFrom ¶
func (x *EventResponse) GetFrom() string
func (*EventResponse) GetIdentity ¶
func (x *EventResponse) GetIdentity() string
func (*EventResponse) GetMerklelogEntry ¶ added in v0.3.6
func (x *EventResponse) GetMerklelogEntry() *MerkleLogEntry
func (*EventResponse) GetOperation ¶
func (x *EventResponse) GetOperation() string
func (*EventResponse) GetPrincipalAccepted ¶
func (x *EventResponse) GetPrincipalAccepted() *Principal
func (*EventResponse) GetPrincipalDeclared ¶
func (x *EventResponse) GetPrincipalDeclared() *Principal
func (*EventResponse) GetProofDetails ¶ added in v0.3.6
func (m *EventResponse) GetProofDetails() isEventResponse_ProofDetails
func (*EventResponse) GetTenantIdentity ¶
func (x *EventResponse) GetTenantIdentity() string
func (*EventResponse) GetTimestampAccepted ¶
func (x *EventResponse) GetTimestampAccepted() *timestamppb.Timestamp
func (*EventResponse) GetTimestampCommitted ¶
func (x *EventResponse) GetTimestampCommitted() *timestamppb.Timestamp
func (*EventResponse) GetTimestampDeclared ¶
func (x *EventResponse) GetTimestampDeclared() *timestamppb.Timestamp
func (*EventResponse) GetTransactionId ¶
func (x *EventResponse) GetTransactionId() string
func (*EventResponse) GetTransactionIndex ¶
func (x *EventResponse) GetTransactionIndex() uint64
func (*EventResponse) ProtoMessage ¶
func (*EventResponse) ProtoMessage()
func (*EventResponse) ProtoReflect ¶
func (x *EventResponse) ProtoReflect() protoreflect.Message
func (*EventResponse) Reset ¶
func (x *EventResponse) Reset()
func (*EventResponse) String ¶
func (x *EventResponse) String() string
func (*EventResponse) Validate ¶
func (m *EventResponse) Validate() error
Validate checks the field values on EventResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EventResponse) ValidateAll ¶
func (m *EventResponse) ValidateAll() error
ValidateAll checks the field values on EventResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventResponseMultiError, or nil if none found.
type EventResponseJSONAPI ¶ added in v0.3.8
type EventResponseJSONAPI struct { // Relative Resource Name for the operation event Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // relative resource name for associated asset ( asset the operation is performed on - has to have specific behaviour enabled) AssetIdentity string `protobuf:"bytes,2,opt,name=asset_identity,json=assetIdentity,proto3" json:"asset_identity,omitempty"` // map of event attributes. Specific behaviours define required and optional event attributes for each supported operation. EventAttributes map[string]string `` /* 195-byte string literal not displayed */ // map of asset attributes. Specific behaviours define required and optional asset attributes. These attributes cause the corresponding attributes on the asset to be updated. AssetAttributes map[string]string `` /* 195-byte string literal not displayed */ // name of operation on this behviour Operation string `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"` // name of this behaviour Behaviour string `protobuf:"bytes,14,opt,name=behaviour,proto3" json:"behaviour,omitempty"` // timestamp when operation was actually performed - if not provided will be set to timestamp_accepted TimestampDeclared string `protobuf:"bytes,5,opt,name=timestamp_declared,json=timestampDeclared,proto3" json:"timestamp_declared,omitempty"` // timestamp when system received operation request TimestampAccepted string `protobuf:"bytes,6,opt,name=timestamp_accepted,json=timestampAccepted,proto3" json:"timestamp_accepted,omitempty"` // timestamp for when the event was committed to a verifiable log TimestampCommitted string `protobuf:"bytes,7,opt,name=timestamp_committed,json=timestampCommitted,proto3" json:"timestamp_committed,omitempty"` // principal information associated with event - if not provided will be set to principal_accepted PrincipalDeclared *Principal `protobuf:"bytes,8,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"` // principal logged into the system that performed the operation PrincipalAccepted *Principal `protobuf:"bytes,9,opt,name=principal_accepted,json=principalAccepted,proto3" json:"principal_accepted,omitempty"` // indicated if operation has been committed to the blockchain ConfirmationStatus string `protobuf:"bytes,10,opt,name=confirmation_status,json=confirmationStatus,proto3" json:"confirmation_status,omitempty"` // hash of transaction committing this operation on blockchain TransactionId string `protobuf:"bytes,11,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // block number of committing transaction BlockNumber uint64 `protobuf:"varint,12,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // transaction index of committing transaction TransactionIndex uint64 `protobuf:"varint,13,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // wallet address for the creator of this event From string `protobuf:"bytes,15,opt,name=from,proto3" json:"from,omitempty"` TenantIdentity string `protobuf:"bytes,18,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` // An event has exactly one proof mechanism. This field caputures the proof // mechanism specific details supporting the trustworthyness of the event // record. We anticipate at least two proof mechs: merkle_log and // verkle_log. We use oneof to avoid repeating the scattering of randomly // re-purposed fields we currently have for simple hash vs khipu. // // Types that are assignable to ProofDetails: // // *EventResponseJSONAPI_MerklelogEntry ProofDetails isEventResponseJSONAPI_ProofDetails `protobuf_oneof:"proof_details"` // contains filtered or unexported fields }
EventResponseJSONAPI represents how the consumer of the events api sees the event data.
func (*EventResponseJSONAPI) Descriptor
deprecated
added in
v0.3.8
func (*EventResponseJSONAPI) Descriptor() ([]byte, []int)
Deprecated: Use EventResponseJSONAPI.ProtoReflect.Descriptor instead.
func (*EventResponseJSONAPI) GetAssetAttributes ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetAssetAttributes() map[string]string
func (*EventResponseJSONAPI) GetAssetIdentity ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetAssetIdentity() string
func (*EventResponseJSONAPI) GetBehaviour ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetBehaviour() string
func (*EventResponseJSONAPI) GetBlockNumber ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetBlockNumber() uint64
func (*EventResponseJSONAPI) GetConfirmationStatus ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetConfirmationStatus() string
func (*EventResponseJSONAPI) GetEventAttributes ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetEventAttributes() map[string]string
func (*EventResponseJSONAPI) GetFrom ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetFrom() string
func (*EventResponseJSONAPI) GetIdentity ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetIdentity() string
func (*EventResponseJSONAPI) GetMerklelogEntry ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetMerklelogEntry() *MerkleLogEntry
func (*EventResponseJSONAPI) GetOperation ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetOperation() string
func (*EventResponseJSONAPI) GetPrincipalAccepted ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetPrincipalAccepted() *Principal
func (*EventResponseJSONAPI) GetPrincipalDeclared ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetPrincipalDeclared() *Principal
func (*EventResponseJSONAPI) GetProofDetails ¶ added in v0.3.8
func (m *EventResponseJSONAPI) GetProofDetails() isEventResponseJSONAPI_ProofDetails
func (*EventResponseJSONAPI) GetTenantIdentity ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetTenantIdentity() string
func (*EventResponseJSONAPI) GetTimestampAccepted ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetTimestampAccepted() string
func (*EventResponseJSONAPI) GetTimestampCommitted ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetTimestampCommitted() string
func (*EventResponseJSONAPI) GetTimestampDeclared ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetTimestampDeclared() string
func (*EventResponseJSONAPI) GetTransactionId ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetTransactionId() string
func (*EventResponseJSONAPI) GetTransactionIndex ¶ added in v0.3.8
func (x *EventResponseJSONAPI) GetTransactionIndex() uint64
func (*EventResponseJSONAPI) ProtoMessage ¶ added in v0.3.8
func (*EventResponseJSONAPI) ProtoMessage()
func (*EventResponseJSONAPI) ProtoReflect ¶ added in v0.3.8
func (x *EventResponseJSONAPI) ProtoReflect() protoreflect.Message
func (*EventResponseJSONAPI) Reset ¶ added in v0.3.8
func (x *EventResponseJSONAPI) Reset()
func (*EventResponseJSONAPI) String ¶ added in v0.3.8
func (x *EventResponseJSONAPI) String() string
func (*EventResponseJSONAPI) Validate ¶ added in v0.3.8
func (m *EventResponseJSONAPI) Validate() error
Validate checks the field values on EventResponseJSONAPI with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EventResponseJSONAPI) ValidateAll ¶ added in v0.3.8
func (m *EventResponseJSONAPI) ValidateAll() error
ValidateAll checks the field values on EventResponseJSONAPI with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventResponseJSONAPIMultiError, or nil if none found.
type EventResponseJSONAPIMultiError ¶ added in v0.3.8
type EventResponseJSONAPIMultiError []error
EventResponseJSONAPIMultiError is an error wrapping multiple validation errors returned by EventResponseJSONAPI.ValidateAll() if the designated constraints aren't met.
func (EventResponseJSONAPIMultiError) AllErrors ¶ added in v0.3.8
func (m EventResponseJSONAPIMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EventResponseJSONAPIMultiError) Error ¶ added in v0.3.8
func (m EventResponseJSONAPIMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EventResponseJSONAPIValidationError ¶ added in v0.3.8
type EventResponseJSONAPIValidationError struct {
// contains filtered or unexported fields
}
EventResponseJSONAPIValidationError is the validation error returned by EventResponseJSONAPI.Validate if the designated constraints aren't met.
func (EventResponseJSONAPIValidationError) Cause ¶ added in v0.3.8
func (e EventResponseJSONAPIValidationError) Cause() error
Cause function returns cause value.
func (EventResponseJSONAPIValidationError) Error ¶ added in v0.3.8
func (e EventResponseJSONAPIValidationError) Error() string
Error satisfies the builtin error interface
func (EventResponseJSONAPIValidationError) ErrorName ¶ added in v0.3.8
func (e EventResponseJSONAPIValidationError) ErrorName() string
ErrorName returns error name.
func (EventResponseJSONAPIValidationError) Field ¶ added in v0.3.8
func (e EventResponseJSONAPIValidationError) Field() string
Field function returns field value.
func (EventResponseJSONAPIValidationError) Key ¶ added in v0.3.8
func (e EventResponseJSONAPIValidationError) Key() bool
Key function returns key value.
func (EventResponseJSONAPIValidationError) Reason ¶ added in v0.3.8
func (e EventResponseJSONAPIValidationError) Reason() string
Reason function returns reason value.
type EventResponseJSONAPI_MerklelogEntry ¶ added in v0.3.8
type EventResponseJSONAPI_MerklelogEntry struct { // proof details for proof_mechanism MERKLE_LOG MerklelogEntry *MerkleLogEntry `protobuf:"bytes,19,opt,name=merklelog_entry,json=merklelogEntry,proto3,oneof"` }
type EventResponseMultiError ¶
type EventResponseMultiError []error
EventResponseMultiError is an error wrapping multiple validation errors returned by EventResponse.ValidateAll() if the designated constraints aren't met.
func (EventResponseMultiError) AllErrors ¶
func (m EventResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EventResponseMultiError) Error ¶
func (m EventResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EventResponseValidationError ¶
type EventResponseValidationError struct {
// contains filtered or unexported fields
}
EventResponseValidationError is the validation error returned by EventResponse.Validate if the designated constraints aren't met.
func (EventResponseValidationError) Cause ¶
func (e EventResponseValidationError) Cause() error
Cause function returns cause value.
func (EventResponseValidationError) Error ¶
func (e EventResponseValidationError) Error() string
Error satisfies the builtin error interface
func (EventResponseValidationError) ErrorName ¶
func (e EventResponseValidationError) ErrorName() string
ErrorName returns error name.
func (EventResponseValidationError) Field ¶
func (e EventResponseValidationError) Field() string
Field function returns field value.
func (EventResponseValidationError) Key ¶
func (e EventResponseValidationError) Key() bool
Key function returns key value.
func (EventResponseValidationError) Reason ¶
func (e EventResponseValidationError) Reason() string
Reason function returns reason value.
type EventResponse_MerklelogEntry ¶ added in v0.3.6
type EventResponse_MerklelogEntry struct {
MerklelogEntry *MerkleLogEntry `protobuf:"bytes,19,opt,name=merklelog_entry,json=merklelogEntry,proto3,oneof"`
}
type EventsClient ¶
type EventsClient interface {
Create(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
}
EventsClient is the client API for Events service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEventsClient ¶
func NewEventsClient(cc grpc.ClientConnInterface) EventsClient
type EventsServer ¶
type EventsServer interface { Create(context.Context, *CreateEventRequest) (*EventResponse, error) // contains filtered or unexported methods }
EventsServer is the server API for Events service. All implementations must embed UnimplementedEventsServer for forward compatibility
type GetAssetPublicURLRequest ¶
type GetAssetPublicURLRequest struct { // asset identity Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*GetAssetPublicURLRequest) Descriptor
deprecated
func (*GetAssetPublicURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetPublicURLRequest.ProtoReflect.Descriptor instead.
func (*GetAssetPublicURLRequest) GetUuid ¶
func (x *GetAssetPublicURLRequest) GetUuid() string
func (*GetAssetPublicURLRequest) ProtoMessage ¶
func (*GetAssetPublicURLRequest) ProtoMessage()
func (*GetAssetPublicURLRequest) ProtoReflect ¶
func (x *GetAssetPublicURLRequest) ProtoReflect() protoreflect.Message
func (*GetAssetPublicURLRequest) Reset ¶
func (x *GetAssetPublicURLRequest) Reset()
func (*GetAssetPublicURLRequest) String ¶
func (x *GetAssetPublicURLRequest) String() string
func (*GetAssetPublicURLRequest) Validate ¶
func (m *GetAssetPublicURLRequest) Validate() error
Validate checks the field values on GetAssetPublicURLRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAssetPublicURLRequest) ValidateAll ¶
func (m *GetAssetPublicURLRequest) ValidateAll() error
ValidateAll checks the field values on GetAssetPublicURLRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAssetPublicURLRequestMultiError, or nil if none found.
type GetAssetPublicURLRequestMultiError ¶
type GetAssetPublicURLRequestMultiError []error
GetAssetPublicURLRequestMultiError is an error wrapping multiple validation errors returned by GetAssetPublicURLRequest.ValidateAll() if the designated constraints aren't met.
func (GetAssetPublicURLRequestMultiError) AllErrors ¶
func (m GetAssetPublicURLRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAssetPublicURLRequestMultiError) Error ¶
func (m GetAssetPublicURLRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAssetPublicURLRequestValidationError ¶
type GetAssetPublicURLRequestValidationError struct {
// contains filtered or unexported fields
}
GetAssetPublicURLRequestValidationError is the validation error returned by GetAssetPublicURLRequest.Validate if the designated constraints aren't met.
func (GetAssetPublicURLRequestValidationError) Cause ¶
func (e GetAssetPublicURLRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAssetPublicURLRequestValidationError) Error ¶
func (e GetAssetPublicURLRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAssetPublicURLRequestValidationError) ErrorName ¶
func (e GetAssetPublicURLRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAssetPublicURLRequestValidationError) Field ¶
func (e GetAssetPublicURLRequestValidationError) Field() string
Field function returns field value.
func (GetAssetPublicURLRequestValidationError) Key ¶
func (e GetAssetPublicURLRequestValidationError) Key() bool
Key function returns key value.
func (GetAssetPublicURLRequestValidationError) Reason ¶
func (e GetAssetPublicURLRequestValidationError) Reason() string
Reason function returns reason value.
type GetAssetRequest ¶
type GetAssetRequest struct { // asset identity Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` AtTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=at_time,json=atTime,proto3" json:"at_time,omitempty"` // contains filtered or unexported fields }
func (*GetAssetRequest) Descriptor
deprecated
func (*GetAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetRequest.ProtoReflect.Descriptor instead.
func (*GetAssetRequest) GetAtTime ¶
func (x *GetAssetRequest) GetAtTime() *timestamppb.Timestamp
func (*GetAssetRequest) GetUuid ¶
func (x *GetAssetRequest) GetUuid() string
func (*GetAssetRequest) ProtoMessage ¶
func (*GetAssetRequest) ProtoMessage()
func (*GetAssetRequest) ProtoReflect ¶
func (x *GetAssetRequest) ProtoReflect() protoreflect.Message
func (*GetAssetRequest) Reset ¶
func (x *GetAssetRequest) Reset()
func (*GetAssetRequest) String ¶
func (x *GetAssetRequest) String() string
func (*GetAssetRequest) Validate ¶
func (m *GetAssetRequest) Validate() error
Validate checks the field values on GetAssetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAssetRequest) ValidateAll ¶
func (m *GetAssetRequest) ValidateAll() error
ValidateAll checks the field values on GetAssetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAssetRequestMultiError, or nil if none found.
type GetAssetRequestMultiError ¶
type GetAssetRequestMultiError []error
GetAssetRequestMultiError is an error wrapping multiple validation errors returned by GetAssetRequest.ValidateAll() if the designated constraints aren't met.
func (GetAssetRequestMultiError) AllErrors ¶
func (m GetAssetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAssetRequestMultiError) Error ¶
func (m GetAssetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAssetRequestValidationError ¶
type GetAssetRequestValidationError struct {
// contains filtered or unexported fields
}
GetAssetRequestValidationError is the validation error returned by GetAssetRequest.Validate if the designated constraints aren't met.
func (GetAssetRequestValidationError) Cause ¶
func (e GetAssetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAssetRequestValidationError) Error ¶
func (e GetAssetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAssetRequestValidationError) ErrorName ¶
func (e GetAssetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAssetRequestValidationError) Field ¶
func (e GetAssetRequestValidationError) Field() string
Field function returns field value.
func (GetAssetRequestValidationError) Key ¶
func (e GetAssetRequestValidationError) Key() bool
Key function returns key value.
func (GetAssetRequestValidationError) Reason ¶
func (e GetAssetRequestValidationError) Reason() string
Reason function returns reason value.
type GetEventRequest ¶
type GetEventRequest struct { AssetUuid string `protobuf:"bytes,1,opt,name=asset_uuid,json=assetUuid,proto3" json:"asset_uuid,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*GetEventRequest) Descriptor
deprecated
func (*GetEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.
func (*GetEventRequest) GetAssetUuid ¶
func (x *GetEventRequest) GetAssetUuid() string
func (*GetEventRequest) GetUuid ¶
func (x *GetEventRequest) GetUuid() string
func (*GetEventRequest) ProtoMessage ¶
func (*GetEventRequest) ProtoMessage()
func (*GetEventRequest) ProtoReflect ¶
func (x *GetEventRequest) ProtoReflect() protoreflect.Message
func (*GetEventRequest) Reset ¶
func (x *GetEventRequest) Reset()
func (*GetEventRequest) String ¶
func (x *GetEventRequest) String() string
func (*GetEventRequest) Validate ¶
func (m *GetEventRequest) Validate() error
Validate checks the field values on GetEventRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetEventRequest) ValidateAll ¶
func (m *GetEventRequest) ValidateAll() error
ValidateAll checks the field values on GetEventRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetEventRequestMultiError, or nil if none found.
type GetEventRequestMultiError ¶
type GetEventRequestMultiError []error
GetEventRequestMultiError is an error wrapping multiple validation errors returned by GetEventRequest.ValidateAll() if the designated constraints aren't met.
func (GetEventRequestMultiError) AllErrors ¶
func (m GetEventRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetEventRequestMultiError) Error ¶
func (m GetEventRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetEventRequestValidationError ¶
type GetEventRequestValidationError struct {
// contains filtered or unexported fields
}
GetEventRequestValidationError is the validation error returned by GetEventRequest.Validate if the designated constraints aren't met.
func (GetEventRequestValidationError) Cause ¶
func (e GetEventRequestValidationError) Cause() error
Cause function returns cause value.
func (GetEventRequestValidationError) Error ¶
func (e GetEventRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventRequestValidationError) ErrorName ¶
func (e GetEventRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventRequestValidationError) Field ¶
func (e GetEventRequestValidationError) Field() string
Field function returns field value.
func (GetEventRequestValidationError) Key ¶
func (e GetEventRequestValidationError) Key() bool
Key function returns key value.
func (GetEventRequestValidationError) Reason ¶
func (e GetEventRequestValidationError) Reason() string
Reason function returns reason value.
type IdentityFactory ¶
type IdentityFactory interface { // GenerateAssetIdentity produces RRN for asset GenerateAssetIdentity() string // GenerateEventIdentity produces RRN for event GenerateEventIdentity(string) string }
IdentityFactory generates idintities for Events and Assets base on random UUIDv4
type ListAssetsRequest ¶
type ListAssetsRequest struct { // Maximum results per page. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token returned from a previous list request if any. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Specify the sort order for the results. OrderBy ListAssetsRequest_OrderBy `` /* 127-byte string literal not displayed */ // indicates whether asset is still being tracked in the system Tracked TrackedStatus `protobuf:"varint,4,opt,name=tracked,proto3,enum=archivist.v2.TrackedStatus" json:"tracked,omitempty"` // indicates if the asset has been succesfully committed to the blockchain ConfirmationStatus ConfirmationStatus `` /* 153-byte string literal not displayed */ // user defined attributes key max_length: 1024 value max_length: 4096 Attributes map[string]string `` /* 161-byte string literal not displayed */ // proof mechanism of the asset (and all its events) ProofMechanism ProofMechanism `` /* 137-byte string literal not displayed */ ChainId string `protobuf:"bytes,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Outer list AND, inner list INCLUSIVE OR, e.g. [[A, B], [A, B]] "(A OR B) in first position AND (A OR B) in second position (and anything after)" // The behaviour of these filters matches the filters available for // selecting assets in access policies: // On the Access Policy editor page in the UX wire frames, we see locations and a asset_types as two of the items to filter on. A policy that expresses “a policy for all door access readers in Basingstoke or Cambridge” // [ // // { "or": ["location=basingstoke", "location=cambridge"] }, // { "or": ["asset_type=door_access_reader"] } // // ] Filters []*filter.Filter `protobuf:"bytes,10,rep,name=filters,proto3" json:"filters,omitempty"` // privacy filter of the asset (and all its events) Privacy Privacy `protobuf:"varint,12,opt,name=privacy,proto3,enum=archivist.v2.Privacy" json:"privacy,omitempty"` // contains filtered or unexported fields }
func (*ListAssetsRequest) Descriptor
deprecated
func (*ListAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.
func (*ListAssetsRequest) GetAttributes ¶
func (x *ListAssetsRequest) GetAttributes() map[string]string
func (*ListAssetsRequest) GetChainId ¶
func (x *ListAssetsRequest) GetChainId() string
func (*ListAssetsRequest) GetConfirmationStatus ¶
func (x *ListAssetsRequest) GetConfirmationStatus() ConfirmationStatus
func (*ListAssetsRequest) GetFilters ¶
func (x *ListAssetsRequest) GetFilters() []*filter.Filter
func (*ListAssetsRequest) GetOrderBy ¶
func (x *ListAssetsRequest) GetOrderBy() ListAssetsRequest_OrderBy
func (*ListAssetsRequest) GetPageSize ¶
func (x *ListAssetsRequest) GetPageSize() int32
func (*ListAssetsRequest) GetPageToken ¶
func (x *ListAssetsRequest) GetPageToken() string
func (*ListAssetsRequest) GetPrivacy ¶
func (x *ListAssetsRequest) GetPrivacy() Privacy
func (*ListAssetsRequest) GetProofMechanism ¶
func (x *ListAssetsRequest) GetProofMechanism() ProofMechanism
func (*ListAssetsRequest) GetTracked ¶
func (x *ListAssetsRequest) GetTracked() TrackedStatus
func (*ListAssetsRequest) ProtoMessage ¶
func (*ListAssetsRequest) ProtoMessage()
func (*ListAssetsRequest) ProtoReflect ¶
func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message
func (*ListAssetsRequest) Reset ¶
func (x *ListAssetsRequest) Reset()
func (*ListAssetsRequest) String ¶
func (x *ListAssetsRequest) String() string
func (*ListAssetsRequest) Validate ¶
func (m *ListAssetsRequest) Validate() error
Validate checks the field values on ListAssetsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListAssetsRequest) ValidateAll ¶
func (m *ListAssetsRequest) ValidateAll() error
ValidateAll checks the field values on ListAssetsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAssetsRequestMultiError, or nil if none found.
type ListAssetsRequestMultiError ¶
type ListAssetsRequestMultiError []error
ListAssetsRequestMultiError is an error wrapping multiple validation errors returned by ListAssetsRequest.ValidateAll() if the designated constraints aren't met.
func (ListAssetsRequestMultiError) AllErrors ¶
func (m ListAssetsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAssetsRequestMultiError) Error ¶
func (m ListAssetsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAssetsRequestValidationError ¶
type ListAssetsRequestValidationError struct {
// contains filtered or unexported fields
}
ListAssetsRequestValidationError is the validation error returned by ListAssetsRequest.Validate if the designated constraints aren't met.
func (ListAssetsRequestValidationError) Cause ¶
func (e ListAssetsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListAssetsRequestValidationError) Error ¶
func (e ListAssetsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListAssetsRequestValidationError) ErrorName ¶
func (e ListAssetsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListAssetsRequestValidationError) Field ¶
func (e ListAssetsRequestValidationError) Field() string
Field function returns field value.
func (ListAssetsRequestValidationError) Key ¶
func (e ListAssetsRequestValidationError) Key() bool
Key function returns key value.
func (ListAssetsRequestValidationError) Reason ¶
func (e ListAssetsRequestValidationError) Reason() string
Reason function returns reason value.
type ListAssetsRequest_OrderBy ¶
type ListAssetsRequest_OrderBy int32
Supported sort orders
const ( ListAssetsRequest_DEFAULT ListAssetsRequest_OrderBy = 0 ListAssetsRequest_SIMPLEHASHV1 ListAssetsRequest_OrderBy = 1 ListAssetsRequest_SIMPLEHASHV2 ListAssetsRequest_OrderBy = 2 )
func (ListAssetsRequest_OrderBy) Descriptor ¶
func (ListAssetsRequest_OrderBy) Descriptor() protoreflect.EnumDescriptor
func (ListAssetsRequest_OrderBy) Enum ¶
func (x ListAssetsRequest_OrderBy) Enum() *ListAssetsRequest_OrderBy
func (ListAssetsRequest_OrderBy) EnumDescriptor
deprecated
func (ListAssetsRequest_OrderBy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListAssetsRequest_OrderBy.Descriptor instead.
func (ListAssetsRequest_OrderBy) Number ¶
func (x ListAssetsRequest_OrderBy) Number() protoreflect.EnumNumber
func (ListAssetsRequest_OrderBy) String ¶
func (x ListAssetsRequest_OrderBy) String() string
func (ListAssetsRequest_OrderBy) Type ¶
func (ListAssetsRequest_OrderBy) Type() protoreflect.EnumType
type ListAssetsResponse ¶
type ListAssetsResponse struct { Assets []*AssetResponse `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // Token to retrieve the next page of results or empty if there are none. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListAssetsResponse) Descriptor
deprecated
func (*ListAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.
func (*ListAssetsResponse) GetAssets ¶
func (x *ListAssetsResponse) GetAssets() []*AssetResponse
func (*ListAssetsResponse) GetNextPageToken ¶
func (x *ListAssetsResponse) GetNextPageToken() string
func (*ListAssetsResponse) ProtoMessage ¶
func (*ListAssetsResponse) ProtoMessage()
func (*ListAssetsResponse) ProtoReflect ¶
func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message
func (*ListAssetsResponse) Reset ¶
func (x *ListAssetsResponse) Reset()
func (*ListAssetsResponse) String ¶
func (x *ListAssetsResponse) String() string
func (*ListAssetsResponse) Validate ¶
func (m *ListAssetsResponse) Validate() error
Validate checks the field values on ListAssetsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListAssetsResponse) ValidateAll ¶
func (m *ListAssetsResponse) ValidateAll() error
ValidateAll checks the field values on ListAssetsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAssetsResponseMultiError, or nil if none found.
type ListAssetsResponseMultiError ¶
type ListAssetsResponseMultiError []error
ListAssetsResponseMultiError is an error wrapping multiple validation errors returned by ListAssetsResponse.ValidateAll() if the designated constraints aren't met.
func (ListAssetsResponseMultiError) AllErrors ¶
func (m ListAssetsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAssetsResponseMultiError) Error ¶
func (m ListAssetsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAssetsResponseValidationError ¶
type ListAssetsResponseValidationError struct {
// contains filtered or unexported fields
}
ListAssetsResponseValidationError is the validation error returned by ListAssetsResponse.Validate if the designated constraints aren't met.
func (ListAssetsResponseValidationError) Cause ¶
func (e ListAssetsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListAssetsResponseValidationError) Error ¶
func (e ListAssetsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListAssetsResponseValidationError) ErrorName ¶
func (e ListAssetsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListAssetsResponseValidationError) Field ¶
func (e ListAssetsResponseValidationError) Field() string
Field function returns field value.
func (ListAssetsResponseValidationError) Key ¶
func (e ListAssetsResponseValidationError) Key() bool
Key function returns key value.
func (ListAssetsResponseValidationError) Reason ¶
func (e ListAssetsResponseValidationError) Reason() string
Reason function returns reason value.
type ListEventsRequest ¶
type ListEventsRequest struct { // Maximum results per page. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token returned from a previous list request if any. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Specify the sort order for the results. OrderBy ListEventsRequest_OrderBy `` /* 127-byte string literal not displayed */ Uuid string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` // indicates if the asset has been succesfully committed to the blockchain ConfirmationStatus ConfirmationStatus `` /* 153-byte string literal not displayed */ PrincipalDeclared *Principal `protobuf:"bytes,6,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"` PrincipalAccepted *Principal `protobuf:"bytes,7,opt,name=principal_accepted,json=principalAccepted,proto3" json:"principal_accepted,omitempty"` // Filtering TimestampAcceptedSince *timestamppb.Timestamp `` /* 130-byte string literal not displayed */ TimestampAcceptedBefore *timestamppb.Timestamp `` /* 133-byte string literal not displayed */ TimestampCommittedSince *timestamppb.Timestamp `` /* 133-byte string literal not displayed */ TimestampCommittedBefore *timestamppb.Timestamp `` /* 136-byte string literal not displayed */ TimestampDeclaredSince *timestamppb.Timestamp `` /* 130-byte string literal not displayed */ TimestampDeclaredBefore *timestamppb.Timestamp `` /* 133-byte string literal not displayed */ Operation string `protobuf:"bytes,17,opt,name=operation,proto3" json:"operation,omitempty"` Behaviour string `protobuf:"bytes,18,opt,name=behaviour,proto3" json:"behaviour,omitempty"` // user defined event_attributes key max_length: 1024 value max_length: 4096 EventAttributes map[string]string `` /* 195-byte string literal not displayed */ // user defined asset_attributes key max_length: 1024 value max_length: 4096 AssetAttributes map[string]string `` /* 195-byte string literal not displayed */ Asset *ListEventsRequest_AssetQuery `protobuf:"bytes,21,opt,name=asset,proto3" json:"asset,omitempty"` // mechanism for evidential proof for Events on this Asset ProofMechanism ProofMechanism `` /* 138-byte string literal not displayed */ // Outer list AND, inner list INCLUSIVE OR, e.g. [[A, B], [A, B]] "(A OR B) in first position AND (A OR B) in second position (and anything after)" // The behaviour of these filters matches the filters available for // selecting assets in access policies: // On the Access Policy editor page in the UX wire frames, we see locations and a asset_types as two of the items to filter on. A policy that expresses “a policy for all door access readers in Basingstoke or Cambridge” // [ // // { "or": ["location=basingstoke", "location=cambridge"] }, // { "or": ["asset_type=door_access_reader"] } // // ] Filters []*filter.Filter `protobuf:"bytes,23,rep,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*ListEventsRequest) Descriptor
deprecated
func (*ListEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.
func (*ListEventsRequest) GetAsset ¶
func (x *ListEventsRequest) GetAsset() *ListEventsRequest_AssetQuery
func (*ListEventsRequest) GetAssetAttributes ¶
func (x *ListEventsRequest) GetAssetAttributes() map[string]string
func (*ListEventsRequest) GetBehaviour ¶
func (x *ListEventsRequest) GetBehaviour() string
func (*ListEventsRequest) GetConfirmationStatus ¶
func (x *ListEventsRequest) GetConfirmationStatus() ConfirmationStatus
func (*ListEventsRequest) GetEventAttributes ¶
func (x *ListEventsRequest) GetEventAttributes() map[string]string
func (*ListEventsRequest) GetFilters ¶
func (x *ListEventsRequest) GetFilters() []*filter.Filter
func (*ListEventsRequest) GetOperation ¶
func (x *ListEventsRequest) GetOperation() string
func (*ListEventsRequest) GetOrderBy ¶
func (x *ListEventsRequest) GetOrderBy() ListEventsRequest_OrderBy
func (*ListEventsRequest) GetPageSize ¶
func (x *ListEventsRequest) GetPageSize() int32
func (*ListEventsRequest) GetPageToken ¶
func (x *ListEventsRequest) GetPageToken() string
func (*ListEventsRequest) GetPrincipalAccepted ¶
func (x *ListEventsRequest) GetPrincipalAccepted() *Principal
func (*ListEventsRequest) GetPrincipalDeclared ¶
func (x *ListEventsRequest) GetPrincipalDeclared() *Principal
func (*ListEventsRequest) GetProofMechanism ¶
func (x *ListEventsRequest) GetProofMechanism() ProofMechanism
func (*ListEventsRequest) GetTimestampAcceptedBefore ¶
func (x *ListEventsRequest) GetTimestampAcceptedBefore() *timestamppb.Timestamp
func (*ListEventsRequest) GetTimestampAcceptedSince ¶
func (x *ListEventsRequest) GetTimestampAcceptedSince() *timestamppb.Timestamp
func (*ListEventsRequest) GetTimestampCommittedBefore ¶
func (x *ListEventsRequest) GetTimestampCommittedBefore() *timestamppb.Timestamp
func (*ListEventsRequest) GetTimestampCommittedSince ¶
func (x *ListEventsRequest) GetTimestampCommittedSince() *timestamppb.Timestamp
func (*ListEventsRequest) GetTimestampDeclaredBefore ¶
func (x *ListEventsRequest) GetTimestampDeclaredBefore() *timestamppb.Timestamp
func (*ListEventsRequest) GetTimestampDeclaredSince ¶
func (x *ListEventsRequest) GetTimestampDeclaredSince() *timestamppb.Timestamp
func (*ListEventsRequest) GetUuid ¶
func (x *ListEventsRequest) GetUuid() string
func (*ListEventsRequest) ProtoMessage ¶
func (*ListEventsRequest) ProtoMessage()
func (*ListEventsRequest) ProtoReflect ¶
func (x *ListEventsRequest) ProtoReflect() protoreflect.Message
func (*ListEventsRequest) Reset ¶
func (x *ListEventsRequest) Reset()
func (*ListEventsRequest) String ¶
func (x *ListEventsRequest) String() string
func (*ListEventsRequest) Validate ¶
func (m *ListEventsRequest) Validate() error
Validate checks the field values on ListEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListEventsRequest) ValidateAll ¶
func (m *ListEventsRequest) ValidateAll() error
ValidateAll checks the field values on ListEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsRequestMultiError, or nil if none found.
type ListEventsRequestMultiError ¶
type ListEventsRequestMultiError []error
ListEventsRequestMultiError is an error wrapping multiple validation errors returned by ListEventsRequest.ValidateAll() if the designated constraints aren't met.
func (ListEventsRequestMultiError) AllErrors ¶
func (m ListEventsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEventsRequestMultiError) Error ¶
func (m ListEventsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEventsRequestValidationError ¶
type ListEventsRequestValidationError struct {
// contains filtered or unexported fields
}
ListEventsRequestValidationError is the validation error returned by ListEventsRequest.Validate if the designated constraints aren't met.
func (ListEventsRequestValidationError) Cause ¶
func (e ListEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListEventsRequestValidationError) Error ¶
func (e ListEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListEventsRequestValidationError) ErrorName ¶
func (e ListEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListEventsRequestValidationError) Field ¶
func (e ListEventsRequestValidationError) Field() string
Field function returns field value.
func (ListEventsRequestValidationError) Key ¶
func (e ListEventsRequestValidationError) Key() bool
Key function returns key value.
func (ListEventsRequestValidationError) Reason ¶
func (e ListEventsRequestValidationError) Reason() string
Reason function returns reason value.
type ListEventsRequest_AssetQuery ¶
type ListEventsRequest_AssetQuery struct { Attributes map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListEventsRequest_AssetQuery) Descriptor
deprecated
func (*ListEventsRequest_AssetQuery) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsRequest_AssetQuery.ProtoReflect.Descriptor instead.
func (*ListEventsRequest_AssetQuery) GetAttributes ¶
func (x *ListEventsRequest_AssetQuery) GetAttributes() map[string]string
func (*ListEventsRequest_AssetQuery) ProtoMessage ¶
func (*ListEventsRequest_AssetQuery) ProtoMessage()
func (*ListEventsRequest_AssetQuery) ProtoReflect ¶
func (x *ListEventsRequest_AssetQuery) ProtoReflect() protoreflect.Message
func (*ListEventsRequest_AssetQuery) Reset ¶
func (x *ListEventsRequest_AssetQuery) Reset()
func (*ListEventsRequest_AssetQuery) String ¶
func (x *ListEventsRequest_AssetQuery) String() string
func (*ListEventsRequest_AssetQuery) Validate ¶
func (m *ListEventsRequest_AssetQuery) Validate() error
Validate checks the field values on ListEventsRequest_AssetQuery with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListEventsRequest_AssetQuery) ValidateAll ¶
func (m *ListEventsRequest_AssetQuery) ValidateAll() error
ValidateAll checks the field values on ListEventsRequest_AssetQuery with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsRequest_AssetQueryMultiError, or nil if none found.
type ListEventsRequest_AssetQueryMultiError ¶
type ListEventsRequest_AssetQueryMultiError []error
ListEventsRequest_AssetQueryMultiError is an error wrapping multiple validation errors returned by ListEventsRequest_AssetQuery.ValidateAll() if the designated constraints aren't met.
func (ListEventsRequest_AssetQueryMultiError) AllErrors ¶
func (m ListEventsRequest_AssetQueryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEventsRequest_AssetQueryMultiError) Error ¶
func (m ListEventsRequest_AssetQueryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEventsRequest_AssetQueryValidationError ¶
type ListEventsRequest_AssetQueryValidationError struct {
// contains filtered or unexported fields
}
ListEventsRequest_AssetQueryValidationError is the validation error returned by ListEventsRequest_AssetQuery.Validate if the designated constraints aren't met.
func (ListEventsRequest_AssetQueryValidationError) Cause ¶
func (e ListEventsRequest_AssetQueryValidationError) Cause() error
Cause function returns cause value.
func (ListEventsRequest_AssetQueryValidationError) Error ¶
func (e ListEventsRequest_AssetQueryValidationError) Error() string
Error satisfies the builtin error interface
func (ListEventsRequest_AssetQueryValidationError) ErrorName ¶
func (e ListEventsRequest_AssetQueryValidationError) ErrorName() string
ErrorName returns error name.
func (ListEventsRequest_AssetQueryValidationError) Field ¶
func (e ListEventsRequest_AssetQueryValidationError) Field() string
Field function returns field value.
func (ListEventsRequest_AssetQueryValidationError) Key ¶
func (e ListEventsRequest_AssetQueryValidationError) Key() bool
Key function returns key value.
func (ListEventsRequest_AssetQueryValidationError) Reason ¶
func (e ListEventsRequest_AssetQueryValidationError) Reason() string
Reason function returns reason value.
type ListEventsRequest_OrderBy ¶
type ListEventsRequest_OrderBy int32
Supported sort orders
const ( ListEventsRequest_DEFAULT ListEventsRequest_OrderBy = 0 ListEventsRequest_SIMPLEHASHV1 ListEventsRequest_OrderBy = 1 ListEventsRequest_SIMPLEHASHV2 ListEventsRequest_OrderBy = 2 )
func (ListEventsRequest_OrderBy) Descriptor ¶
func (ListEventsRequest_OrderBy) Descriptor() protoreflect.EnumDescriptor
func (ListEventsRequest_OrderBy) Enum ¶
func (x ListEventsRequest_OrderBy) Enum() *ListEventsRequest_OrderBy
func (ListEventsRequest_OrderBy) EnumDescriptor
deprecated
func (ListEventsRequest_OrderBy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListEventsRequest_OrderBy.Descriptor instead.
func (ListEventsRequest_OrderBy) Number ¶
func (x ListEventsRequest_OrderBy) Number() protoreflect.EnumNumber
func (ListEventsRequest_OrderBy) String ¶
func (x ListEventsRequest_OrderBy) String() string
func (ListEventsRequest_OrderBy) Type ¶
func (ListEventsRequest_OrderBy) Type() protoreflect.EnumType
type ListEventsResponse ¶
type ListEventsResponse struct { Events []*EventResponse `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // Token to retrieve the next page of results or empty if there are none. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListEventsResponse) Descriptor
deprecated
func (*ListEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.
func (*ListEventsResponse) GetEvents ¶
func (x *ListEventsResponse) GetEvents() []*EventResponse
func (*ListEventsResponse) GetNextPageToken ¶
func (x *ListEventsResponse) GetNextPageToken() string
func (*ListEventsResponse) ProtoMessage ¶
func (*ListEventsResponse) ProtoMessage()
func (*ListEventsResponse) ProtoReflect ¶
func (x *ListEventsResponse) ProtoReflect() protoreflect.Message
func (*ListEventsResponse) Reset ¶
func (x *ListEventsResponse) Reset()
func (*ListEventsResponse) String ¶
func (x *ListEventsResponse) String() string
func (*ListEventsResponse) Validate ¶
func (m *ListEventsResponse) Validate() error
Validate checks the field values on ListEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListEventsResponse) ValidateAll ¶
func (m *ListEventsResponse) ValidateAll() error
ValidateAll checks the field values on ListEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsResponseMultiError, or nil if none found.
type ListEventsResponseMultiError ¶
type ListEventsResponseMultiError []error
ListEventsResponseMultiError is an error wrapping multiple validation errors returned by ListEventsResponse.ValidateAll() if the designated constraints aren't met.
func (ListEventsResponseMultiError) AllErrors ¶
func (m ListEventsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEventsResponseMultiError) Error ¶
func (m ListEventsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEventsResponseValidationError ¶
type ListEventsResponseValidationError struct {
// contains filtered or unexported fields
}
ListEventsResponseValidationError is the validation error returned by ListEventsResponse.Validate if the designated constraints aren't met.
func (ListEventsResponseValidationError) Cause ¶
func (e ListEventsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListEventsResponseValidationError) Error ¶
func (e ListEventsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListEventsResponseValidationError) ErrorName ¶
func (e ListEventsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListEventsResponseValidationError) Field ¶
func (e ListEventsResponseValidationError) Field() string
Field function returns field value.
func (ListEventsResponseValidationError) Key ¶
func (e ListEventsResponseValidationError) Key() bool
Key function returns key value.
func (ListEventsResponseValidationError) Reason ¶
func (e ListEventsResponseValidationError) Reason() string
Reason function returns reason value.
type MerkleLogCommit ¶ added in v0.3.6
type MerkleLogCommit struct { // The mmr index Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // time ordered and strictly unique per tenant. system wide unique with very // reasonable operational assumptions. prefixed with time epoch if len > 8 // bytes (after conversion back from hex). Idtimestamp string `protobuf:"bytes,2,opt,name=idtimestamp,proto3" json:"idtimestamp,omitempty"` // contains filtered or unexported fields }
MerkeLogCommit provides the log entry details for a single mmr leaf.
func (*MerkleLogCommit) Descriptor
deprecated
added in
v0.3.6
func (*MerkleLogCommit) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogCommit.ProtoReflect.Descriptor instead.
func (*MerkleLogCommit) GetIdtimestamp ¶ added in v0.3.6
func (x *MerkleLogCommit) GetIdtimestamp() string
func (*MerkleLogCommit) GetIndex ¶ added in v0.3.6
func (x *MerkleLogCommit) GetIndex() uint64
func (*MerkleLogCommit) ProtoMessage ¶ added in v0.3.6
func (*MerkleLogCommit) ProtoMessage()
func (*MerkleLogCommit) ProtoReflect ¶ added in v0.3.6
func (x *MerkleLogCommit) ProtoReflect() protoreflect.Message
func (*MerkleLogCommit) Reset ¶ added in v0.3.6
func (x *MerkleLogCommit) Reset()
func (*MerkleLogCommit) String ¶ added in v0.3.6
func (x *MerkleLogCommit) String() string
func (*MerkleLogCommit) Validate ¶ added in v0.3.6
func (m *MerkleLogCommit) Validate() error
Validate checks the field values on MerkleLogCommit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogCommit) ValidateAll ¶ added in v0.3.6
func (m *MerkleLogCommit) ValidateAll() error
ValidateAll checks the field values on MerkleLogCommit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogCommitMultiError, or nil if none found.
type MerkleLogCommitMessage ¶ added in v0.3.6
type MerkleLogCommitMessage struct { // The tenant identity and the event identity for the committed event. TenantIdentity string `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` EventIdentity string `protobuf:"bytes,2,opt,name=event_identity,json=eventIdentity,proto3" json:"event_identity,omitempty"` // The time portion of idtimestamp that contributed to the hash of the event Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Commit *MerkleLogCommit `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"` // contains filtered or unexported fields }
The message sent from forestrie to avid notifying that the corresponding event is commited to the tenants log.
func (*MerkleLogCommitMessage) Descriptor
deprecated
added in
v0.3.6
func (*MerkleLogCommitMessage) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogCommitMessage.ProtoReflect.Descriptor instead.
func (*MerkleLogCommitMessage) GetCommit ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) GetCommit() *MerkleLogCommit
func (*MerkleLogCommitMessage) GetEventIdentity ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) GetEventIdentity() string
func (*MerkleLogCommitMessage) GetTenantIdentity ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) GetTenantIdentity() string
func (*MerkleLogCommitMessage) GetTimestamp ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) GetTimestamp() *timestamppb.Timestamp
func (*MerkleLogCommitMessage) ProtoMessage ¶ added in v0.3.6
func (*MerkleLogCommitMessage) ProtoMessage()
func (*MerkleLogCommitMessage) ProtoReflect ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) ProtoReflect() protoreflect.Message
func (*MerkleLogCommitMessage) Reset ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) Reset()
func (*MerkleLogCommitMessage) String ¶ added in v0.3.6
func (x *MerkleLogCommitMessage) String() string
func (*MerkleLogCommitMessage) Validate ¶ added in v0.3.6
func (m *MerkleLogCommitMessage) Validate() error
Validate checks the field values on MerkleLogCommitMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogCommitMessage) ValidateAll ¶ added in v0.3.6
func (m *MerkleLogCommitMessage) ValidateAll() error
ValidateAll checks the field values on MerkleLogCommitMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogCommitMessageMultiError, or nil if none found.
type MerkleLogCommitMessageMultiError ¶ added in v0.3.6
type MerkleLogCommitMessageMultiError []error
MerkleLogCommitMessageMultiError is an error wrapping multiple validation errors returned by MerkleLogCommitMessage.ValidateAll() if the designated constraints aren't met.
func (MerkleLogCommitMessageMultiError) AllErrors ¶ added in v0.3.6
func (m MerkleLogCommitMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogCommitMessageMultiError) Error ¶ added in v0.3.6
func (m MerkleLogCommitMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogCommitMessageValidationError ¶ added in v0.3.6
type MerkleLogCommitMessageValidationError struct {
// contains filtered or unexported fields
}
MerkleLogCommitMessageValidationError is the validation error returned by MerkleLogCommitMessage.Validate if the designated constraints aren't met.
func (MerkleLogCommitMessageValidationError) Cause ¶ added in v0.3.6
func (e MerkleLogCommitMessageValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogCommitMessageValidationError) Error ¶ added in v0.3.6
func (e MerkleLogCommitMessageValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogCommitMessageValidationError) ErrorName ¶ added in v0.3.6
func (e MerkleLogCommitMessageValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogCommitMessageValidationError) Field ¶ added in v0.3.6
func (e MerkleLogCommitMessageValidationError) Field() string
Field function returns field value.
func (MerkleLogCommitMessageValidationError) Key ¶ added in v0.3.6
func (e MerkleLogCommitMessageValidationError) Key() bool
Key function returns key value.
func (MerkleLogCommitMessageValidationError) Reason ¶ added in v0.3.6
func (e MerkleLogCommitMessageValidationError) Reason() string
Reason function returns reason value.
type MerkleLogCommitMultiError ¶ added in v0.3.6
type MerkleLogCommitMultiError []error
MerkleLogCommitMultiError is an error wrapping multiple validation errors returned by MerkleLogCommit.ValidateAll() if the designated constraints aren't met.
func (MerkleLogCommitMultiError) AllErrors ¶ added in v0.3.6
func (m MerkleLogCommitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogCommitMultiError) Error ¶ added in v0.3.6
func (m MerkleLogCommitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogCommitValidationError ¶ added in v0.3.6
type MerkleLogCommitValidationError struct {
// contains filtered or unexported fields
}
MerkleLogCommitValidationError is the validation error returned by MerkleLogCommit.Validate if the designated constraints aren't met.
func (MerkleLogCommitValidationError) Cause ¶ added in v0.3.6
func (e MerkleLogCommitValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogCommitValidationError) Error ¶ added in v0.3.6
func (e MerkleLogCommitValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogCommitValidationError) ErrorName ¶ added in v0.3.6
func (e MerkleLogCommitValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogCommitValidationError) Field ¶ added in v0.3.6
func (e MerkleLogCommitValidationError) Field() string
Field function returns field value.
func (MerkleLogCommitValidationError) Key ¶ added in v0.3.6
func (e MerkleLogCommitValidationError) Key() bool
Key function returns key value.
func (MerkleLogCommitValidationError) Reason ¶ added in v0.3.6
func (e MerkleLogCommitValidationError) Reason() string
Reason function returns reason value.
type MerkleLogConfirm ¶ added in v0.3.8
type MerkleLogConfirm struct { // The following correspond to mmrblobs.MMRState MmrSize uint64 `protobuf:"varint,1,opt,name=mmr_size,json=mmrSize,proto3" json:"mmr_size,omitempty"` Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` // The regular unix time the root was signed Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // The idtimestamp of the last leaf under mmr_size. prefixed with time epoch if len > 8 bytes (after conversion back from hex) Idtimestamp string `protobuf:"bytes,4,opt,name=idtimestamp,proto3" json:"idtimestamp,omitempty"` // The signed merkle tree head state at mmr_size. Contains COSE Sign1 formatted message. SignedTreeHead []byte `protobuf:"bytes,5,opt,name=signed_tree_head,json=signedTreeHead,proto3" json:"signed_tree_head,omitempty"` // contains filtered or unexported fields }
func (*MerkleLogConfirm) Descriptor
deprecated
added in
v0.3.8
func (*MerkleLogConfirm) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogConfirm.ProtoReflect.Descriptor instead.
func (*MerkleLogConfirm) GetIdtimestamp ¶ added in v0.3.8
func (x *MerkleLogConfirm) GetIdtimestamp() string
func (*MerkleLogConfirm) GetMmrSize ¶ added in v0.3.8
func (x *MerkleLogConfirm) GetMmrSize() uint64
func (*MerkleLogConfirm) GetRoot ¶ added in v0.3.8
func (x *MerkleLogConfirm) GetRoot() []byte
func (*MerkleLogConfirm) GetSignedTreeHead ¶ added in v0.3.8
func (x *MerkleLogConfirm) GetSignedTreeHead() []byte
func (*MerkleLogConfirm) GetTimestamp ¶ added in v0.3.8
func (x *MerkleLogConfirm) GetTimestamp() int64
func (*MerkleLogConfirm) ProtoMessage ¶ added in v0.3.8
func (*MerkleLogConfirm) ProtoMessage()
func (*MerkleLogConfirm) ProtoReflect ¶ added in v0.3.8
func (x *MerkleLogConfirm) ProtoReflect() protoreflect.Message
func (*MerkleLogConfirm) Reset ¶ added in v0.3.8
func (x *MerkleLogConfirm) Reset()
func (*MerkleLogConfirm) String ¶ added in v0.3.8
func (x *MerkleLogConfirm) String() string
func (*MerkleLogConfirm) Validate ¶ added in v0.3.8
func (m *MerkleLogConfirm) Validate() error
Validate checks the field values on MerkleLogConfirm with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogConfirm) ValidateAll ¶ added in v0.3.8
func (m *MerkleLogConfirm) ValidateAll() error
ValidateAll checks the field values on MerkleLogConfirm with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogConfirmMultiError, or nil if none found.
type MerkleLogConfirmMessage ¶ added in v0.3.8
type MerkleLogConfirmMessage struct { TenantIdentity string `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` Confirm *MerkleLogConfirm `protobuf:"bytes,2,opt,name=confirm,proto3" json:"confirm,omitempty"` // contains filtered or unexported fields }
func (*MerkleLogConfirmMessage) Descriptor
deprecated
added in
v0.3.8
func (*MerkleLogConfirmMessage) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogConfirmMessage.ProtoReflect.Descriptor instead.
func (*MerkleLogConfirmMessage) GetConfirm ¶ added in v0.3.8
func (x *MerkleLogConfirmMessage) GetConfirm() *MerkleLogConfirm
func (*MerkleLogConfirmMessage) GetTenantIdentity ¶ added in v0.3.8
func (x *MerkleLogConfirmMessage) GetTenantIdentity() string
func (*MerkleLogConfirmMessage) ProtoMessage ¶ added in v0.3.8
func (*MerkleLogConfirmMessage) ProtoMessage()
func (*MerkleLogConfirmMessage) ProtoReflect ¶ added in v0.3.8
func (x *MerkleLogConfirmMessage) ProtoReflect() protoreflect.Message
func (*MerkleLogConfirmMessage) Reset ¶ added in v0.3.8
func (x *MerkleLogConfirmMessage) Reset()
func (*MerkleLogConfirmMessage) String ¶ added in v0.3.8
func (x *MerkleLogConfirmMessage) String() string
func (*MerkleLogConfirmMessage) Validate ¶ added in v0.3.8
func (m *MerkleLogConfirmMessage) Validate() error
Validate checks the field values on MerkleLogConfirmMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogConfirmMessage) ValidateAll ¶ added in v0.3.8
func (m *MerkleLogConfirmMessage) ValidateAll() error
ValidateAll checks the field values on MerkleLogConfirmMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogConfirmMessageMultiError, or nil if none found.
type MerkleLogConfirmMessageMultiError ¶ added in v0.3.8
type MerkleLogConfirmMessageMultiError []error
MerkleLogConfirmMessageMultiError is an error wrapping multiple validation errors returned by MerkleLogConfirmMessage.ValidateAll() if the designated constraints aren't met.
func (MerkleLogConfirmMessageMultiError) AllErrors ¶ added in v0.3.8
func (m MerkleLogConfirmMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogConfirmMessageMultiError) Error ¶ added in v0.3.8
func (m MerkleLogConfirmMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogConfirmMessageValidationError ¶ added in v0.3.8
type MerkleLogConfirmMessageValidationError struct {
// contains filtered or unexported fields
}
MerkleLogConfirmMessageValidationError is the validation error returned by MerkleLogConfirmMessage.Validate if the designated constraints aren't met.
func (MerkleLogConfirmMessageValidationError) Cause ¶ added in v0.3.8
func (e MerkleLogConfirmMessageValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogConfirmMessageValidationError) Error ¶ added in v0.3.8
func (e MerkleLogConfirmMessageValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogConfirmMessageValidationError) ErrorName ¶ added in v0.3.8
func (e MerkleLogConfirmMessageValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogConfirmMessageValidationError) Field ¶ added in v0.3.8
func (e MerkleLogConfirmMessageValidationError) Field() string
Field function returns field value.
func (MerkleLogConfirmMessageValidationError) Key ¶ added in v0.3.8
func (e MerkleLogConfirmMessageValidationError) Key() bool
Key function returns key value.
func (MerkleLogConfirmMessageValidationError) Reason ¶ added in v0.3.8
func (e MerkleLogConfirmMessageValidationError) Reason() string
Reason function returns reason value.
type MerkleLogConfirmMultiError ¶ added in v0.3.8
type MerkleLogConfirmMultiError []error
MerkleLogConfirmMultiError is an error wrapping multiple validation errors returned by MerkleLogConfirm.ValidateAll() if the designated constraints aren't met.
func (MerkleLogConfirmMultiError) AllErrors ¶ added in v0.3.8
func (m MerkleLogConfirmMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogConfirmMultiError) Error ¶ added in v0.3.8
func (m MerkleLogConfirmMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogConfirmValidationError ¶ added in v0.3.8
type MerkleLogConfirmValidationError struct {
// contains filtered or unexported fields
}
MerkleLogConfirmValidationError is the validation error returned by MerkleLogConfirm.Validate if the designated constraints aren't met.
func (MerkleLogConfirmValidationError) Cause ¶ added in v0.3.8
func (e MerkleLogConfirmValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogConfirmValidationError) Error ¶ added in v0.3.8
func (e MerkleLogConfirmValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogConfirmValidationError) ErrorName ¶ added in v0.3.8
func (e MerkleLogConfirmValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogConfirmValidationError) Field ¶ added in v0.3.8
func (e MerkleLogConfirmValidationError) Field() string
Field function returns field value.
func (MerkleLogConfirmValidationError) Key ¶ added in v0.3.8
func (e MerkleLogConfirmValidationError) Key() bool
Key function returns key value.
func (MerkleLogConfirmValidationError) Reason ¶ added in v0.3.8
func (e MerkleLogConfirmValidationError) Reason() string
Reason function returns reason value.
type MerkleLogEntry ¶ added in v0.3.6
type MerkleLogEntry struct { // Event trust level COMMITTED details Commit *MerkleLogCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` // Event trust level CONFIRMED details Confirm *MerkleLogConfirm `protobuf:"bytes,2,opt,name=confirm,proto3" json:"confirm,omitempty"` // Event trust level UNEQUIVOCAL details Unequivocal *MerkleLogUnequivocal `protobuf:"bytes,3,opt,name=unequivocal,proto3" json:"unequivocal,omitempty"` // contains filtered or unexported fields }
The details stored in the SaaS db for a proof mech MERKLE_LOG commitment
func (*MerkleLogEntry) Descriptor
deprecated
added in
v0.3.6
func (*MerkleLogEntry) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogEntry.ProtoReflect.Descriptor instead.
func (*MerkleLogEntry) GetCommit ¶ added in v0.3.6
func (x *MerkleLogEntry) GetCommit() *MerkleLogCommit
func (*MerkleLogEntry) GetConfirm ¶ added in v0.3.8
func (x *MerkleLogEntry) GetConfirm() *MerkleLogConfirm
func (*MerkleLogEntry) GetUnequivocal ¶ added in v0.3.8
func (x *MerkleLogEntry) GetUnequivocal() *MerkleLogUnequivocal
func (*MerkleLogEntry) ProtoMessage ¶ added in v0.3.6
func (*MerkleLogEntry) ProtoMessage()
func (*MerkleLogEntry) ProtoReflect ¶ added in v0.3.6
func (x *MerkleLogEntry) ProtoReflect() protoreflect.Message
func (*MerkleLogEntry) Reset ¶ added in v0.3.6
func (x *MerkleLogEntry) Reset()
func (*MerkleLogEntry) String ¶ added in v0.3.6
func (x *MerkleLogEntry) String() string
func (*MerkleLogEntry) Validate ¶ added in v0.3.6
func (m *MerkleLogEntry) Validate() error
Validate checks the field values on MerkleLogEntry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogEntry) ValidateAll ¶ added in v0.3.6
func (m *MerkleLogEntry) ValidateAll() error
ValidateAll checks the field values on MerkleLogEntry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogEntryMultiError, or nil if none found.
type MerkleLogEntryMultiError ¶ added in v0.3.6
type MerkleLogEntryMultiError []error
MerkleLogEntryMultiError is an error wrapping multiple validation errors returned by MerkleLogEntry.ValidateAll() if the designated constraints aren't met.
func (MerkleLogEntryMultiError) AllErrors ¶ added in v0.3.6
func (m MerkleLogEntryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogEntryMultiError) Error ¶ added in v0.3.6
func (m MerkleLogEntryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogEntryValidationError ¶ added in v0.3.6
type MerkleLogEntryValidationError struct {
// contains filtered or unexported fields
}
MerkleLogEntryValidationError is the validation error returned by MerkleLogEntry.Validate if the designated constraints aren't met.
func (MerkleLogEntryValidationError) Cause ¶ added in v0.3.6
func (e MerkleLogEntryValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogEntryValidationError) Error ¶ added in v0.3.6
func (e MerkleLogEntryValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogEntryValidationError) ErrorName ¶ added in v0.3.6
func (e MerkleLogEntryValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogEntryValidationError) Field ¶ added in v0.3.6
func (e MerkleLogEntryValidationError) Field() string
Field function returns field value.
func (MerkleLogEntryValidationError) Key ¶ added in v0.3.6
func (e MerkleLogEntryValidationError) Key() bool
Key function returns key value.
func (MerkleLogEntryValidationError) Reason ¶ added in v0.3.6
func (e MerkleLogEntryValidationError) Reason() string
Reason function returns reason value.
type MerkleLogUnequivocal ¶ added in v0.3.8
type MerkleLogUnequivocal struct {
// contains filtered or unexported fields
}
func (*MerkleLogUnequivocal) Descriptor
deprecated
added in
v0.3.8
func (*MerkleLogUnequivocal) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogUnequivocal.ProtoReflect.Descriptor instead.
func (*MerkleLogUnequivocal) ProtoMessage ¶ added in v0.3.8
func (*MerkleLogUnequivocal) ProtoMessage()
func (*MerkleLogUnequivocal) ProtoReflect ¶ added in v0.3.8
func (x *MerkleLogUnequivocal) ProtoReflect() protoreflect.Message
func (*MerkleLogUnequivocal) Reset ¶ added in v0.3.8
func (x *MerkleLogUnequivocal) Reset()
func (*MerkleLogUnequivocal) String ¶ added in v0.3.8
func (x *MerkleLogUnequivocal) String() string
func (*MerkleLogUnequivocal) Validate ¶ added in v0.3.8
func (m *MerkleLogUnequivocal) Validate() error
Validate checks the field values on MerkleLogUnequivocal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogUnequivocal) ValidateAll ¶ added in v0.3.8
func (m *MerkleLogUnequivocal) ValidateAll() error
ValidateAll checks the field values on MerkleLogUnequivocal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogUnequivocalMultiError, or nil if none found.
type MerkleLogUnequivocalMessage ¶ added in v0.3.8
type MerkleLogUnequivocalMessage struct { TenantIdentity string `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` Unequivocal *MerkleLogUnequivocal `protobuf:"bytes,2,opt,name=unequivocal,proto3" json:"unequivocal,omitempty"` // contains filtered or unexported fields }
func (*MerkleLogUnequivocalMessage) Descriptor
deprecated
added in
v0.3.8
func (*MerkleLogUnequivocalMessage) Descriptor() ([]byte, []int)
Deprecated: Use MerkleLogUnequivocalMessage.ProtoReflect.Descriptor instead.
func (*MerkleLogUnequivocalMessage) GetTenantIdentity ¶ added in v0.3.8
func (x *MerkleLogUnequivocalMessage) GetTenantIdentity() string
func (*MerkleLogUnequivocalMessage) GetUnequivocal ¶ added in v0.3.8
func (x *MerkleLogUnequivocalMessage) GetUnequivocal() *MerkleLogUnequivocal
func (*MerkleLogUnequivocalMessage) ProtoMessage ¶ added in v0.3.8
func (*MerkleLogUnequivocalMessage) ProtoMessage()
func (*MerkleLogUnequivocalMessage) ProtoReflect ¶ added in v0.3.8
func (x *MerkleLogUnequivocalMessage) ProtoReflect() protoreflect.Message
func (*MerkleLogUnequivocalMessage) Reset ¶ added in v0.3.8
func (x *MerkleLogUnequivocalMessage) Reset()
func (*MerkleLogUnequivocalMessage) String ¶ added in v0.3.8
func (x *MerkleLogUnequivocalMessage) String() string
func (*MerkleLogUnequivocalMessage) Validate ¶ added in v0.3.8
func (m *MerkleLogUnequivocalMessage) Validate() error
Validate checks the field values on MerkleLogUnequivocalMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MerkleLogUnequivocalMessage) ValidateAll ¶ added in v0.3.8
func (m *MerkleLogUnequivocalMessage) ValidateAll() error
ValidateAll checks the field values on MerkleLogUnequivocalMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MerkleLogUnequivocalMessageMultiError, or nil if none found.
type MerkleLogUnequivocalMessageMultiError ¶ added in v0.3.8
type MerkleLogUnequivocalMessageMultiError []error
MerkleLogUnequivocalMessageMultiError is an error wrapping multiple validation errors returned by MerkleLogUnequivocalMessage.ValidateAll() if the designated constraints aren't met.
func (MerkleLogUnequivocalMessageMultiError) AllErrors ¶ added in v0.3.8
func (m MerkleLogUnequivocalMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogUnequivocalMessageMultiError) Error ¶ added in v0.3.8
func (m MerkleLogUnequivocalMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogUnequivocalMessageValidationError ¶ added in v0.3.8
type MerkleLogUnequivocalMessageValidationError struct {
// contains filtered or unexported fields
}
MerkleLogUnequivocalMessageValidationError is the validation error returned by MerkleLogUnequivocalMessage.Validate if the designated constraints aren't met.
func (MerkleLogUnequivocalMessageValidationError) Cause ¶ added in v0.3.8
func (e MerkleLogUnequivocalMessageValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogUnequivocalMessageValidationError) Error ¶ added in v0.3.8
func (e MerkleLogUnequivocalMessageValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogUnequivocalMessageValidationError) ErrorName ¶ added in v0.3.8
func (e MerkleLogUnequivocalMessageValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogUnequivocalMessageValidationError) Field ¶ added in v0.3.8
func (e MerkleLogUnequivocalMessageValidationError) Field() string
Field function returns field value.
func (MerkleLogUnequivocalMessageValidationError) Key ¶ added in v0.3.8
func (e MerkleLogUnequivocalMessageValidationError) Key() bool
Key function returns key value.
func (MerkleLogUnequivocalMessageValidationError) Reason ¶ added in v0.3.8
func (e MerkleLogUnequivocalMessageValidationError) Reason() string
Reason function returns reason value.
type MerkleLogUnequivocalMultiError ¶ added in v0.3.8
type MerkleLogUnequivocalMultiError []error
MerkleLogUnequivocalMultiError is an error wrapping multiple validation errors returned by MerkleLogUnequivocal.ValidateAll() if the designated constraints aren't met.
func (MerkleLogUnequivocalMultiError) AllErrors ¶ added in v0.3.8
func (m MerkleLogUnequivocalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MerkleLogUnequivocalMultiError) Error ¶ added in v0.3.8
func (m MerkleLogUnequivocalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MerkleLogUnequivocalValidationError ¶ added in v0.3.8
type MerkleLogUnequivocalValidationError struct {
// contains filtered or unexported fields
}
MerkleLogUnequivocalValidationError is the validation error returned by MerkleLogUnequivocal.Validate if the designated constraints aren't met.
func (MerkleLogUnequivocalValidationError) Cause ¶ added in v0.3.8
func (e MerkleLogUnequivocalValidationError) Cause() error
Cause function returns cause value.
func (MerkleLogUnequivocalValidationError) Error ¶ added in v0.3.8
func (e MerkleLogUnequivocalValidationError) Error() string
Error satisfies the builtin error interface
func (MerkleLogUnequivocalValidationError) ErrorName ¶ added in v0.3.8
func (e MerkleLogUnequivocalValidationError) ErrorName() string
ErrorName returns error name.
func (MerkleLogUnequivocalValidationError) Field ¶ added in v0.3.8
func (e MerkleLogUnequivocalValidationError) Field() string
Field function returns field value.
func (MerkleLogUnequivocalValidationError) Key ¶ added in v0.3.8
func (e MerkleLogUnequivocalValidationError) Key() bool
Key function returns key value.
func (MerkleLogUnequivocalValidationError) Reason ¶ added in v0.3.8
func (e MerkleLogUnequivocalValidationError) Reason() string
Reason function returns reason value.
type Principal ¶
type Principal struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*Principal) Descriptor
deprecated
func (*Principal) GetDisplayName ¶
func (*Principal) GetSubject ¶
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
func (*Principal) Validate ¶
Validate checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Principal) ValidateAll ¶
ValidateAll checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrincipalMultiError, or nil if none found.
type PrincipalMultiError ¶
type PrincipalMultiError []error
PrincipalMultiError is an error wrapping multiple validation errors returned by Principal.ValidateAll() if the designated constraints aren't met.
func (PrincipalMultiError) AllErrors ¶
func (m PrincipalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrincipalMultiError) Error ¶
func (m PrincipalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrincipalValidationError ¶
type PrincipalValidationError struct {
// contains filtered or unexported fields
}
PrincipalValidationError is the validation error returned by Principal.Validate if the designated constraints aren't met.
func (PrincipalValidationError) Cause ¶
func (e PrincipalValidationError) Cause() error
Cause function returns cause value.
func (PrincipalValidationError) Error ¶
func (e PrincipalValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalValidationError) ErrorName ¶
func (e PrincipalValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalValidationError) Field ¶
func (e PrincipalValidationError) Field() string
Field function returns field value.
func (PrincipalValidationError) Key ¶
func (e PrincipalValidationError) Key() bool
Key function returns key value.
func (PrincipalValidationError) Reason ¶
func (e PrincipalValidationError) Reason() string
Reason function returns reason value.
type Privacy ¶
type Privacy int32
func PublicBoolToPrivacy ¶
PublicBoolToPrivacy converts boolean to Privacy
func (Privacy) Descriptor ¶
func (Privacy) Descriptor() protoreflect.EnumDescriptor
func (Privacy) EnumDescriptor
deprecated
func (Privacy) Number ¶
func (x Privacy) Number() protoreflect.EnumNumber
func (Privacy) Type ¶
func (Privacy) Type() protoreflect.EnumType
type ProofMechanism ¶
type ProofMechanism int32
const ( ProofMechanism_PROOF_MECHANISM_UNSPECIFIED ProofMechanism = 0 ProofMechanism_RESERVED1 ProofMechanism = 1 ProofMechanism_SIMPLE_HASH ProofMechanism = 2 ProofMechanism_MERKLE_LOG ProofMechanism = 3 )
func (ProofMechanism) Descriptor ¶
func (ProofMechanism) Descriptor() protoreflect.EnumDescriptor
func (ProofMechanism) Enum ¶
func (x ProofMechanism) Enum() *ProofMechanism
func (ProofMechanism) EnumDescriptor
deprecated
func (ProofMechanism) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProofMechanism.Descriptor instead.
func (ProofMechanism) Number ¶
func (x ProofMechanism) Number() protoreflect.EnumNumber
func (ProofMechanism) String ¶
func (x ProofMechanism) String() string
func (ProofMechanism) Type ¶
func (ProofMechanism) Type() protoreflect.EnumType
type PublicAssetURLResponse ¶
type PublicAssetURLResponse struct { Publicurl string `protobuf:"bytes,1,opt,name=publicurl,proto3" json:"publicurl,omitempty"` // contains filtered or unexported fields }
PublicAssetURLResponse is the public url response when calling the :publicurl verb
func (*PublicAssetURLResponse) Descriptor
deprecated
func (*PublicAssetURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicAssetURLResponse.ProtoReflect.Descriptor instead.
func (*PublicAssetURLResponse) GetPublicurl ¶
func (x *PublicAssetURLResponse) GetPublicurl() string
func (*PublicAssetURLResponse) ProtoMessage ¶
func (*PublicAssetURLResponse) ProtoMessage()
func (*PublicAssetURLResponse) ProtoReflect ¶
func (x *PublicAssetURLResponse) ProtoReflect() protoreflect.Message
func (*PublicAssetURLResponse) Reset ¶
func (x *PublicAssetURLResponse) Reset()
func (*PublicAssetURLResponse) String ¶
func (x *PublicAssetURLResponse) String() string
func (*PublicAssetURLResponse) Validate ¶
func (m *PublicAssetURLResponse) Validate() error
Validate checks the field values on PublicAssetURLResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PublicAssetURLResponse) ValidateAll ¶
func (m *PublicAssetURLResponse) ValidateAll() error
ValidateAll checks the field values on PublicAssetURLResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PublicAssetURLResponseMultiError, or nil if none found.
type PublicAssetURLResponseMultiError ¶
type PublicAssetURLResponseMultiError []error
PublicAssetURLResponseMultiError is an error wrapping multiple validation errors returned by PublicAssetURLResponse.ValidateAll() if the designated constraints aren't met.
func (PublicAssetURLResponseMultiError) AllErrors ¶
func (m PublicAssetURLResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublicAssetURLResponseMultiError) Error ¶
func (m PublicAssetURLResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublicAssetURLResponseValidationError ¶
type PublicAssetURLResponseValidationError struct {
// contains filtered or unexported fields
}
PublicAssetURLResponseValidationError is the validation error returned by PublicAssetURLResponse.Validate if the designated constraints aren't met.
func (PublicAssetURLResponseValidationError) Cause ¶
func (e PublicAssetURLResponseValidationError) Cause() error
Cause function returns cause value.
func (PublicAssetURLResponseValidationError) Error ¶
func (e PublicAssetURLResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PublicAssetURLResponseValidationError) ErrorName ¶
func (e PublicAssetURLResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PublicAssetURLResponseValidationError) Field ¶
func (e PublicAssetURLResponseValidationError) Field() string
Field function returns field value.
func (PublicAssetURLResponseValidationError) Key ¶
func (e PublicAssetURLResponseValidationError) Key() bool
Key function returns key value.
func (PublicAssetURLResponseValidationError) Reason ¶
func (e PublicAssetURLResponseValidationError) Reason() string
Reason function returns reason value.
type PublicAssetsClient ¶
type PublicAssetsClient interface { GetPublicEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*EventResponse, error) GetPublicAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*AssetResponse, error) ListPublicEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) }
PublicAssetsClient is the client API for PublicAssets service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPublicAssetsClient ¶
func NewPublicAssetsClient(cc grpc.ClientConnInterface) PublicAssetsClient
type PublicAssetsServer ¶
type PublicAssetsServer interface { GetPublicEvent(context.Context, *GetEventRequest) (*EventResponse, error) GetPublicAsset(context.Context, *GetAssetRequest) (*AssetResponse, error) ListPublicEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) // contains filtered or unexported methods }
PublicAssetsServer is the server API for PublicAssets service. All implementations must embed UnimplementedPublicAssetsServer for forward compatibility
type PublicEventURLResponse ¶
type PublicEventURLResponse struct { Publicurl string `protobuf:"bytes,1,opt,name=publicurl,proto3" json:"publicurl,omitempty"` // contains filtered or unexported fields }
PublicEventURLResponse is the public url response when calling the :publicurl verb
func (*PublicEventURLResponse) Descriptor
deprecated
func (*PublicEventURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicEventURLResponse.ProtoReflect.Descriptor instead.
func (*PublicEventURLResponse) GetPublicurl ¶
func (x *PublicEventURLResponse) GetPublicurl() string
func (*PublicEventURLResponse) ProtoMessage ¶
func (*PublicEventURLResponse) ProtoMessage()
func (*PublicEventURLResponse) ProtoReflect ¶
func (x *PublicEventURLResponse) ProtoReflect() protoreflect.Message
func (*PublicEventURLResponse) Reset ¶
func (x *PublicEventURLResponse) Reset()
func (*PublicEventURLResponse) String ¶
func (x *PublicEventURLResponse) String() string
func (*PublicEventURLResponse) Validate ¶
func (m *PublicEventURLResponse) Validate() error
Validate checks the field values on PublicEventURLResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PublicEventURLResponse) ValidateAll ¶
func (m *PublicEventURLResponse) ValidateAll() error
ValidateAll checks the field values on PublicEventURLResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PublicEventURLResponseMultiError, or nil if none found.
type PublicEventURLResponseMultiError ¶
type PublicEventURLResponseMultiError []error
PublicEventURLResponseMultiError is an error wrapping multiple validation errors returned by PublicEventURLResponse.ValidateAll() if the designated constraints aren't met.
func (PublicEventURLResponseMultiError) AllErrors ¶
func (m PublicEventURLResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublicEventURLResponseMultiError) Error ¶
func (m PublicEventURLResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublicEventURLResponseValidationError ¶
type PublicEventURLResponseValidationError struct {
// contains filtered or unexported fields
}
PublicEventURLResponseValidationError is the validation error returned by PublicEventURLResponse.Validate if the designated constraints aren't met.
func (PublicEventURLResponseValidationError) Cause ¶
func (e PublicEventURLResponseValidationError) Cause() error
Cause function returns cause value.
func (PublicEventURLResponseValidationError) Error ¶
func (e PublicEventURLResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PublicEventURLResponseValidationError) ErrorName ¶
func (e PublicEventURLResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PublicEventURLResponseValidationError) Field ¶
func (e PublicEventURLResponseValidationError) Field() string
Field function returns field value.
func (PublicEventURLResponseValidationError) Key ¶
func (e PublicEventURLResponseValidationError) Key() bool
Key function returns key value.
func (PublicEventURLResponseValidationError) Reason ¶
func (e PublicEventURLResponseValidationError) Reason() string
Reason function returns reason value.
type TrackedStatus ¶
type TrackedStatus int32
const ( TrackedStatus_TRACKED_STATUS_UNSPECIFIED TrackedStatus = 0 TrackedStatus_TRACKED TrackedStatus = 1 TrackedStatus_NOT_TRACKED TrackedStatus = 2 TrackedStatus_ANY TrackedStatus = 3 )
func (TrackedStatus) Descriptor ¶
func (TrackedStatus) Descriptor() protoreflect.EnumDescriptor
func (TrackedStatus) Enum ¶
func (x TrackedStatus) Enum() *TrackedStatus
func (TrackedStatus) EnumDescriptor
deprecated
func (TrackedStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TrackedStatus.Descriptor instead.
func (TrackedStatus) Number ¶
func (x TrackedStatus) Number() protoreflect.EnumNumber
func (TrackedStatus) String ¶
func (x TrackedStatus) String() string
func (TrackedStatus) Type ¶
func (TrackedStatus) Type() protoreflect.EnumType
type UUIDIdentityFactory ¶
type UUIDIdentityFactory struct{}
UUIDIdentityFactory generates UUID based identities
func (*UUIDIdentityFactory) GenerateAssetIdentity ¶
func (u *UUIDIdentityFactory) GenerateAssetIdentity() string
GenerateAssetIdentity produces RRN for asset
func (*UUIDIdentityFactory) GenerateEventIdentity ¶
func (u *UUIDIdentityFactory) GenerateEventIdentity(assetIdentity string) string
GenerateEventIdentity produces RRN for event
type UnimplementedAssetsServer ¶
type UnimplementedAssetsServer struct { }
UnimplementedAssetsServer must be embedded to have forward compatible implementations.
func (UnimplementedAssetsServer) CreateAsset ¶
func (UnimplementedAssetsServer) CreateAsset(context.Context, *CreateAssetRequest) (*AssetResponse, error)
func (UnimplementedAssetsServer) GetAsset ¶
func (UnimplementedAssetsServer) GetAsset(context.Context, *GetAssetRequest) (*AssetResponse, error)
func (UnimplementedAssetsServer) GetAssetPublicURL ¶
func (UnimplementedAssetsServer) GetAssetPublicURL(context.Context, *GetAssetPublicURLRequest) (*PublicAssetURLResponse, error)
func (UnimplementedAssetsServer) GetCaps ¶
func (UnimplementedAssetsServer) GetCaps(context.Context, *caps.GetCapsRequest) (*caps.Caps, error)
func (UnimplementedAssetsServer) GetEvent ¶
func (UnimplementedAssetsServer) GetEvent(context.Context, *GetEventRequest) (*EventResponse, error)
func (UnimplementedAssetsServer) GetEventPublicURL ¶
func (UnimplementedAssetsServer) GetEventPublicURL(context.Context, *GetEventRequest) (*PublicEventURLResponse, error)
func (UnimplementedAssetsServer) ListAssets ¶
func (UnimplementedAssetsServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
func (UnimplementedAssetsServer) ListEvents ¶
func (UnimplementedAssetsServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
type UnimplementedEventsServer ¶
type UnimplementedEventsServer struct { }
UnimplementedEventsServer must be embedded to have forward compatible implementations.
func (UnimplementedEventsServer) Create ¶
func (UnimplementedEventsServer) Create(context.Context, *CreateEventRequest) (*EventResponse, error)
type UnimplementedPublicAssetsServer ¶
type UnimplementedPublicAssetsServer struct { }
UnimplementedPublicAssetsServer must be embedded to have forward compatible implementations.
func (UnimplementedPublicAssetsServer) GetPublicAsset ¶
func (UnimplementedPublicAssetsServer) GetPublicAsset(context.Context, *GetAssetRequest) (*AssetResponse, error)
func (UnimplementedPublicAssetsServer) GetPublicEvent ¶
func (UnimplementedPublicAssetsServer) GetPublicEvent(context.Context, *GetEventRequest) (*EventResponse, error)
func (UnimplementedPublicAssetsServer) ListPublicEvents ¶
func (UnimplementedPublicAssetsServer) ListPublicEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
type UnsafeAssetsServer ¶
type UnsafeAssetsServer interface {
// contains filtered or unexported methods
}
UnsafeAssetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssetsServer will result in compilation errors.
type UnsafeEventsServer ¶
type UnsafeEventsServer interface {
// contains filtered or unexported methods
}
UnsafeEventsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventsServer will result in compilation errors.
type UnsafePublicAssetsServer ¶
type UnsafePublicAssetsServer interface {
// contains filtered or unexported methods
}
UnsafePublicAssetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublicAssetsServer will result in compilation errors.
Source Files ¶
- accesspolicy.go
- assetresponse.pb.go
- assetresponse.pb.validate.go
- assets_helpers.go
- assets_marshaler.go
- createasset.pb.go
- createasset.pb.validate.go
- createevent.pb.go
- createevent.pb.validate.go
- enums.pb.go
- enums.pb.validate.go
- eventmessage.pb.go
- eventmessage.pb.validate.go
- eventresponse.pb.go
- eventresponse.pb.validate.go
- eventresponsejsonapi.pb.go
- eventresponsejsonapi.pb.validate.go
- getasset.pb.go
- getasset.pb.validate.go
- getevent.pb.go
- getevent.pb.validate.go
- identity.go
- listassets.pb.go
- listassets.pb.validate.go
- listevents.pb.go
- listevents.pb.validate.go
- merklelogentry.pb.go
- merklelogentry.pb.validate.go
- miscmessages.pb.go
- miscmessages.pb.validate.go
- principal.pb.go
- principal.pb.validate.go
- publicassets.pb.go
- publicassets.pb.gw.go
- publicassets.pb.validate.go
- publicassets_grpc.pb.go
- service.pb.go
- service.pb.gw.go
- service.pb.validate.go
- service_grpc.pb.go