Skip to content

Commit

Permalink
tag version v0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Oct 20, 2024
1 parent e50ae16 commit 25fe1bf
Show file tree
Hide file tree
Showing 122 changed files with 3,062 additions and 113 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PWD = $(shell pwd)
UID = $(shell id -u)
GID = $(shell id -g)
VERSION = "0.11.0"
VERSION = "0.13.1"
LD_FLAGS = -X beryju.io/gravity/pkg/extconfig.Version=${VERSION}
GO_FLAGS = -ldflags "${LD_FLAGS}" -v
SCHEMA_FILE = schema.yml
Expand Down
17 changes: 17 additions & 0 deletions api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ api_roles_discovery.go
api_roles_dns.go
api_roles_etcd.go
api_roles_monitoring.go
api_roles_tftp.go
api_roles_tsdb.go
client.go
configuration.go
Expand Down Expand Up @@ -97,7 +98,15 @@ docs/RolesDiscoveryApi.md
docs/RolesDnsApi.md
docs/RolesEtcdApi.md
docs/RolesMonitoringApi.md
docs/RolesTftpApi.md
docs/RolesTsdbApi.md
docs/TftpAPIFile.md
docs/TftpAPIFilesDownloadOutput.md
docs/TftpAPIFilesGetOutput.md
docs/TftpAPIFilesPutInput.md
docs/TftpAPIRoleConfigInput.md
docs/TftpAPIRoleConfigOutput.md
docs/TftpRoleConfig.md
docs/TsdbAPIRoleConfigInput.md
docs/TsdbAPIRoleConfigOutput.md
docs/TsdbRoleConfig.md
Expand Down Expand Up @@ -185,6 +194,13 @@ model_monitoring_api_role_config_input.go
model_monitoring_api_role_config_output.go
model_monitoring_role_config.go
model_rest_err_response.go
model_tftp_api_file.go
model_tftp_api_files_download_output.go
model_tftp_api_files_get_output.go
model_tftp_api_files_put_input.go
model_tftp_api_role_config_input.go
model_tftp_api_role_config_output.go
model_tftp_role_config.go
model_tsdb_api_role_config_input.go
model_tsdb_api_role_config_output.go
model_tsdb_role_config.go
Expand All @@ -202,5 +218,6 @@ test/api_roles_discovery_test.go
test/api_roles_dns_test.go
test/api_roles_etcd_test.go
test/api_roles_monitoring_test.go
test/api_roles_tftp_test.go
test/api_roles_tsdb_test.go
utils.go
15 changes: 14 additions & 1 deletion api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 0.11.0
- API version: 0.13.1
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

Expand Down Expand Up @@ -131,6 +131,12 @@ Class | Method | HTTP request | Description
*RolesEtcdApi* | [**EtcdJoinMember**](docs/RolesEtcdApi.md#etcdjoinmember) | **Post** /api/v1/etcd/join | Etcd join
*RolesMonitoringApi* | [**MonitoringGetRoleConfig**](docs/RolesMonitoringApi.md#monitoringgetroleconfig) | **Get** /api/v1/roles/monitoring | Monitoring role config
*RolesMonitoringApi* | [**MonitoringPutRoleConfig**](docs/RolesMonitoringApi.md#monitoringputroleconfig) | **Post** /api/v1/roles/monitoring | Monitoring role config
*RolesTftpApi* | [**TftpDeleteFiles**](docs/RolesTftpApi.md#tftpdeletefiles) | **Delete** /api/v1/tftp/files | TFTP Files
*RolesTftpApi* | [**TftpDownloadFiles**](docs/RolesTftpApi.md#tftpdownloadfiles) | **Get** /api/v1/tftp/files/download | TFTP Files
*RolesTftpApi* | [**TftpGetFiles**](docs/RolesTftpApi.md#tftpgetfiles) | **Get** /api/v1/tftp/files | TFTP Files
*RolesTftpApi* | [**TftpGetRoleConfig**](docs/RolesTftpApi.md#tftpgetroleconfig) | **Get** /api/v1/roles/tftp | TFTP role config
*RolesTftpApi* | [**TftpPutFiles**](docs/RolesTftpApi.md#tftpputfiles) | **Post** /api/v1/tftp/files | TFTP Files
*RolesTftpApi* | [**TftpPutRoleConfig**](docs/RolesTftpApi.md#tftpputroleconfig) | **Post** /api/v1/roles/tftp | TFTP role config
*RolesTsdbApi* | [**TsdbGetMetrics**](docs/RolesTsdbApi.md#tsdbgetmetrics) | **Get** /api/v1/tsdb/metrics | Retrieve Metrics
*RolesTsdbApi* | [**TsdbGetRoleConfig**](docs/RolesTsdbApi.md#tsdbgetroleconfig) | **Get** /api/v1/roles/tsdb | TSDB role config
*RolesTsdbApi* | [**TsdbPutRoleConfig**](docs/RolesTsdbApi.md#tsdbputroleconfig) | **Post** /api/v1/roles/tsdb | TSDB role config
Expand Down Expand Up @@ -214,6 +220,13 @@ Class | Method | HTTP request | Description
- [MonitoringAPIRoleConfigOutput](docs/MonitoringAPIRoleConfigOutput.md)
- [MonitoringRoleConfig](docs/MonitoringRoleConfig.md)
- [RestErrResponse](docs/RestErrResponse.md)
- [TftpAPIFile](docs/TftpAPIFile.md)
- [TftpAPIFilesDownloadOutput](docs/TftpAPIFilesDownloadOutput.md)
- [TftpAPIFilesGetOutput](docs/TftpAPIFilesGetOutput.md)
- [TftpAPIFilesPutInput](docs/TftpAPIFilesPutInput.md)
- [TftpAPIRoleConfigInput](docs/TftpAPIRoleConfigInput.md)
- [TftpAPIRoleConfigOutput](docs/TftpAPIRoleConfigOutput.md)
- [TftpRoleConfig](docs/TftpRoleConfig.md)
- [TsdbAPIRoleConfigInput](docs/TsdbAPIRoleConfigInput.md)
- [TsdbAPIRoleConfigOutput](docs/TsdbAPIRoleConfigOutput.md)
- [TsdbRoleConfig](docs/TsdbRoleConfig.md)
Expand Down
246 changes: 245 additions & 1 deletion api/api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: gravity
version: 0.11.0
version: 0.13.1
servers:
- url: /
paths:
Expand Down Expand Up @@ -1358,6 +1358,44 @@ paths:
summary: Monitoring role config
tags:
- roles/monitoring
/api/v1/roles/tftp:
get:
operationId: tftp.get_role_config
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/TftpAPIRoleConfigOutput'
description: OK
summary: TFTP role config
tags:
- roles/tftp
post:
operationId: tftp.put_role_config
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TftpAPIRoleConfigInput'
responses:
"204":
description: No Content
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Bad Request
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Internal Server Error
summary: TFTP role config
tags:
- roles/tftp
/api/v1/roles/tsdb:
get:
operationId: tsdb.get_role_config
Expand Down Expand Up @@ -1396,6 +1434,113 @@ paths:
summary: TSDB role config
tags:
- roles/tsdb
/api/v1/tftp/files:
delete:
operationId: tftp.delete_files
parameters:
- explode: true
in: query
name: host
required: false
schema:
type: string
style: form
- explode: true
in: query
name: name
required: false
schema:
type: string
style: form
responses:
"204":
description: No Content
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Internal Server Error
summary: TFTP Files
tags:
- roles/tftp
get:
operationId: tftp.get_files
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/TftpAPIFilesGetOutput'
description: OK
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Internal Server Error
summary: TFTP Files
tags:
- roles/tftp
post:
operationId: tftp.put_files
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TftpAPIFilesPutInput'
responses:
"204":
description: No Content
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Internal Server Error
summary: TFTP Files
tags:
- roles/tftp
/api/v1/tftp/files/download:
get:
operationId: tftp.download_files
parameters:
- explode: true
in: query
name: host
required: false
schema:
type: string
style: form
- explode: true
in: query
name: name
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/TftpAPIFilesDownloadOutput'
description: OK
"404":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Not Found
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/RestErrResponse'
description: Internal Server Error
summary: TFTP Files
tags:
- roles/tftp
/api/v1/tools/ping:
post:
operationId: tools.ping
Expand Down Expand Up @@ -2818,13 +2963,16 @@ components:
backupDir: backupDir
etcdDir: etcdDir
certDir: certDir
tftpLocalDir: tftpLocalDir
properties:
backupDir:
type: string
certDir:
type: string
etcdDir:
type: string
tftpLocalDir:
type: string
type: object
InstanceAPIInstanceInfo:
example:
Expand All @@ -2835,6 +2983,7 @@ components:
backupDir: backupDir
etcdDir: etcdDir
certDir: certDir
tftpLocalDir: tftpLocalDir
version: version
properties:
buildHash:
Expand Down Expand Up @@ -2945,6 +3094,101 @@ components:
description: Status text.
type: string
type: object
TftpAPIFile:
example:
host: host
name: name
sizeBytes: 0
properties:
host:
type: string
name:
type: string
sizeBytes:
type: integer
required:
- host
- name
- sizeBytes
type: object
TftpAPIFilesDownloadOutput:
example:
data: data
properties:
data:
format: base64
type: string
required:
- data
type: object
TftpAPIFilesGetOutput:
example:
files:
- host: host
name: name
sizeBytes: 0
- host: host
name: name
sizeBytes: 0
properties:
files:
items:
$ref: '#/components/schemas/TftpAPIFile'
nullable: true
type: array
required:
- files
type: object
TftpAPIFilesPutInput:
example:
data: data
host: host
name: name
properties:
data:
format: base64
type: string
host:
type: string
name:
type: string
required:
- data
- host
- name
type: object
TftpAPIRoleConfigInput:
example:
config:
port: 0
enableLocal: true
properties:
config:
$ref: '#/components/schemas/TftpRoleConfig'
required:
- config
type: object
TftpAPIRoleConfigOutput:
example:
config:
port: 0
enableLocal: true
properties:
config:
$ref: '#/components/schemas/TftpRoleConfig'
required:
- config
type: object
TftpRoleConfig:
example:
port: 0
enableLocal: true
properties:
enableLocal:
type: boolean
port:
type: integer
type: object
TsdbAPIRoleConfigInput:
example:
config:
Expand Down
2 changes: 1 addition & 1 deletion api/api_cluster_instances.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 25fe1bf

Please sign in to comment.