Documentation
¶
Overview ¶
Package googleworkspace provides the Google Workspace integration definition for integrations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrOAuthTokenMissing indicates the OAuth access token is missing ErrOAuthTokenMissing = errors.New("googleworkspace: oauth token missing") // ErrAdminServiceBuildFailed indicates the Admin SDK client could not be constructed ErrAdminServiceBuildFailed = errors.New("googleworkspace: admin service build failed") // ErrHealthCheckFailed indicates the health check request failed ErrHealthCheckFailed = errors.New("googleworkspace: health check failed") // ErrDirectoryUsersFetchFailed indicates the users listing failed ErrDirectoryUsersFetchFailed = errors.New("googleworkspace: directory users fetch failed") // ErrDirectoryGroupsFetchFailed indicates the groups listing failed ErrDirectoryGroupsFetchFailed = errors.New("googleworkspace: directory groups fetch failed") // ErrDirectoryGroupMembersFetchFailed indicates the group members listing failed ErrDirectoryGroupMembersFetchFailed = errors.New("googleworkspace: directory group members fetch failed") // ErrPayloadEncode indicates a provider payload could not be serialized ErrPayloadEncode = errors.New("googleworkspace: payload encode failed") // ErrCredentialEncode indicates the credential could not be serialized ErrCredentialEncode = errors.New("googleworkspace: credential encode failed") // ErrCustomerFetchFailed indicates the customer lookup request failed ErrCustomerFetchFailed = errors.New("googleworkspace: customer fetch failed") // ErrCustomerUnresolved indicates the customer lookup returned neither an id nor a domain ErrCustomerUnresolved = errors.New("googleworkspace: customer unresolved") // ErrInstallationMetadataInvalid indicates stored installation metadata could not be decoded ErrInstallationMetadataInvalid = errors.New("googleworkspace: installation metadata invalid") // ErrCustomerIDMissing indicates installation metadata is missing the required customer identifier ErrCustomerIDMissing = errors.New("googleworkspace: customer id missing from installation metadata") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
// ClientID is the Google OAuth application client identifier
ClientID string `json:"clientid" koanf:"clientid"`
// ClientSecret is the Google OAuth application client secret
ClientSecret string `json:"clientsecret" koanf:"clientsecret" sensitive:"true"`
// RedirectURL is the OAuth callback URL registered with the Google application
RedirectURL string `json:"redirecturl" koanf:"redirecturl" default:"https://api.theopenlane.io/v1/integrations/auth/callback"`
}
Config holds operator-level credentials for the Google Workspace definition
type DirectorySync ¶
type DirectorySync struct {
types.OperationSettings
}
DirectorySync configures collection of Google Workspace directory users, groups, and memberships
type InstallationMetadata ¶
type InstallationMetadata struct {
// CustomerID is the Google Workspace customer identifier
CustomerID string `json:"customerId,omitempty" jsonschema:"title=Customer ID"`
// Domain is the primary domain of the Google Workspace customer
Domain string `json:"domain,omitempty" jsonschema:"title=Domain"`
}
InstallationMetadata holds the Google Workspace directory target for an installation
func (InstallationMetadata) InstallationIdentity ¶
func (m InstallationMetadata) InstallationIdentity() types.IntegrationInstallationIdentity
InstallationIdentity implements types.InstallationIdentifiable
Click to show internal directories.
Click to hide internal directories.