MCPcopy Create free account
hub / github.com/openclaw/gogcli / newGoogleServiceForServiceAccountScopes

Function newGoogleServiceForServiceAccountScopes

internal/googleapi/client.go:90–104  ·  view source on GitHub ↗
(
	ctx context.Context,
	email string,
	serviceLabel string,
	errorLabel string,
	scopes []string,
	factory googleServiceFactory[T],
)

Source from the content-addressed store, hash-verified

88}
89
90func newGoogleServiceForServiceAccountScopes[T any](
91 ctx context.Context,
92 email string,
93 serviceLabel string,
94 errorLabel string,
95 scopes []string,
96 factory googleServiceFactory[T],
97) (*T, error) {
98 opts, err := optionsForServiceAccountScopes(ctx, serviceLabel, email, scopes)
99 if err != nil {
100 return nil, fmt.Errorf("%s options: %w", errorLabel, err)
101 }
102
103 return newGoogleService(ctx, errorLabel, opts, factory)
104}
105
106func newGoogleService[T any](
107 ctx context.Context,

Callers 1

NewCloudIdentityGroupsFunction · 0.85

Calls 3

newGoogleServiceFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected