gsuite

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options map[string]interface{}) (collector.Client, error)

New will initialize and return an authorized Client

Types

type Client

type Client struct {
	collector.Client
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func (*Client) ClientType added in v0.5.0

func (gsuiteClient *Client) ClientType() collector.ClientType

func (*Client) Exit

func (gsuiteClient *Client) Exit() (err error)

func (*Client) Poll

func (gsuiteClient *Client) Poll(timestamp time.Time, resultsChannel chan<- string, pollOffset int) (count int, currentTimestamp time.Time, err error)

Poll will query the source and pass the results back through a result channel

func (*Client) Stream

func (gsuiteClient *Client) Stream(streamChannel chan<- string) (cancelFunc func(), err error)

type GoogleServiceAccountCredentials

type GoogleServiceAccountCredentials struct {
	Type                    string `json:"type"`
	ProjectId               string `json:"project_id"`
	PrivateKeyId            string `json:"private_key_id"`
	PrivateKey              string `json:"private_key"`
	ClientEmail             string `json:"client_email"`
	ClientId                string `json:"client_id"`
	AuthUri                 string `json:"auth_uri"`
	TokenUri                string `json:"token_uri"`
	AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url"`
	ClientX509CertUrl       string `json:"client_x509_cert_url"`
}

Jump to

Keyboard shortcuts

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