Documentation ¶
Index ¶
- Constants
- type OrgBase
- type OrgCreated
- type OrgUserInvited
- type OrgUserJoined
- type OrgUserLeft
- type UserBase
- type UserLoggedIn
- type UserSignedUp
- type WorkflowContractAttached
- type WorkflowContractBase
- type WorkflowContractCreated
- type WorkflowContractDeleted
- type WorkflowContractDetached
- type WorkflowContractUpdated
Constants ¶
View Source
const ( UserType auditor.TargetType = "User" UserSignedUpActionType string = "SignedUp" UserLoggedInActionType string = "LoggedIn" )
View Source
const ( WorkflowContractType auditor.TargetType = "WorkflowContract" WorkflowContractCreatedActionType string = "WorkflowContractCreated" WorkflowContractUpdatedActionType string = "WorkflowContractUpdated" WorkflowContractDeletedActionType string = "WorkflowContractDeleted" WorkflowContractContractAttachedActionType string = "WorkflowContractContractAttached" WorkflowContractContractDetachedActionType string = "WorkflowContractContractDetached" )
View Source
const (
OrgType auditor.TargetType = "Organization"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrgBase ¶ added in v0.137.0
type OrgBase struct { OrgID *uuid.UUID `json:"org_id,omitempty"` OrgName string `json:"org_name,omitempty"` }
func (*OrgBase) ActionInfo ¶ added in v0.137.0
func (p *OrgBase) ActionInfo() (json.RawMessage, error)
func (*OrgBase) RequiresActor ¶ added in v0.137.0
func (*OrgBase) TargetType ¶ added in v0.137.0
func (p *OrgBase) TargetType() auditor.TargetType
type OrgCreated ¶ added in v0.137.0
type OrgCreated struct {
*OrgBase
}
Org created
func (*OrgCreated) ActionType ¶ added in v0.137.0
func (p *OrgCreated) ActionType() string
func (*OrgCreated) Description ¶ added in v0.137.0
func (p *OrgCreated) Description() string
type OrgUserInvited ¶ added in v0.137.0
user got invited to the organization
func (*OrgUserInvited) ActionInfo ¶ added in v0.137.0
func (p *OrgUserInvited) ActionInfo() (json.RawMessage, error)
func (*OrgUserInvited) ActionType ¶ added in v0.137.0
func (p *OrgUserInvited) ActionType() string
func (*OrgUserInvited) Description ¶ added in v0.137.0
func (p *OrgUserInvited) Description() string
type OrgUserJoined ¶ added in v0.137.0
type OrgUserJoined struct {
*OrgBase
}
user joined the organization
func (*OrgUserJoined) ActionType ¶ added in v0.137.0
func (p *OrgUserJoined) ActionType() string
func (*OrgUserJoined) Description ¶ added in v0.137.0
func (p *OrgUserJoined) Description() string
type OrgUserLeft ¶ added in v0.137.0
type OrgUserLeft struct {
*OrgBase
}
user left the organization
func (*OrgUserLeft) ActionType ¶ added in v0.137.0
func (p *OrgUserLeft) ActionType() string
func (*OrgUserLeft) Description ¶ added in v0.137.0
func (p *OrgUserLeft) Description() string
type UserBase ¶
type UserBase struct { UserID *uuid.UUID `json:"user_id,omitempty"` Email string `json:"email,omitempty"` }
UserBase is the base struct for policy events
func (*UserBase) ActionInfo ¶
func (p *UserBase) ActionInfo() (json.RawMessage, error)
func (*UserBase) RequiresActor ¶ added in v0.137.0
func (*UserBase) TargetType ¶
func (p *UserBase) TargetType() auditor.TargetType
type UserLoggedIn ¶
type UserLoggedIn struct { *UserBase // This timestamp can be used to generate a new digest for the user and burst the cache LoggedIn time.Time }
func (*UserLoggedIn) ActionInfo ¶
func (p *UserLoggedIn) ActionInfo() (json.RawMessage, error)
func (*UserLoggedIn) ActionType ¶
func (p *UserLoggedIn) ActionType() string
func (*UserLoggedIn) Description ¶
func (p *UserLoggedIn) Description() string
type UserSignedUp ¶
type UserSignedUp struct {
*UserBase
}
func (*UserSignedUp) ActionType ¶
func (p *UserSignedUp) ActionType() string
func (*UserSignedUp) Description ¶
func (p *UserSignedUp) Description() string
type WorkflowContractAttached ¶ added in v0.142.0
type WorkflowContractAttached struct { *WorkflowContractBase WorkflowID *uuid.UUID `json:"workflow_id,omitempty"` WorkflowName string `json:"workflow_name,omitempty"` }
func (*WorkflowContractAttached) ActionInfo ¶ added in v0.142.0
func (w *WorkflowContractAttached) ActionInfo() (json.RawMessage, error)
func (*WorkflowContractAttached) ActionType ¶ added in v0.142.0
func (w *WorkflowContractAttached) ActionType() string
func (*WorkflowContractAttached) Description ¶ added in v0.142.0
func (w *WorkflowContractAttached) Description() string
type WorkflowContractBase ¶ added in v0.142.0
type WorkflowContractBase struct { WorkflowContractID *uuid.UUID `json:"workflow_contract_id,omitempty"` WorkflowContractName string `json:"workflow_contract_name,omitempty"` }
WorkflowContractBase is the base struct for workflow contract events
func (*WorkflowContractBase) ActionInfo ¶ added in v0.142.0
func (w *WorkflowContractBase) ActionInfo() (json.RawMessage, error)
func (*WorkflowContractBase) RequiresActor ¶ added in v0.142.0
func (w *WorkflowContractBase) RequiresActor() bool
func (*WorkflowContractBase) TargetID ¶ added in v0.142.0
func (w *WorkflowContractBase) TargetID() *uuid.UUID
func (*WorkflowContractBase) TargetType ¶ added in v0.142.0
func (w *WorkflowContractBase) TargetType() auditor.TargetType
type WorkflowContractCreated ¶ added in v0.142.0
type WorkflowContractCreated struct {
*WorkflowContractBase
}
func (*WorkflowContractCreated) ActionInfo ¶ added in v0.142.0
func (w *WorkflowContractCreated) ActionInfo() (json.RawMessage, error)
func (*WorkflowContractCreated) ActionType ¶ added in v0.142.0
func (w *WorkflowContractCreated) ActionType() string
func (*WorkflowContractCreated) Description ¶ added in v0.142.0
func (w *WorkflowContractCreated) Description() string
func (*WorkflowContractCreated) TargetID ¶ added in v0.142.0
func (w *WorkflowContractCreated) TargetID() *uuid.UUID
type WorkflowContractDeleted ¶ added in v0.142.0
type WorkflowContractDeleted struct {
*WorkflowContractBase
}
func (*WorkflowContractDeleted) ActionInfo ¶ added in v0.142.0
func (w *WorkflowContractDeleted) ActionInfo() (json.RawMessage, error)
func (*WorkflowContractDeleted) ActionType ¶ added in v0.142.0
func (w *WorkflowContractDeleted) ActionType() string
func (*WorkflowContractDeleted) Description ¶ added in v0.142.0
func (w *WorkflowContractDeleted) Description() string
type WorkflowContractDetached ¶ added in v0.142.0
type WorkflowContractDetached struct { *WorkflowContractBase WorkflowID *uuid.UUID `json:"workflow_id,omitempty"` WorkflowName string `json:"workflow_name,omitempty"` }
func (*WorkflowContractDetached) ActionInfo ¶ added in v0.142.0
func (w *WorkflowContractDetached) ActionInfo() (json.RawMessage, error)
func (*WorkflowContractDetached) ActionType ¶ added in v0.142.0
func (w *WorkflowContractDetached) ActionType() string
func (*WorkflowContractDetached) Description ¶ added in v0.142.0
func (w *WorkflowContractDetached) Description() string
type WorkflowContractUpdated ¶ added in v0.142.0
type WorkflowContractUpdated struct { *WorkflowContractBase NewRevisionID *uuid.UUID `json:"new_revision_id,omitempty"` NewRevision *int `json:"new_revision,omitempty"` NewDescription *string `json:"new_description,omitempty"` }
func (*WorkflowContractUpdated) ActionInfo ¶ added in v0.142.0
func (w *WorkflowContractUpdated) ActionInfo() (json.RawMessage, error)
func (*WorkflowContractUpdated) ActionType ¶ added in v0.142.0
func (w *WorkflowContractUpdated) ActionType() string
func (*WorkflowContractUpdated) Description ¶ added in v0.142.0
func (w *WorkflowContractUpdated) Description() string
Click to show internal directories.
Click to hide internal directories.