Documentation ¶
Index ¶
- Constants
- func NewGoogleContactsDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
- func NewGoogleGroupsDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
- func NewGoogleUsersDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
- type Contact
- type Email
- type Entries
- type GoogleAuth
- type GoogleContacts
- func (g *GoogleContacts) ApplyChangeSet(changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
- func (g *GoogleContacts) ForSet(syncSetJson json.RawMessage) error
- func (g *GoogleContacts) GetIDField() string
- func (g *GoogleContacts) ListUsers() ([]personnel_sync.Person, error)
- type GoogleContactsConfig
- type GoogleGroups
- func (g *GoogleGroups) ApplyChangeSet(changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
- func (g *GoogleGroups) ForSet(syncSetJson json.RawMessage) error
- func (g *GoogleGroups) GetIDField() string
- func (g *GoogleGroups) ListUsers() ([]personnel_sync.Person, error)
- type GoogleGroupsConfig
- type GoogleUsers
- func (g *GoogleUsers) ApplyChangeSet(changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
- func (g *GoogleUsers) ForSet(syncSetJson json.RawMessage) error
- func (g *GoogleUsers) GetIDField() string
- func (g *GoogleUsers) ListUsers() ([]personnel_sync.Person, error)
- type GoogleUsersConfig
- type GroupSyncSet
- type Link
- type Name
- type Organization
- type PhoneNumber
- type Where
Constants ¶
View Source
const DefaultBatchDelaySeconds = 3
View Source
const DefaultBatchSize = 10
View Source
const MaxQuerySize = 10000
View Source
const RoleManager = "MANAGER"
View Source
const RoleMember = "MEMBER"
View Source
const RoleOwner = "OWNER"
Variables ¶
This section is empty.
Functions ¶
func NewGoogleContactsDestination ¶
func NewGoogleContactsDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
NewGoogleContactsDestination creates a new GoogleContacts instance
func NewGoogleGroupsDestination ¶
func NewGoogleGroupsDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
func NewGoogleUsersDestination ¶
func NewGoogleUsersDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
Types ¶
type Contact ¶
type Contact struct { XMLName xml.Name `xml:"entry"` ID string `xml:"id"` Links []Link `xml:"link"` Etag string `xml:"etag,attr"` Title string `xml:"title"` Name Name `xml:"name"` Emails []Email `xml:"email"` PhoneNumbers []PhoneNumber `xml:"phoneNumber"` Organization Organization `xml:"organization"` Where Where `xml:"where"` Notes string `xml:"content"` }
type GoogleAuth ¶
type GoogleAuth 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"` }
type GoogleContacts ¶
type GoogleContacts struct { DestinationConfig personnel_sync.DestinationConfig GoogleContactsConfig GoogleContactsConfig Client http.Client }
func (*GoogleContacts) ApplyChangeSet ¶
func (g *GoogleContacts) ApplyChangeSet( changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
ApplyChangeSet executes all of the configured sync tasks (create, update, and/or delete)
func (*GoogleContacts) ForSet ¶
func (g *GoogleContacts) ForSet(syncSetJson json.RawMessage) error
ForSet is not implemented for this destination. Only one sync set may be defined in config.json.
func (*GoogleContacts) GetIDField ¶
func (g *GoogleContacts) GetIDField() string
GetIDField returns the property name to be used as the person ID
func (*GoogleContacts) ListUsers ¶
func (g *GoogleContacts) ListUsers() ([]personnel_sync.Person, error)
ListUsers returns all users (contacts) in the destination
type GoogleContactsConfig ¶
type GoogleContactsConfig struct { DelegatedAdminEmail string Domain string GoogleAuth GoogleAuth BatchSize int BatchDelaySeconds int }
type GoogleGroups ¶
type GoogleGroups struct { DestinationConfig personnel_sync.DestinationConfig GoogleGroupsConfig GoogleGroupsConfig AdminService admin.Service GroupSyncSet GroupSyncSet BatchSize int BatchDelaySeconds int }
func (*GoogleGroups) ApplyChangeSet ¶
func (g *GoogleGroups) ApplyChangeSet( changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
func (*GoogleGroups) ForSet ¶
func (g *GoogleGroups) ForSet(syncSetJson json.RawMessage) error
func (*GoogleGroups) GetIDField ¶
func (g *GoogleGroups) GetIDField() string
func (*GoogleGroups) ListUsers ¶
func (g *GoogleGroups) ListUsers() ([]personnel_sync.Person, error)
type GoogleGroupsConfig ¶
type GoogleGroupsConfig struct { DelegatedAdminEmail string GoogleAuth GoogleAuth }
type GoogleUsers ¶
type GoogleUsers struct { GoogleUsersConfig GoogleUsersConfig AdminService admin.Service BatchSize int BatchDelaySeconds int }
func (*GoogleUsers) ApplyChangeSet ¶
func (g *GoogleUsers) ApplyChangeSet( changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
func (*GoogleUsers) ForSet ¶
func (g *GoogleUsers) ForSet(syncSetJson json.RawMessage) error
func (*GoogleUsers) GetIDField ¶
func (g *GoogleUsers) GetIDField() string
func (*GoogleUsers) ListUsers ¶
func (g *GoogleUsers) ListUsers() ([]personnel_sync.Person, error)
type GoogleUsersConfig ¶
type GoogleUsersConfig struct { DelegatedAdminEmail string GoogleAuth GoogleAuth }
type GroupSyncSet ¶
type Organization ¶
type PhoneNumber ¶
Click to show internal directories.
Click to hide internal directories.