Documentation ¶
Index ¶
- type AuditEventList
- type AuditEventMemberAdded
- type AuditEventMemberRemoved
- type AuditEventMemberSetRole
- type AuditEventTeamAddRepository
- type AuditEventTeamRemoveRepository
- type AuditEventTeamSetAlertsSlackChannel
- type AuditEventTeamSetDefaultSlackChannel
- type AuditEventTeamSetPurpose
- type Auditor
- func (a *Auditor) AppDeleted(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) AppRestarted(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) GetEventsForTeam(ctx context.Context, obj *model.Team, offset *int, limit *int, ...) (*AuditEventList, error)
- func (a *Auditor) NaisjobDeleted(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) SecretCreated(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) SecretDeleted(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) SecretUpdated(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamAddRepository(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamCreated(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug) error
- func (a *Auditor) TeamDeletionConfirmed(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug) error
- func (a *Auditor) TeamDeletionRequested(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug) error
- func (a *Auditor) TeamMemberAdded(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamMemberRemoved(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamMemberSetRole(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamRemoveRepository(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamRotatedDeployKey(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug) error
- func (a *Auditor) TeamSetAlertsSlackChannel(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamSetDefaultSlackChannel(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamSetPurpose(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) TeamSynchronized(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug) error
- func (a *Auditor) UnleashCreated(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- func (a *Auditor) UnleashUpdated(ctx context.Context, actor authz.AuthenticatedUser, team slug.Slug, ...) error
- type BaseAuditEvent
- func (e BaseAuditEvent) GetAction() string
- func (e BaseAuditEvent) GetActor() string
- func (e BaseAuditEvent) GetCreatedAt() time.Time
- func (e BaseAuditEvent) GetData() any
- func (e BaseAuditEvent) GetEnvironment() *string
- func (e BaseAuditEvent) GetResourceName() string
- func (e BaseAuditEvent) GetResourceType() string
- func (e BaseAuditEvent) GetTeam() *slug.Slug
- func (BaseAuditEvent) IsAuditEvent()
- func (BaseAuditEvent) IsAuditEventNode()
- func (e BaseAuditEvent) WithMessage(message string) BaseAuditEvent
- type BaseAuditEventGQLVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEventList ¶
type AuditEventList struct { Nodes []model.AuditEventNode `json:"nodes"` PageInfo model.PageInfo `json:"pageInfo"` }
type AuditEventMemberAdded ¶
type AuditEventMemberAdded struct { BaseAuditEvent Data model.AuditEventMemberAddedData }
func (AuditEventMemberAdded) GetData ¶
func (a AuditEventMemberAdded) GetData() any
type AuditEventMemberRemoved ¶
type AuditEventMemberRemoved struct { BaseAuditEvent Data model.AuditEventMemberRemovedData }
func (AuditEventMemberRemoved) GetData ¶
func (a AuditEventMemberRemoved) GetData() any
type AuditEventMemberSetRole ¶
type AuditEventMemberSetRole struct { BaseAuditEvent Data model.AuditEventMemberSetRoleData }
func (AuditEventMemberSetRole) GetData ¶
func (a AuditEventMemberSetRole) GetData() any
type AuditEventTeamAddRepository ¶
type AuditEventTeamAddRepository struct { BaseAuditEvent Data model.AuditEventTeamAddRepositoryData }
func (AuditEventTeamAddRepository) GetData ¶
func (a AuditEventTeamAddRepository) GetData() any
type AuditEventTeamRemoveRepository ¶
type AuditEventTeamRemoveRepository struct { BaseAuditEvent Data model.AuditEventTeamRemoveRepositoryData }
func (AuditEventTeamRemoveRepository) GetData ¶
func (a AuditEventTeamRemoveRepository) GetData() any
type AuditEventTeamSetAlertsSlackChannel ¶
type AuditEventTeamSetAlertsSlackChannel struct { BaseAuditEvent Data model.AuditEventTeamSetAlertsSlackChannelData }
func (AuditEventTeamSetAlertsSlackChannel) GetData ¶
func (a AuditEventTeamSetAlertsSlackChannel) GetData() any
type AuditEventTeamSetDefaultSlackChannel ¶
type AuditEventTeamSetDefaultSlackChannel struct { BaseAuditEvent Data model.AuditEventTeamSetDefaultSlackChannelData }
func (AuditEventTeamSetDefaultSlackChannel) GetData ¶
func (a AuditEventTeamSetDefaultSlackChannel) GetData() any
type AuditEventTeamSetPurpose ¶
type AuditEventTeamSetPurpose struct { BaseAuditEvent Data model.AuditEventTeamSetPurposeData }
func (AuditEventTeamSetPurpose) GetData ¶
func (a AuditEventTeamSetPurpose) GetData() any
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
Auditor mediates persistence of audit events.
func NewAuditor ¶
func (*Auditor) AppDeleted ¶
func (*Auditor) AppRestarted ¶
func (*Auditor) GetEventsForTeam ¶
func (*Auditor) NaisjobDeleted ¶
func (*Auditor) SecretCreated ¶
func (*Auditor) SecretDeleted ¶
func (*Auditor) SecretUpdated ¶
func (*Auditor) TeamAddRepository ¶
func (*Auditor) TeamCreated ¶
func (*Auditor) TeamDeletionConfirmed ¶
func (*Auditor) TeamDeletionRequested ¶
func (*Auditor) TeamMemberAdded ¶
func (*Auditor) TeamMemberRemoved ¶
func (*Auditor) TeamMemberSetRole ¶
func (*Auditor) TeamRemoveRepository ¶
func (*Auditor) TeamRotatedDeployKey ¶
func (*Auditor) TeamSetAlertsSlackChannel ¶
func (*Auditor) TeamSetDefaultSlackChannel ¶
func (*Auditor) TeamSetPurpose ¶
func (*Auditor) TeamSynchronized ¶
func (*Auditor) UnleashCreated ¶
type BaseAuditEvent ¶
type BaseAuditEvent struct { ID scalar.Ident `json:"id"` Action model.AuditEventAction `json:"action"` Actor string `json:"actor"` CreatedAt time.Time `json:"createdAt"` Message string `json:"message"` ResourceType model.AuditEventResourceType `json:"resourceType"` ResourceName string `json:"resourceName"` GQLVars BaseAuditEventGQLVars `json:"-"` }
BaseAuditEvent is the base type for audit events.
func (BaseAuditEvent) GetAction ¶
func (e BaseAuditEvent) GetAction() string
func (BaseAuditEvent) GetActor ¶
func (e BaseAuditEvent) GetActor() string
func (BaseAuditEvent) GetCreatedAt ¶
func (e BaseAuditEvent) GetCreatedAt() time.Time
func (BaseAuditEvent) GetData ¶
func (e BaseAuditEvent) GetData() any
func (BaseAuditEvent) GetEnvironment ¶
func (e BaseAuditEvent) GetEnvironment() *string
func (BaseAuditEvent) GetResourceName ¶
func (e BaseAuditEvent) GetResourceName() string
func (BaseAuditEvent) GetResourceType ¶
func (e BaseAuditEvent) GetResourceType() string
func (BaseAuditEvent) GetTeam ¶
func (e BaseAuditEvent) GetTeam() *slug.Slug
func (BaseAuditEvent) IsAuditEvent ¶
func (BaseAuditEvent) IsAuditEvent()
func (BaseAuditEvent) IsAuditEventNode ¶
func (BaseAuditEvent) IsAuditEventNode()
func (BaseAuditEvent) WithMessage ¶
func (e BaseAuditEvent) WithMessage(message string) BaseAuditEvent
type BaseAuditEventGQLVars ¶
Click to show internal directories.
Click to hide internal directories.