cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client        *rpc.Client
	Roots         *x509.CertPool
	Intermediates *x509.CertPool
}

func (*Client) GetSignerVerifier

func (c *Client) GetSignerVerifier(ctx context.Context) (*signerverifier.CertSignerVerifier, error)

func (*Client) StoreCert

func (c *Client) StoreCert(ctx context.Context, priv PrivateKey, cert, chain []byte) error

type Credential

type Credential struct {
	PrivateKey []byte
	Cert       []byte
	Chain      []byte
}

type GetCredentialRequest

type GetCredentialRequest struct {
	ID string
}

type PrivateKey

type PrivateKey interface {
	crypto.PrivateKey
	Public() crypto.PublicKey
}

type Service

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

func NewService

func NewService() *Service

func (*Service) GetCredential

func (s *Service) GetCredential(req GetCredentialRequest, resp *Credential) error

func (*Service) StoreCredential

func (s *Service) StoreCredential(req StoreCredentialRequest, resp *Credential) error

type StoreCredentialRequest

type StoreCredentialRequest struct {
	ID         string
	Credential *Credential
}

Jump to

Keyboard shortcuts

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