fluent-plugin-gcs 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06b8bb5edbdcbf288abdadf04670aba1ce83ce1e9f1f8d2ccfae29c543a6b87e
4
- data.tar.gz: 2678dbe5a7bdd06149be0cd8bd4bfb0b65557b842c58790b0db7680ba4f58d82
3
+ metadata.gz: 42a11febaed3fc628877f4825ccf37be26bb72aea69fb403d5a74099353d6af6
4
+ data.tar.gz: 1a4e644a95db9f2debf96593914f64bdcef2eb1eddf80c983ee5800616cedc68
5
5
  SHA512:
6
- metadata.gz: 67857cecbfc047d0f8e2dbbf0cf3065a3f0b0a11ce08bf277574060f0238648ef36ca4f5d8f498af4a30632a13d81112cc0ae9a55846bb7aaf3703260df07260
7
- data.tar.gz: ae8f1b545dc3b89f8209597addff218ec713040970ab3bdc4dd4db35acf4482927d9f41ccad3a90bc8c9eb0a66d20ba3116d3c06839772669181350d54dd266c
6
+ metadata.gz: e209ea956498fd8773fe6cf38723cc3faa0336fdfa12a0eef58a81b8447c50027582748d71ed92b4039e8cb4ea77ffad722ad05473c98dcf9442bc870d80735b
7
+ data.tar.gz: 717e1a3e64cb0c8ba2f1f4fe5eb2f947399558ef7ad85094c39f083840dcf46c88260124f2c9b3463e457e7e705d52348d9f1b7d09a1b1b370ac6a4e5942c16b
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
  module GCSPlugin
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
@@ -22,6 +22,8 @@ module Fluent::Plugin
22
22
  desc: "Project identifier for GCS"
23
23
  config_param :keyfile, :string, default: nil,
24
24
  desc: "Path of GCS service account credentials JSON file"
25
+ config_param :credentials_json, :hash, default: nil, secret: true,
26
+ desc: "GCS service account credentials in JSON format"
25
27
  config_param :client_retries, :integer, default: nil,
26
28
  desc: "Number of times to retry requests on server error"
27
29
  config_param :client_timeout, :integer, default: nil,
@@ -94,12 +96,18 @@ module Fluent::Plugin
94
96
  # TODO: Remove time_slice_format when end of support compat_parameters
95
97
  @configured_time_slice_format = conf['time_slice_format']
96
98
  @time_slice_with_tz = Fluent::Timezone.formatter(@timekey_zone, @configured_time_slice_format || timekey_to_timeformat(@buffer_config['timekey']))
99
+
100
+ if @credentials_json
101
+ @credentials = @credentials_json
102
+ else
103
+ @credentials = keyfile
104
+ end
97
105
  end
98
106
 
99
107
  def start
100
108
  @gcs = Google::Cloud::Storage.new(
101
109
  project: @project,
102
- keyfile: @keyfile,
110
+ keyfile: @credentials,
103
111
  retries: @client_retries,
104
112
  timeout: @client_timeout
105
113
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-gcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daichi HIRATA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-30 00:00:00.000000000 Z
11
+ date: 2024-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd