auditlogsapi

package
v0.9.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

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 ToAuditLog

func ToAuditLog(e *lepb.LogEntry) (*apb.AuditLog, error)

ToAuditLog converts a Stackdriver log entry into an AuditLog.

func ToPolicyLog

func ToPolicyLog(e *lepb.LogEntry) (*apb.AuditLog, error)

ToPolicyLog converts an entry for access log to an audit log. Assumes that e is not nil.

func ToRequestLog added in v0.9.4

func ToRequestLog(e *lepb.LogEntry) (*apb.AuditLog, error)

ToRequestLog converts an entry for access log to an audit log. Assumes that e is not nil.

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

ListAuditLogs lists the audit logs.

Directories

Path Synopsis
Binary itest is an integration test for the API with the Stackdriver.
Binary itest is an integration test for the API with the Stackdriver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL