credential

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAPool

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

func MakeCAPool

func MakeCAPool(caPool CAPoolGetter, getCAPool GetCAPool) CAPool

func (CAPool) GetPool

func (c CAPool) GetPool() (*x509.CertPool, error)

func (CAPool) IsValid

func (c CAPool) IsValid() bool

type CAPoolGetter

type CAPoolGetter = interface {
	IsValid() bool
	GetPool() (*x509.CertPool, error)
}

type Config

type GetCAPool

type GetCAPool func() []*x509.Certificate

type Manager

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

func New

func New(cfg Config, save func()) *Manager

func (*Manager) AddOrReplaceCredential

func (m *Manager) AddOrReplaceCredential(c credential.Credential)

func (*Manager) AddOrReplaceCredentials

func (m *Manager) AddOrReplaceCredentials(ca ...credential.Credential)

func (*Manager) ClearCredentials

func (m *Manager) ClearCredentials()

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) ExportConfig

func (m *Manager) ExportConfig() Config

func (*Manager) Get

func (m *Manager) Get(request *net.Request) (*pool.Message, error)

func (*Manager) GetCAPool

func (m *Manager) GetCAPool() []*x509.Certificate

func (*Manager) Post

func (m *Manager) Post(request *net.Request) (*pool.Message, error)

func (*Manager) RemoveCredentials

func (m *Manager) RemoveCredentials(ids ...int)

func (*Manager) RemoveCredentialsBySubjects

func (m *Manager) RemoveCredentialsBySubjects(subjects ...string)

Jump to

Keyboard shortcuts

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