Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type GoogleEnv = Env BigQueryScopes
- makeGoogleEnvWithCredentials :: (MonadIO m, MonadCatch m, Katip m) => Maybe ByteString -> Credentials BigQueryScopes -> m (Env BigQueryScopes)
- makeGoogleEnv :: (MonadCatch m, Katip m) => FilePath -> m GoogleEnv
- googleEnvFromJSONCredentials :: (MonadCatch m, Katip m) => ByteString -> m (Credentials BigQueryScopes)
- googleEnvFromGCloudSDK' :: (MonadIO m, MonadCatch m, MonadMask m, Katip m) => m (Either AuthEvalError (Env BigQueryScopes))
- googleEnvFromGCloudSDK :: (MonadIO m, MonadCatch m, MonadMask m, Katip m) => m (Env BigQueryScopes)
- googleCredentialsFromSDK :: (MonadIO m, MonadCatch m) => m (Credentials BigQueryScopes)
- googleCredentialsFromJson :: (MonadIO m, MonadCatch m) => CredentialsJson -> m (Credentials BigQueryScopes)
- sdkCredentialFilePath :: MonadIO m => m (Maybe FilePath)
- jsonCredentialsFromWellKnownPath :: MonadIO m => m (Maybe CredentialsJson)
Documentation
type GoogleEnv = Env BigQueryScopes #
makeGoogleEnvWithCredentials :: (MonadIO m, MonadCatch m, Katip m) => Maybe ByteString -> Credentials BigQueryScopes -> m (Env BigQueryScopes) #
creates a google env with the scopes required for bigquery ops
:: (MonadCatch m, Katip m) | |
=> FilePath | credentials file |
-> m GoogleEnv |
create goole env from the input file The main purpose for this function is to valideate the generated napkin credentials. Note, function only validates if we can create a google env.
googleEnvFromJSONCredentials #
:: (MonadCatch m, Katip m) | |
=> ByteString | oAuth2 token ByteString |
-> m (Credentials BigQueryScopes) |
create google environment from credentials json
googleEnvFromGCloudSDK' :: (MonadIO m, MonadCatch m, MonadMask m, Katip m) => m (Either AuthEvalError (Env BigQueryScopes)) #
attempts to use the gcloud SDK to authenticate the user. See https://hackage.haskell.org/package/gogol-0.5.0/docs/Network-Google-Auth-ApplicationDefault.html#v:getApplicationDefault
googleEnvFromGCloudSDK :: (MonadIO m, MonadCatch m, MonadMask m, Katip m) => m (Env BigQueryScopes) #
googleCredentialsFromSDK :: (MonadIO m, MonadCatch m) => m (Credentials BigQueryScopes) #
googleCredentialsFromJson :: (MonadIO m, MonadCatch m) => CredentialsJson -> m (Credentials BigQueryScopes) #
sdkCredentialFilePath :: MonadIO m => m (Maybe FilePath) #
jsonCredentialsFromWellKnownPath :: MonadIO m => m (Maybe CredentialsJson) #