# spartan-go **Repository Path**: mirrors_yahoo/spartan-go ## Basic Information - **Project Name**: spartan-go - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-10-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Spartan Go Library Go API for [spartan](https://github.com/yahoo/spartan) [![GoDoc](https://godoc.org/github.com/yahoo/spartan-go?status.svg)](https://godoc.org/github.com/yahoo/spartan-go) [![Build Status](https://travis-ci.org/yahoo/spartan-go.svg?branch=master)](https://travis-ci.org/yahoo/spartan-go) ### What's in the box This library supports fetching a token from spartan Attestation server and verifying the token received in the request. This repo also includes a command-line utility which can interact with Spartan provisioner server ### Getting Started `GetToken` function to be used on the client side ```go import "github.com/yahoo/spartan-go" // GetToken returns a token for the specified role // and can be used to access the service corresponding to // the "SuperRole" role token, err := spartan.GetToken("SuperRole", tokenOptions) ``` `VerifyToken` function to be used on the server side ```go import "github.com/yahoo/spartan-go" // VerifyToken verifies the token received in the request // to this server err = spartan.VerifyToken(token, verifyOptions) ``` [app.go][] is a demo app which shows how to invoke these functions [app.go]: ./demo/app.go