revocation

package
v0.0.0-...-602e6ae Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Put(data map[string]string)
	Get() map[string]string
}

func NewCache

func NewCache() Cache

type Loader

type Loader interface {
	Run(ctx context.Context)
}

func NewRevokedCertificatesLoader

func NewRevokedCertificatesLoader(revokedCertsCache Cache,
	configMapManager Manager,
	configMapName string,
	reconnectInterval time.Duration,
) Loader

type Manager

type Manager interface {
	Get(name string, options metav1.GetOptions) (*v1.ConfigMap, error)
	Update(configmap *v1.ConfigMap) (*v1.ConfigMap, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

type RevokedCertificatesRepository

type RevokedCertificatesRepository interface {
	Insert(hash string) error
	Contains(hash string) bool
}

func NewRepository

func NewRepository(configMapManager Manager, configMapName string, revokedCertsCache Cache) RevokedCertificatesRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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