snyk-sdk-go

module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0

README

Snyk SDK for Go

Disclaimer: this SDK is currently in technical preview and not ready for production usage. This means some aspects of its design and implementation are not yet considered stable.

snyk-sdk-go is the (un)official Snyk SDK for the Go programming language.

Installation

# X.Y.Z is the version you need
go get github.com/pavel-snyk/snyk-sdk-go@vX.Y.Z

# for non Go modules usage or latest version
go get github.com/pavel-snyk/snyk-sdk-go

Usage

import "github.com/pavel-snyk/snyk-sdk-go"

Create a new Snyk client, then use the exposed services to access different parts of the Snyk API.

Authentication

To use the SDK, you must get your API token from Snyk. You can find your token in your General Account Settings on https://snyk.io/account/ after you register with Snyk and log in. See Authentication for API.

client := snyk.NewClient("your-api-token")

Directories

Path Synopsis
Package snyk provides a client for using the Snyk API.
Package snyk provides a client for using the Snyk API.

Jump to

Keyboard shortcuts

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