mailproxy: Index | Files

package pkiclient

import ""

Package pkiclient implements a caching wrapper around core/pki.Client.


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client is a caching PKI client.

func New Uses

func New(impl pki.Client) *Client

New constructs a new Client backed by an existing pki.Client instance.

func (*Client) Deserialize Uses

func (c *Client) Deserialize(raw []byte) (*pki.Document, error)

Deserialize returns PKI document given the raw bytes.

func (*Client) Get Uses

func (c *Client) Get(ctx context.Context, epoch uint64) (*pki.Document, []byte, error)

Get returns the PKI document for the provided epoch.

func (*Client) Halt Uses

func (c *Client) Halt()

Halt tears down the Client instance.

func (*Client) Post Uses

func (c *Client) Post(ctx context.Context, epoch uint64, signingKey *eddsa.PrivateKey, d *pki.MixDescriptor) error

Post posts the node's descriptor to the PKI for the provided epoch.

Package pkiclient imports 8 packages (graph) and is imported by 1 packages. Updated 2018-06-09. Refresh now. Tools for package owners.