store

package
v0.0.0-...-14f7cec Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package store provides an in-memory store of account data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(apiClient apiclient.APIClient, config *Config) accounts.AccountProvider

New returns an AccountProvider implemented as an in-memory store.

Types

type Config

type Config struct {
	// AccountRefreshFrequency defines how often to perform scheduled
	// refreshes of user and group information.
	AccountRefreshFrequency time.Duration
	// AccountRefreshCooldown defines how long to block on-demand refreshes
	// of user and group information after a refresh.
	AccountRefreshCooldown time.Duration
	// KeyRefreshFrequency defines how often to perform scheduled refreshes
	// of authorized keys information.
	KeyRefreshFrequency time.Duration
	// KeyRefreshCooldown defines how long to block on-demand refreshes of
	// authorized keys information after a refresh.
	KeyRefreshCooldown time.Duration
}

A Config provides configuration options for a store AccountProvider.

Jump to

Keyboard shortcuts

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