v.io: v.io/x/ref/services/identity/internal/auditor Index | Files

package auditor

import "v.io/x/ref/services/identity/internal/auditor"

Index

Package Files

blessing_auditor.go mock_auditor.go sql_database.go

type BlessingEntry Uses

type BlessingEntry struct {
    Email              string
    Caveats            []security.Caveat
    Timestamp          time.Time // Time when the blesings were created.
    RevocationCaveatID string
    Blessings          security.Blessings
    DecodeError        error
}

BlessingEntry contains important logged information about a blessed principal.

type BlessingLogReader Uses

type BlessingLogReader interface {
    Read(ctx *context.T, email string) <-chan BlessingEntry
}

BlessingLogReader provides the Read method to read audit logs. Read returns a channel of BlessingEntrys whose extension matches the provided email.

func NewMockBlessingAuditor Uses

func NewMockBlessingAuditor() (audit.Auditor, BlessingLogReader)

func NewSQLBlessingAuditor Uses

func NewSQLBlessingAuditor(ctx *context.T, sqlDB *sql.DB) (audit.Auditor, BlessingLogReader, error)

NewSQLBlessingAuditor returns an auditor for wrapping a principal with, and a BlessingLogReader for reading the audits made by that auditor. The config is used to construct the connection to the SQL database that the auditor and BlessingLogReader use.

Package auditor imports 9 packages (graph) and is imported by 21 packages. Updated 2020-09-08. Refresh now. Tools for package owners.