certStore

package
v0.0.0-...-5b89c6a Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAStore

type CAStore interface {
	GetCAByID(ID string) (*cert.CaResponse, error)
	GetSignerByID(ID string) (ssh.Signer, error)
	CreateCA(Req cert.CaRequest) (*cert.CaResponse, error)
	ListCAs() ([]*cert.CaResponse, error)
}

type InMemortCaStore

type InMemortCaStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewInMemoryCaStore

func NewInMemoryCaStore() *InMemortCaStore

func (*InMemortCaStore) CreateCA

func (store *InMemortCaStore) CreateCA(CAReq cert.CaRequest) (*cert.CaResponse, error)

func (*InMemortCaStore) GetCAByID

func (store *InMemortCaStore) GetCAByID(ID string) (*cert.CaResponse, error)

func (*InMemortCaStore) GetSignerByID

func (store *InMemortCaStore) GetSignerByID(ID string) (ssh.Signer, error)

func (*InMemortCaStore) ListCAs

func (store *InMemortCaStore) ListCAs() ([]*cert.CaResponse, error)

type InMemoryUserList

type InMemoryUserList map[string]string

func (InMemoryUserList) GetPasswordHash

func (ul InMemoryUserList) GetPasswordHash(un string) (string, error)

func (InMemoryUserList) Register

func (ul InMemoryUserList) Register(u *auth.User) *echo.HTTPError

Jump to

Keyboard shortcuts

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