emailaudit

package
Version: v0.0.0-...-0c1b395 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FeedComplianceAuditScope FeedComplianceAuditScope OAuth2 Scope
	FeedComplianceAuditScope = "https://apps-apis.google.com/a/feeds/compliance/audit/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MailMonitor

type MailMonitor struct {
	DomainName     string
	SourceUserName string
	DestUserName   string
	BeginDate      *time.Time
	EndDate        *time.Time
	MonitorLevels  MailMonitorLevels
	Updated        *time.Time
}

MailMonitor MailMonitor

func NewMailMonitor

func NewMailMonitor(domainName string,
	sourceUserName string,
	destUserName string,
	endDate time.Time,
	monitorLevels MailMonitorLevels,
) MailMonitor

NewMailMonitor returns new MailMonitor

func (*MailMonitor) URL

func (req *MailMonitor) URL() string

URL returns URL

type MailMonitorLevel

type MailMonitorLevel string

MailMonitorLevel MailMonitorLevel

const (
	// NoneLevel HEADER_ONLY
	NoneLevel MailMonitorLevel = ""
	// HeaderOnlyLevel HEADER_ONLY
	HeaderOnlyLevel MailMonitorLevel = "HEADER_ONLY"
	// FullMessageLevel FULL_MESSAGE
	FullMessageLevel MailMonitorLevel = "FULL_MESSAGE"
)

type MailMonitorLevels

type MailMonitorLevels struct {
	IncomingEmail MailMonitorLevel
	OutgoingEmail MailMonitorLevel
	Draft         MailMonitorLevel
	Chat          MailMonitorLevel
}

MailMonitorLevels MailMonitorLevels

type MailMonitorService

type MailMonitorService struct {
	// contains filtered or unexported fields
}

MailMonitorService MailMonitorService

func NewMailMonitorService

func NewMailMonitorService(s *Service) *MailMonitorService

NewMailMonitorService returns new MailMonitorService

func (*MailMonitorService) Disable

func (svc *MailMonitorService) Disable(domain string, sourceUserName string, destUserName string) error

Disable Deleting an email monitor - https://developers.google.com/admin-sdk/email-audit/#deleting_an_email_monitor

func (*MailMonitorService) List

func (svc *MailMonitorService) List(domain string, sourceUserName string) ([]MailMonitor, error)

List Retrieving all email monitors of a source user - https://developers.google.com/admin-sdk/email-audit/#retrieving_all_email_monitors_of_a_source_user

func (*MailMonitorService) Update

func (svc *MailMonitorService) Update(domainName string, sourceUserName string, destUserName string, endDate time.Time, monitorLevels MailMonitorLevels) (*MailMonitor, error)

Update creates or updates EmailMonitor - https://developers.google.com/admin-sdk/email-audit/#creating_a_new_email_monitor - https://developers.google.com/admin-sdk/email-audit/#updating_an_email_monitor

type Service

type Service struct {
	MailMonitor *MailMonitorService
	UserAgent   string
	// contains filtered or unexported fields
}

Service Service

func New

func New(client *http.Client) (*Service, error)

New returns new Service

Jump to

Keyboard shortcuts

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