Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/deislabs/go-bindle

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/deislabs/go-bindle

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go Bindle Client

Go Reference

A Bindle client for Go.

Using the Client

Below is a simple example using the client to get an invoice

package main

import (
    "fmt"

    "github.com/deislabs/go-bindle/client"
)

func main() {
    // The second parameter takes an optional tls.Config if you have any special TLS configuration 
    // needs. A nil config will just use the default
    bindleClient, err := client.New("https://my.bindle.server.com/v1", nil)
    if err != nil {
        panic(err)
    }

    invoice, err := bindleClient.GetInvoice("example.com/foo/1.0.0")
    if err != nil {
        panic(err)
    }

    fmt.Println(invoice)
}

Please visit the documentation for more information on each of the functions

Contributing

We welcome any contributions or feedback! If you'd like to contribute code, please open a Pull Request.

This project has adopted the Microsoft Open Source Code of Conduct.

For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Tests

Testing for the client is mostly done with integration tests. In order to run the integration tests, you'll need a bindle-server binary available for the tests to use. By default, the tests will search in your $PATH for an executable called bindle-server. You can also configure it to use a specific binary by setting the BINDLE_SERVER_PATH environment variable. Currently the testing pipeline uses the canary bindle-server for testing and will continue to do so until the spec and project have stabilized

FAQs

Package last updated on 14 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc