crlloader

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CRLLoaderRetryCount = 5
View Source
const CRLLoaderRetryDelay = 500 * time.Millisecond

Variables

This section is empty.

Functions

This section is empty.

Types

type CRLLoader

type CRLLoader interface {
	LoadCRL(filePath string) error
	GetCRLLocationIdentifier() (string, error)
	GetDescription() string
}

func CreatePreferredCrlLoader

func CreatePreferredCrlLoader(crlLocations *core.CRLLocations, logger *zap.Logger) (CRLLoader, error)

type FileLoader

type FileLoader struct {
	FileName string
	Logger   *zap.Logger
}

func (FileLoader) GetCRLLocationIdentifier

func (f FileLoader) GetCRLLocationIdentifier() (string, error)

func (FileLoader) GetDescription

func (f FileLoader) GetDescription() string

func (FileLoader) LoadCRL

func (f FileLoader) LoadCRL(filePath string) error

type MultiSchemesCRLLoader

type MultiSchemesCRLLoader struct {
	Loaders []CRLLoader
	Logger  *zap.Logger
	// contains filtered or unexported fields
}

func (MultiSchemesCRLLoader) GetCRLLocationIdentifier

func (f MultiSchemesCRLLoader) GetCRLLocationIdentifier() (string, error)

func (MultiSchemesCRLLoader) GetDescription

func (f MultiSchemesCRLLoader) GetDescription() string

func (MultiSchemesCRLLoader) LoadCRL

func (f MultiSchemesCRLLoader) LoadCRL(filePath string) error

type URLLoader

type URLLoader struct {
	UrlString string
	Logger    *zap.Logger
}

func (URLLoader) DownloadFromUrlWithRetries

func (L URLLoader) DownloadFromUrlWithRetries(filePath string, normalizedUrl string) error

func (URLLoader) GetCRLLocationIdentifier

func (L URLLoader) GetCRLLocationIdentifier() (string, error)

func (URLLoader) GetDescription

func (L URLLoader) GetDescription() string

func (URLLoader) LoadCRL

func (L URLLoader) LoadCRL(filePath string) error

Jump to

Keyboard shortcuts

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