keystore

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (*Client) AddTag

func (c *Client) AddTag(ctx context.Context, keyID []byte, tag string) error

func (*Client) CreateKey

func (c *Client) CreateKey(ctx context.Context, keyType string, tags []string) ([]byte, error)

func (*Client) DeleteKey

func (c *Client) DeleteKey(ctx context.Context, keyID []byte) error

func (*Client) ExportKey

func (c *Client) ExportKey(ctx context.Context, keyID []byte) ([]byte, error)

func (*Client) ImportKey

func (c *Client) ImportKey(ctx context.Context, keyType string, data []byte, tags []string) ([]byte, error)

func (*Client) ListKeys

func (c *Client) ListKeys(ctx context.Context, tags []string) ([][]byte, error)

func (*Client) ListTags

func (c *Client) ListTags(ctx context.Context, keyID []byte) ([]string, error)

func (*Client) RemoveTag

func (c *Client) RemoveTag(ctx context.Context, keyID []byte, tag string) error

func (*Client) RunUDF

func (c *Client) RunUDF(ctx context.Context, name string, keyID []byte, data []byte) ([]byte, error)

func (*Client) Sign

func (c *Client) Sign(ctx context.Context, keyID []byte, data []byte) ([]byte, error)

func (*Client) SignBatch

func (c *Client) SignBatch(ctx context.Context, keyID []byte, data [][]byte) ([][]byte, error)

func (*Client) Verify

func (c *Client) Verify(ctx context.Context, keyID []byte, data []byte) (bool, error)

func (*Client) VerifyBatch

func (c *Client) VerifyBatch(ctx context.Context, keyID []byte, data [][]byte) ([]bool, error)

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

Jump to

Keyboard shortcuts

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