-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
299 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// Package docs Code generated by swaggo/swag. DO NOT EDIT | ||
package docs | ||
|
||
import "github.com/swaggo/swag" | ||
|
||
const docTemplate = `{ | ||
"schemes": {{ marshal .Schemes }}, | ||
"swagger": "2.0", | ||
"info": { | ||
"description": "{{escape .Description}}", | ||
"title": "{{.Title}}", | ||
"termsOfService": "http://swagger.io/terms/", | ||
"contact": { | ||
"name": "API Support", | ||
"url": "http://www.swagger.io/support", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
}, | ||
"version": "{{.Version}}" | ||
}, | ||
"host": "{{.Host}}", | ||
"basePath": "{{.BasePath}}", | ||
"paths": { | ||
"/GetNodes": { | ||
"get": { | ||
"produces": [ | ||
"application/json" | ||
], | ||
"summary": "Get info about nodes in cluster", | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/kubeApiResponseStruct.NodeRespose" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"kubeApiResponseStruct.NodeRespose": { | ||
"type": "object", | ||
"properties": { | ||
"contolplanenumber": { | ||
"type": "integer" | ||
}, | ||
"kubernetesversion": { | ||
"type": "string" | ||
}, | ||
"nodenumber": { | ||
"type": "integer" | ||
}, | ||
"osimage": { | ||
"type": "string" | ||
}, | ||
"workernumber": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
} | ||
}` | ||
|
||
// SwaggerInfo holds exported Swagger Info so clients can modify it | ||
var SwaggerInfo = &swag.Spec{ | ||
Version: "1.0", | ||
Host: "kubeinfo.swagger.io", | ||
BasePath: "/", | ||
Schemes: []string{}, | ||
Title: "Kubeinfo API", | ||
Description: "Kubeinfo used to get information about k8s cluster component", | ||
InfoInstanceName: "swagger", | ||
SwaggerTemplate: docTemplate, | ||
} | ||
|
||
func init() { | ||
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"description": "Kubeinfo used to get information about k8s cluster component", | ||
"title": "Kubeinfo API", | ||
"termsOfService": "http://swagger.io/terms/", | ||
"contact": { | ||
"name": "API Support", | ||
"url": "http://www.swagger.io/support", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
}, | ||
"version": "1.0" | ||
}, | ||
"host": "kubeinfo.swagger.io", | ||
"basePath": "/", | ||
"paths": { | ||
"/GetNodes": { | ||
"get": { | ||
"produces": [ | ||
"application/json" | ||
], | ||
"summary": "Get info about nodes in cluster", | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/kubeApiResponseStruct.NodeRespose" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"kubeApiResponseStruct.NodeRespose": { | ||
"type": "object", | ||
"properties": { | ||
"contolplanenumber": { | ||
"type": "integer" | ||
}, | ||
"kubernetesversion": { | ||
"type": "string" | ||
}, | ||
"nodenumber": { | ||
"type": "integer" | ||
}, | ||
"osimage": { | ||
"type": "string" | ||
}, | ||
"workernumber": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
basePath: / | ||
definitions: | ||
kubeApiResponseStruct.NodeRespose: | ||
properties: | ||
contolplanenumber: | ||
type: integer | ||
kubernetesversion: | ||
type: string | ||
nodenumber: | ||
type: integer | ||
osimage: | ||
type: string | ||
workernumber: | ||
type: integer | ||
type: object | ||
host: kubeinfo.swagger.io | ||
info: | ||
contact: | ||
email: [email protected] | ||
name: API Support | ||
url: http://www.swagger.io/support | ||
description: Kubeinfo used to get information about k8s cluster component | ||
license: | ||
name: Apache 2.0 | ||
url: http://www.apache.org/licenses/LICENSE-2.0.html | ||
termsOfService: http://swagger.io/terms/ | ||
title: Kubeinfo API | ||
version: "1.0" | ||
paths: | ||
/GetNodes: | ||
get: | ||
produces: | ||
- application/json | ||
responses: | ||
"200": | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/kubeApiResponseStruct.NodeRespose' | ||
summary: Get info about nodes in cluster | ||
swagger: "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.