Giter Club home page Giter Club logo

dct-sdk-go's Introduction

DCT Go Client SDK

This is a Go Client SDK leveraging the DCT APIGW.

For SDK usage, please refer to OPENAPI-README.md file

DCT Go Client SDK Generator Script

This is a guide on generation of the client SDK in Go Lang for the DCT Orbital APIGW.

Getting Started

The reources for code generation are present in the 'generation-scripts' directory. The script codegen.sh generates a GO Client SDK using the openapi-generator-cli tool. It generates the SDK, initializes the SDK and runs a test go function.

Prerequisites

Java needs to be installed to run the jar file. And Golang >= 1.17 needs to be installed in the machine where the script is run.

Refer to the official docs of the respective languages for guidance.

Delphix Control Tower SDK for Go

This repository houses the Go Client SDK for Delphix Control Tower APIs ( Multi Cloud Version).

Getting Started

To be added.

Prerequisites

Also the script requires an API Spec file for the DCT-APIGW. A sample file is present in the directory. For the latest spec, please download it from https://raw.githubusercontent.com/delphix/orbital-api-gateway/main/app/src/main/resources/api.yaml

Running the Script

As mentioned above the script requires a spec file.

Run the script as follows

sh codegen.sh api.yaml

On successful run, following tasks will result:

1. Generation of client SDK
2. Initialize the SDK module
3. Run the Test Go file, input the API key and hostname of the Delphix Engine and display list of Engines added to the APIGW

Running the tests

The test.go file executes a get all engines operation on the configured DCT-APIGW. To run the test on your delphix engine, provide the API key and Hostname of the engine when prompted.

Break down into end to end tests

The test essentially tests if the client SDK is functional and should be run before raising a PR. The result of the test will be available at the end of the script as follows.

List of engines are:
my-host.domain.co

If in any case, the test fails, we will be getting a 'test failed' message in the end.

Deployment

Once successful generation of client SDK and the test succeeds, we are ready to raise a PR.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the Apache License 2.0. Full license is available here.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

dct-sdk-go's People

Contributors

ankit-patil-hubs avatar arunskurian avatar elima-sugunan avatar eyalkaspi-delphix avatar kishlay-delphix avatar sunnyx4 avatar uddipaan-hazarika avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kishlay-delphix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.