keychain

package
v0.0.0-...-10f34be Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileProvider

type FileProvider struct {
	Path        string
	RefreshRate time.Duration
	// contains filtered or unexported fields
}

func (*FileProvider) GetPublicKey

func (k *FileProvider) GetPublicKey(ctx context.Context, issuer string) ([]byte, error)

func (*FileProvider) Run

func (p *FileProvider) Run(ctx context.Context) error

type Provider

type Provider interface {
	GetPublicKey(ctx context.Context, issuer string) ([]byte, error)
}

Provider interface to get RSA keys

type S3Provider

type S3Provider struct {
	Bucket      string
	Path        string
	RefreshRate time.Duration
	// contains filtered or unexported fields
}

func (*S3Provider) GetPublicKey

func (k *S3Provider) GetPublicKey(ctx context.Context, issuer string) ([]byte, error)

func (*S3Provider) Run

func (p *S3Provider) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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