Documentation
¶
Overview ¶
Package auditlogsapi provides implementations of tokens API defined in /proto/auditlogs/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAuditlogsPathFactory ¶ added in v0.9.3
func ListAuditlogsPathFactory(auditlogsPath string, logs *AuditLogs) *handlerfactory.Options
ListAuditlogsPathFactory creates a http handler for "/identity/v1alpha/users/{user}/auditlogs"
func ToAccessLog ¶
ToAccessLog converts an entry for access log to an audit log. Assumes that e is not nil.
func ToAuditLog ¶
ToAuditLog converts a Stackdriver log entry into an AuditLog.
Types ¶
type AuditLogs ¶
type AuditLogs struct {
// contains filtered or unexported fields
}
AuditLogs is implments the audit logs API for DAM. Currently support GCP tokens.
func NewAuditLogs ¶
func NewAuditLogs(sdl lgrpcpb.LoggingServiceV2Client, projectID, serviceName string) *AuditLogs
NewAuditLogs creates a new AuditLogs.
func (*AuditLogs) ListAuditLogs ¶
func (s *AuditLogs) ListAuditLogs(ctx context.Context, req *apb.ListAuditLogsRequest) (*apb.ListAuditLogsResponse, error)
ListAuditLogs lists the audit logs.
Click to show internal directories.
Click to hide internal directories.