googleworkspace

package
v2.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func Builder

func Builder(cfg Config) registry.Builder

Builder returns the Google Workspace definition builder with the supplied operator config applied

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

InstallationIdentity implements types.InstallationIdentifiable

type UserInput

type UserInput struct {
	// PrimaryDirectory marks this installation as the authoritative directory source
	PrimaryDirectory bool `json:"primaryDirectory,omitempty" jsonschema:"title=Primary Directory"`
}

UserInput holds installation-specific configuration collected from the user

Jump to

Keyboard shortcuts

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