storager

package module
v0.0.0-...-f9fbf85 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package storager contains additional credential stores that implements the Storager interface for the shellicator lib.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecureStore

type SecureStore struct {
	// contains filtered or unexported fields
}

SecureStore stores and retrieves tokens in a platform dependent secure storage.

func NewSecureStore

func NewSecureStore(serviceName string) SecureStore

NewSecureStore creates a new secure storager.

func (SecureStore) RetrieveToken

func (s SecureStore) RetrieveToken(key string) (*oauth2.Token, error)

RetrieveToken retrieves a token from the secure store.

func (SecureStore) StoreToken

func (s SecureStore) StoreToken(key string, token *oauth2.Token) error

StoreToken stores a token in the secure store.

Jump to

Keyboard shortcuts

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