Documentation
¶
Index ¶
Constants ¶
View Source
const UserType auditor.TargetType = "User"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) 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
Click to show internal directories.
Click to hide internal directories.