Documentation ¶
Index ¶
- func RegisterKeystoreServer(server *grpc.Server, broker net.Broker, brokerCfg net.BrokerConfig, ...) error
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterKeystoreServer ¶
func RegisterKeystoreServer(server *grpc.Server, broker net.Broker, brokerCfg net.BrokerConfig, impl GRPCService) error
Types ¶
type Client ¶
type Client struct { services.Service *goplugin.PluginClient // contains filtered or unexported fields }
func NewKeystoreClient ¶
func NewKeystoreClient(broker net.Broker, brokerCfg net.BrokerConfig, conn *grpc.ClientConn) *Client
type GRPCService ¶
type GRPCService interface { services.Service Sign(ctx context.Context, keyID []byte, data []byte) ([]byte, error) SignBatch(ctx context.Context, keyID []byte, data [][]byte) ([][]byte, error) Verify(ctx context.Context, keyID []byte, data []byte) (bool, error) VerifyBatch(ctx context.Context, keyID []byte, data [][]byte) ([]bool, error) ListKeys(ctx context.Context, tags []string) ([][]byte, error) RunUDF(ctx context.Context, name string, keyID []byte, data []byte) ([]byte, error) ImportKey(ctx context.Context, keyType string, data []byte, tags []string) ([]byte, error) ExportKey(ctx context.Context, keyID []byte) ([]byte, error) CreateKey(ctx context.Context, keyType string, tags []string) ([]byte, error) DeleteKey(ctx context.Context, keyID []byte) error AddTag(ctx context.Context, keyID []byte, tag string) error RemoveTag(ctx context.Context, keyID []byte, tag string) error ListTags(ctx context.Context, keyID []byte) ([]string, error) }
GRPCService This interface contains all the functionalities of the GRPC layer of the LOOPP keystore
Click to show internal directories.
Click to hide internal directories.