Skip to content

SolaceLabs/steampipe-solace-go-client-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributor Covenant

Go Client SDK (lite) for Solace Cloud REST APIs

Overview

This project creates a lite Go Client SDK to access PubSub+ Cloud REST APIs. The reason this is a lite-SDK because it implements only GET calls to Solace Cloud resources. This SDK is utilized by the steampipe plugin for solace project to access Cloud REST APIs via SQL.

Getting started quickly

  1. Get the SDK
go get github.com/SolaceLabs/steampipe-solace-go-client-sdk
  1. Create a client
var config, err = solace.NewConfig(apiToken, apiUrl)
if err != nil {
  return nil, err
}

solaceClient = solace.GetClient(config)
  1. Fetch resources
var config = NewRequestConfig(fmt.Sprintf(`architecture/applicationDomains/%s`, domainId))

var r = &ApplicationDomainGetResponse{}
var _, err = solaceClient.Get(config, &r)
if err != nil {
  return nil, at.handleKnownErrors(err)
}

return &r.ApplicationDomain, nil

Resources

For more use-cases check:

Steampipe Plugin for Solace

Further reading:

Solace Cloud REST API documentation

Get involved:

Issues

This is not an officially supported Solace product.

For more information try these resources:

Contributing

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

Authors

See the list of contributors who participated in this project.

License

See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages