dsv-go-sdk

module
v0.0.0-...-cfedc03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2022 License: Apache-2.0

README

DSV Go SDK

The purpose of this application is to provide a simple service for storing and getting secrets.

Generate swagger-codegen SDK

  1. Install swagger-codegen.
  2. Generate models: $ swagger-codegen generate -i ./path/to/swagger.json -l go -o ./swagger-codegen/models --model-name-prefix DSV -Dmodels.
  3. Generate API client: $ swagger-codegen generate -i ./path/to/swagger.json -l go -o ./swagger-codegen/client --model-name-prefix DSV -c ./config.json.
Generate with docker
$ docker run --rm -v ${PWD}/swagger-codegen:/local swaggerapi/swagger-codegen-cli generate \
    -i /local/path/to/swagger.json \
    -l go \
    -o /local/client \
    --model-name-prefix DSV \
    -c /local/config.json

Generate go-swagger

  1. Install swagger: $ go install github.com/go-swagger/go-swagger/cmd/swagger@latest
  2. Generate SDK: $ swagger generate client -f ./path/to/swagger.json --client-package=./go-swagger/client --default-scheme=https --model-package=./go-swagger/models --api-package=./go-swagger/api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL