Versions in this module Expand all Collapse all v0 v0.4.1 Nov 21, 2024 v0.1.1 Nov 12, 2024 Changes in this version + func RegisterKeystoreServer(server *grpc.Server, broker net.Broker, brokerCfg net.BrokerConfig, ...) error + type Client struct + func NewKeystoreClient(broker net.Broker, brokerCfg net.BrokerConfig, conn *grpc.ClientConn) *Client + func (c *Client) AddTag(ctx context.Context, keyID []byte, tag string) error + func (c *Client) CreateKey(ctx context.Context, keyType string, tags []string) ([]byte, error) + func (c *Client) DeleteKey(ctx context.Context, keyID []byte) error + func (c *Client) ExportKey(ctx context.Context, keyID []byte) ([]byte, error) + func (c *Client) ImportKey(ctx context.Context, keyType string, data []byte, tags []string) ([]byte, error) + func (c *Client) ListKeys(ctx context.Context, tags []string) ([][]byte, error) + func (c *Client) ListTags(ctx context.Context, keyID []byte) ([]string, error) + func (c *Client) RemoveTag(ctx context.Context, keyID []byte, tag string) error + func (c *Client) RunUDF(ctx context.Context, name string, keyID []byte, data []byte) ([]byte, error) + func (c *Client) Sign(ctx context.Context, keyID []byte, data []byte) ([]byte, error) + func (c *Client) SignBatch(ctx context.Context, keyID []byte, data [][]byte) ([][]byte, error) + func (c *Client) Verify(ctx context.Context, keyID []byte, data []byte) (bool, error) + func (c *Client) VerifyBatch(ctx context.Context, keyID []byte, data [][]byte) ([]bool, error) + type GRPCService interface + AddTag func(ctx context.Context, keyID []byte, tag string) error + CreateKey func(ctx context.Context, keyType string, tags []string) ([]byte, error) + DeleteKey func(ctx context.Context, keyID []byte) error + ExportKey func(ctx context.Context, keyID []byte) ([]byte, error) + ImportKey func(ctx context.Context, keyType string, data []byte, tags []string) ([]byte, error) + ListKeys func(ctx context.Context, tags []string) ([][]byte, error) + ListTags func(ctx context.Context, keyID []byte) ([]string, error) + RemoveTag func(ctx context.Context, keyID []byte, tag string) error + RunUDF func(ctx context.Context, name string, keyID []byte, data []byte) ([]byte, error) + Sign func(ctx context.Context, keyID []byte, data []byte) ([]byte, error) + SignBatch func(ctx context.Context, keyID []byte, data [][]byte) ([][]byte, error) + Verify func(ctx context.Context, keyID []byte, data []byte) (bool, error) + VerifyBatch func(ctx context.Context, keyID []byte, data [][]byte) ([]bool, error)