Documentation
¶
Index ¶
- Variables
- func DecodeData[T any](event Event) (T, error)
- func Verify(body []byte, header, secret string, now time.Time, tolerance time.Duration) error
- type ApplicationLifecycleData
- type DelegationCreatedData
- type DelegationExchangedData
- type DelegationRevokedData
- type EntitlementGrantedData
- type Event
- type LocalEntitlementRequestApprovedData
- type LocalEntitlementRequestCreatedData
- type NamedData
- type OAuthConsentRevokedData
- type OrganizationRestoredData
- type OrganizationRetiredData
- type StorageObjectData
- type StorageProviderData
- type UserCreatedData
- type UserIDData
- type UserStateData
- type UserVerificationData
- type WebhookTestData
- type WorkspaceInvitationAcceptedData
- type WorkspaceInvitationCreatedData
- type WorkspaceOwnerTransferredData
Constants ¶
This section is empty.
Variables ¶
View Source
var PlatformEventVersions = map[string]string{
"organization.created": "1.0", "organization.retired": "1.0", "organization.restored": "1.0",
"application.created": "1.0", "application.retired": "1.0", "application.restored": "1.0",
"delegation.created": "1.0", "delegation.exchanged": "1.0", "delegation.revoked": "1.0",
"entitlement.granted": "1.0", "local_entitlement_request.created": "1.0", "local_entitlement_request.approved": "1.0",
"oauth.consent_revoked": "1.0", "platform93.webhook.test": "1.0", "user.created": "1.0",
"storage.object.upload_requested": "1.0", "storage.object.ready": "1.0", "storage.object.deleted": "1.0",
"storage.provider.verified": "1.0", "storage.provider.disabled": "1.0",
"user.email_verified": "1.0", "user.email_unverified": "1.0", "user.organization_verified": "1.0",
"user.organization_unverified": "1.0", "user.email_changed": "1.0", "user.password_reset": "1.0",
"user.pending_deletion": "1.0", "user.anonymized": "1.0", "user.deleted": "1.0",
"user.suspended": "1.0", "user.restored": "1.0", "workspace.invitation_created": "1.0",
"workspace.invitation_accepted": "1.0", "workspace.owner_transferred": "1.0",
}
Functions ¶
func DecodeData ¶
Types ¶
type DelegationCreatedData ¶
type DelegationExchangedData ¶
type DelegationRevokedData ¶
type DelegationRevokedData struct {
DelegationID string `json:"delegation_id"`
}
type EntitlementGrantedData ¶
type Event ¶
type Event struct {
SpecVersion string `json:"specversion"`
ID string `json:"id"`
Source string `json:"source"`
Type string `json:"type"`
ContractSource string `json:"contract_source"`
Time time.Time `json:"time"`
ApplicationID string `json:"application_id"`
SchemaVersion string `json:"schema_version"`
Subject *string `json:"subject"`
Actor json.RawMessage `json:"actor"`
CorrelationID *string `json:"correlation_id"`
CausationID *string `json:"causation_id"`
Data json.RawMessage `json:"data"`
}
func VerifyAndDecode ¶
func (Event) IsPlatform ¶
func (Event) SupportsKnownVersion ¶
type OAuthConsentRevokedData ¶
type OrganizationRestoredData ¶
type OrganizationRestoredData struct {
DescendantsRestored bool `json:"descendants_restored"`
}
type OrganizationRetiredData ¶
type OrganizationRetiredData struct {
ApplicationCount int `json:"application_count"`
}
type StorageObjectData ¶
type StorageProviderData ¶
type UserCreatedData ¶
type UserIDData ¶
type UserIDData struct {
UserID string `json:"user_id"`
}
type UserStateData ¶
type UserVerificationData ¶
type WebhookTestData ¶
Click to show internal directories.
Click to hide internal directories.