Documentation ¶
Index ¶
- Constants
- func AccountCredentialsFromMap(m map[string]any) (model.IntegrationCredentials, error)
- func AdjustResource(job describe.DescribeJob, resource *model.Resource) error
- func DescribeListByGoogleWorkspace(...) models.ResourceDescriber
- func DescribeSingleByGoogleWorkspace(...) models.SingleResourceDescriber
- func GetAdditionalParameters(job describe.DescribeJob) (map[string]string, error)
- func GetGroups(ctx context.Context, handler *GoogleWorkspaceAPIHandler) ([]*admin.Group, error)
- func GetLoggerFromContext(ctx context.Context) *zap.Logger
- func GetParameterFromContext(ctx context.Context, key string) any
- func GetResourceMetadata(job describe.DescribeJob, resource model.Resource) (map[string]string, error)
- func GetTriggerTypeFromContext(ctx context.Context) enums.DescribeTriggerType
- func GetUsers(ctx context.Context, handler *GoogleWorkspaceAPIHandler) ([]*admin.User, error)
- func IsTemporary(err error) bool
- func WithLogger(ctx context.Context, logger *zap.Logger) context.Context
- func WithTriggerType(ctx context.Context, tt enums.DescribeTriggerType) context.Context
- type ChromeDeviceDescription
- type DomainAliasDescription
- type DomainDescription
- type GoogleWorkspaceAPIHandler
- type GroupAliasDescription
- type GroupDescription
- type GroupMemberDescription
- type Metadata
- type MobileDeviceDescription
- type OrgUnitDescription
- type PrivilegeDescription
- type ResourceBuildingDescription
- type ResourceCalenderDescription
- type ResourceFeatureDescription
- type RoleAssignmentDescription
- type RoleDescription
- type UserAliasDescription
- type UserDescription
Constants ¶
View Source
const ( MaxPageResultsUsers = 500 MaxPageResultsGroups = 200 MaxPageResultsGroupMembers = 200 MaxPageResultsMobileDevices = 100 MaxPageResultsChromeDevices = 300 MaxPageResultsRoles = 100 MaxPageResultsRoleAssignments = 100 MaxPageResultsBuildings = 100 MaxPageResultsCalenders = 100 MaxPageResultsFeatures = 100 )
Variables ¶
This section is empty.
Functions ¶
func AccountCredentialsFromMap ¶
func AccountCredentialsFromMap(m map[string]any) (model.IntegrationCredentials, error)
AccountCredentialsFromMap TODO: converts a map to a configs.IntegrationCredentials.
func AdjustResource ¶
func AdjustResource(job describe.DescribeJob, resource *model.Resource) error
AdjustResource TODO: Do any needed adjustment on resource object before storing
func DescribeListByGoogleWorkspace ¶
func DescribeListByGoogleWorkspace(describe func(context.Context, *GoogleWorkspaceAPIHandler, *models.StreamSender) ([]models.Resource, error)) models.ResourceDescriber
DescribeListByGoogleWorkspace A wrapper to pass GoogleWorkspace authorization to describer functions
func DescribeSingleByGoogleWorkspace ¶
func DescribeSingleByGoogleWorkspace(describe func(context.Context, *GoogleWorkspaceAPIHandler, string) (*models.Resource, error)) models.SingleResourceDescriber
DescribeSingleByGoogleWorkspace A wrapper to pass GoogleWorkspace authorization to describer functions
func GetAdditionalParameters ¶
func GetAdditionalParameters(job describe.DescribeJob) (map[string]string, error)
GetAdditionalParameters TODO: pass additional parameters needed in describer wrappers in /provider/describer_wrapper.go
func GetResourceMetadata ¶
func GetResourceMetadata(job describe.DescribeJob, resource model.Resource) (map[string]string, error)
GetResourceMetadata TODO: Get metadata as a map to add to the resources
func GetTriggerTypeFromContext ¶
func GetTriggerTypeFromContext(ctx context.Context) enums.DescribeTriggerType
func WithTriggerType ¶
Types ¶
type ChromeDeviceDescription ¶
type ChromeDeviceDescription struct {
admin.ChromeOsDevice
}
type DomainAliasDescription ¶
type DomainAliasDescription struct {
admin.DomainAlias
}
type DomainDescription ¶
type GoogleWorkspaceAPIHandler ¶
type GoogleWorkspaceAPIHandler struct { AdminService *admin.Service CustomerID string RateLimiter *rate.Limiter Semaphore chan struct{} MaxRetries int RetryBackoff time.Duration }
type GroupAliasDescription ¶
type GroupAliasDescription struct {
admin.GroupAlias
}
type GroupDescription ¶
type GroupMemberDescription ¶
type MobileDeviceDescription ¶
type MobileDeviceDescription struct {
admin.MobileDevice
}
type OrgUnitDescription ¶
type PrivilegeDescription ¶
type ResourceCalenderDescription ¶
type ResourceCalenderDescription struct {
admin.CalendarResource
}
type RoleAssignmentDescription ¶
type RoleAssignmentDescription struct {
admin.RoleAssignment
}
type RoleDescription ¶
type UserAliasDescription ¶
type UserDescription ¶
Click to show internal directories.
Click to hide internal directories.