Documentation
¶
Index ¶
- func DownloadSwaggerData(output string, dw downloader.PlatformAwareOCIDownloader) (err error)
- func GetProtoFiles() (files map[string]string, err error)
- func GetSwaggerList() (swaggers []string)
- func ParseFileToSwagger(dataFile string) (swagger *spec.Swagger, err error)
- func ParseStreamToSwagger(stream io.Reader) (swagger *spec.Swagger, err error)
- func ParseToSwagger(data []byte) (swagger *spec.Swagger, err error)
- func ParseURLToSwagger(swaggerURL string) (swagger *spec.Swagger, err error)
- func SwaggersHandler(w http.ResponseWriter, _ *http.Request, _ map[string]string)
- type APICoverage
- type SwaggerAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadSwaggerData ¶ added in v0.0.19
func DownloadSwaggerData(output string, dw downloader.PlatformAwareOCIDownloader) (err error)
func GetProtoFiles ¶ added in v0.0.15
func GetSwaggerList ¶ added in v0.0.19
func GetSwaggerList() (swaggers []string)
func ParseFileToSwagger ¶ added in v0.0.19
func ParseStreamToSwagger ¶
func ParseURLToSwagger ¶
func SwaggersHandler ¶ added in v0.0.19
Types ¶
type APICoverage ¶ added in v0.0.19
func NewFakeAPISpec ¶
func NewFakeAPISpec(apis [][]string) APICoverage
NewFakeAPISpec creates a new instance of fakeAPISpec
type SwaggerAPI ¶
func NewSwaggerAPI ¶ added in v0.0.17
func NewSwaggerAPI(swagger *spec.Swagger) *SwaggerAPI
func (*SwaggerAPI) APICount ¶ added in v0.0.17
func (s *SwaggerAPI) APICount() (count int)
APICount return the count of APIs
func (*SwaggerAPI) HaveAPI ¶ added in v0.0.17
func (s *SwaggerAPI) HaveAPI(path, method string) (exist bool)
HaveAPI check if the swagger has the API. If the path is /api/v1/names/linuxsuren, then will match /api/v1/names/{name}
Click to show internal directories.
Click to hide internal directories.