googledest

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBatchDelaySeconds = 3
View Source
const DefaultBatchSize = 10
View Source
const RoleManager = "MANAGER"
View Source
const RoleMember = "MEMBER"
View Source
const RoleOwner = "OWNER"

Variables

This section is empty.

Functions

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 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 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 GroupSyncSet struct {
	GroupEmail    string
	Owners        []string
	ExtraOwners   []string
	Managers      []string
	ExtraManagers []string
	ExtraMembers  []string
	DisableAdd    bool
	DisableUpdate bool
	DisableDelete bool
}

Jump to

Keyboard shortcuts

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