Skip to content

Commit 88648c0

Browse files
repositories: add support for Google Cloud Storage (gcs)
This adds HTML for managing repository settings for repositories of the type `gcs`. GCS repositories are supported via an Elasticsearch plugin: - https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-gcs.html Fixes lmenezes#497.
1 parent bf2937b commit 88648c0

2 files changed

Lines changed: 65 additions & 1 deletion

File tree

public/repositories/gcs.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<div class="col-xs-12">
2+
<div class="row">
3+
<div class="form-group col-md-6">
4+
<label class="form-label">bucket</label>
5+
<input ng-model="settings.bucket" class="form-control" placeholder="The name of bucket to be used for snapshots">
6+
</div>
7+
<div class="form-group col-md-6">
8+
<label class="form-label">client</label>
9+
<input ng-model="settings.client" class="form-control" placeholder="The name of the client to use to connect to Google Cloud Storage. Defaults to: default">
10+
</div>
11+
</div>
12+
</div>
13+
<div class="form-group col-xs-12">
14+
<label class="form-label">base path</label>
15+
<input ng-model="settings.base_path" class="form-control" placeholder="Specifies the path within bucket to repository data. Defaults to the root of the bucket.">
16+
</div>
17+
<div class="form-group col-md-6">
18+
<label class="form-label">chunk size</label>
19+
<input ng-model="settings.chunk_size" class="form-control" placeholder="Chunk size (1g, 10m, 5k). Defaults to the maximum size of a blob which is 5TB">
20+
</div>
21+
<div class="form-group col-md-6">
22+
<label class="form-label">max_restore_bytes_per_sec</label>
23+
<input ng-model="settings.max_restore_bytes_per_sec" class="form-control" placeholder="Throttles per node restore rate. Defaults to unlimited.">
24+
</div>
25+
<div class="form-group col-md-6">
26+
<label class="form-label">max_snapshot_bytes_per_sec</label>
27+
<input ng-model="settings.max_snapshot_bytes_per_sec" class="form-control" placeholder="Throttles per node snapshot rate. Defaults to 40mb per second.">
28+
</div>
29+
<div class="form-group col-md-6">
30+
<label class="form-label">application name</label>
31+
<input ng-model="settings.application_name" class="form-control" placeholder="Name used by the client when it uses the Google Cloud Storage service">
32+
</div>
33+
<div class="form-group col-md-6">
34+
<label class="form-label">compress snapshot files (defaults to false)</label>
35+
<div class="row">
36+
<div class="col-xs-12">
37+
<label class="cluster-map-node-type">
38+
<input type="checkbox" ng-model="settings.compress" ng-true-value="true"> True
39+
</label>
40+
<label class="cluster-map-node-type">
41+
<input type="checkbox" ng-model="settings.compress" ng-true-value="false"> False
42+
</label>
43+
</div>
44+
</div>
45+
</div>
46+
<div class="form-group col-md-6">
47+
<label class="form-label">make repository read-only (defaults to false)</label>
48+
<div class="row">
49+
<div class="col-xs-12">
50+
<label class="cluster-map-node-type">
51+
<input type="checkbox" ng-model="settings.readonly" ng-true-value="true"> True
52+
</label>
53+
<label class="cluster-map-node-type">
54+
<input type="checkbox" ng-model="settings.readonly" ng-true-value="false"> False
55+
</label>
56+
</div>
57+
</div>
58+
</div>
59+
<div class="col-xs-12">
60+
<div class="row">
61+
<p>Documentation: <a class="text-primary" href="https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-gcs.html">Google Cloud Storage Repository Plugin</a></p>
62+
</div>
63+
</div>

public/repositories/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ <h4 ng-show="update">update repository</h4>
2929
<div class="form-group col-md-6">
3030
<label class="form-label">type</label>
3131
<select class="form-control" ng-model="type"
32-
ng-options="t for t in ['fs', 'url', 's3', 'hdfs', 'azure']"></select>
32+
ng-options="t for t in ['fs', 'url', 's3', 'gcs', 'hdfs', 'azure']"></select>
3333
</div>
3434
</div>
3535
<div class="row" ng-plain-include file="repositories/fs.html" ng-show="type == 'fs'"></div>
3636
<div class="row" ng-plain-include file="repositories/url.html" ng-show="type == 'url'"></div>
3737
<div class="row" ng-plain-include file="repositories/s3.html" ng-show="type == 's3'"></div>
38+
<div class="row" ng-plain-include file="repositories/gcs.html" ng-show="type == 'gcs'"></div>
3839
<div class="row" ng-plain-include file="repositories/azure.html" ng-show="type == 'azure'"></div>
3940
<div class="row" ng-plain-include file="repositories/hdfs.html" ng-show="type == 'hdfs'"></div>
4041
<div class="row">

0 commit comments

Comments
 (0)