credentials

package
v0.0.0-...-f3787b7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Get allows getting OAuth2 token for a owner/repo combination.
	Get(repoName string) (*oauth2.Token, error)

	// Set allows setting OAuth2 token for a owner/repo combination.
	Set(repoName string, token *oauth2.Token) error
}

Store is a pluggable credentials backend for the application.

func NewBoltStore

func NewBoltStore(path string) (Store, error)

func NewGoogleStore

func NewGoogleStore(keyPath, projectID string) (Store, error)

Jump to

Keyboard shortcuts

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