Versions in this module Expand all Collapse all v0 v0.8.0 Jun 30, 2023 Changes in this version + type Activity struct + AccountID string + AccountType string + Authorizations pq.StringArray + CreatedAt time.Time + ID uuid.UUID + Metadata datatypes.JSON + Provider *Provider + ProviderActivityID string + ProviderID uuid.UUID + RelatedPermissions pq.StringArray + Resource *Resource + ResourceID uuid.UUID + Timestamp time.Time + Type string + func (Activity) TableName() string + func (m *Activity) FromDomain(a *domain.Activity) error + func (m *Activity) ToDomain(a *domain.Activity) error + type Appeal struct + AccountID string + AccountType string + Approvals []*Approval + CreatedAt time.Time + CreatedBy string + Creator datatypes.JSON + DeletedAt gorm.DeletedAt + Description string + Details datatypes.JSON + Grant *Grant + ID uuid.UUID + Labels datatypes.JSON + Options datatypes.JSON + Permissions pq.StringArray + Policy Policy + PolicyID string + PolicyVersion uint + Resource *Resource + ResourceID string + Role string + Status string + UpdatedAt time.Time + func (m *Appeal) FromDomain(a *domain.Appeal) error + func (m *Appeal) ToDomain() (*domain.Appeal, error) + type Approval struct + Actor *string + Appeal *Appeal + AppealID string + Approvers []Approver + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID uuid.UUID + Index int + Name string + PolicyID string + PolicyVersion uint + Reason string + Status string + UpdatedAt time.Time + func (m *Approval) FromDomain(a *domain.Approval) error + func (m *Approval) ToDomain() (*domain.Approval, error) + type Approver struct + AppealID string + ApprovalID string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Email string + ID uuid.UUID + UpdatedAt time.Time + func (m *Approver) FromDomain(a *domain.Approver) error + func (m *Approver) ToDomain() *domain.Approver + type Grant struct + AccountID string + AccountType string + Appeal *Appeal + AppealID sql.NullString + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ExpirationDate time.Time + ExpirationDateReason sql.NullString + ID uuid.UUID + IsPermanent bool + Owner string + Permissions pq.StringArray + RequestedExpirationDate sql.NullTime + Resource *Resource + ResourceID string + RevokeReason string + RevokedAt time.Time + RevokedBy string + Role string + Source string + Status string + StatusInProvider string + UpdatedAt time.Time + func (m *Grant) FromDomain(g domain.Grant) error + func (m Grant) ToDomain() (*domain.Grant, error) + type Policy struct + AppealConfig datatypes.JSON + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + IAM datatypes.JSON + ID string + Labels datatypes.JSON + Requirements datatypes.JSON + Steps datatypes.JSON + UpdatedAt time.Time + Version uint + func (Policy) TableName() string + func (m *Policy) FromDomain(p *domain.Policy) error + func (m *Policy) ToDomain() (*domain.Policy, error) + type Provider struct + Config datatypes.JSON + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID uuid.UUID + Type string + URN string + UpdatedAt time.Time + func (Provider) TableName() string + func (m *Provider) FromDomain(p *domain.Provider) error + func (m *Provider) ToDomain() (*domain.Provider, error) + type Resource struct + Children []Resource + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Details datatypes.JSON + ID uuid.UUID + IsDeleted bool + Labels datatypes.JSON + Name string + ParentID *string + Provider Provider + ProviderType string + ProviderURN string + Type string + URN string + UpdatedAt time.Time + func (Resource) TableName() string + func (m *Resource) FromDomain(r *domain.Resource) error + func (m *Resource) ToDomain() (*domain.Resource, error) + func (r *Resource) BeforeCreate(tx *gorm.DB) error