encryption

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package encryption is a generated protocol buffer package.

It is generated from these files:

encryption.proto

It has these top-level messages:

Export
Import
KeyInfo
Key
AddKeyRequest
AddKeyResponse
GetKeyRequest
GetKeyResponse
AdminListKeysRequest
AdminListKeysResponse
AdminDeleteKeyRequest
AdminDeleteKeyResponse
AdminExportKeyRequest
AdminExportKeyResponse
AdminImportKeyRequest
AdminImportKeyResponse
AdminCreateKeyRequest
AdminCreateKeyResponse
Params
NodeKey
DeleteNodeRequest
DeleteNodeResponse
SetNodeParamsRequest
SetNodeParamsResponse
GetNodeKeyRequest
GetNodeKeyResponse
SetNodeKeyRequest
SetNodeKeyResponse
DeleteNodeKeyRequest
DeleteNodeKeyResponse
DeleteNodeSharedKeyRequest
DeleteNodeSharedKeyResponse

Package encryption is a generated protocol buffer package.

It is generated from these files:

encryption.proto

It has these top-level messages:

Export
Import
KeyInfo
Key
AddKeyRequest
AddKeyResponse
GetKeyRequest
GetKeyResponse
AdminListKeysRequest
AdminListKeysResponse
AdminDeleteKeyRequest
AdminDeleteKeyResponse
AdminExportKeyRequest
AdminExportKeyResponse
AdminImportKeyRequest
AdminImportKeyResponse
AdminCreateKeyRequest
AdminCreateKeyResponse
Params
NodeKey
DeleteNodeRequest
DeleteNodeResponse
SetNodeParamsRequest
SetNodeParamsResponse
GetNodeKeyRequest
GetNodeKeyResponse
SetNodeKeyRequest
SetNodeKeyResponse
DeleteNodeKeyRequest
DeleteNodeKeyResponse
DeleteNodeSharedKeyRequest
DeleteNodeSharedKeyResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNodeKeyManagerHandler

func RegisterNodeKeyManagerHandler(s server.Server, hdlr NodeKeyManagerHandler, opts ...server.HandlerOption)

func RegisterUserKeyStoreHandler

func RegisterUserKeyStoreHandler(s server.Server, hdlr UserKeyStoreHandler, opts ...server.HandlerOption)

Types

type AddKeyRequest

type AddKeyRequest struct {
	Key         *Key   `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
	StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"`
}

func (*AddKeyRequest) Descriptor

func (*AddKeyRequest) Descriptor() ([]byte, []int)

func (*AddKeyRequest) GetKey

func (m *AddKeyRequest) GetKey() *Key

func (*AddKeyRequest) GetStrPassword

func (m *AddKeyRequest) GetStrPassword() string

func (*AddKeyRequest) ProtoMessage

func (*AddKeyRequest) ProtoMessage()

func (*AddKeyRequest) Reset

func (m *AddKeyRequest) Reset()

func (*AddKeyRequest) String

func (m *AddKeyRequest) String() string

type AddKeyResponse

type AddKeyResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*AddKeyResponse) Descriptor

func (*AddKeyResponse) Descriptor() ([]byte, []int)

func (*AddKeyResponse) GetSuccess

func (m *AddKeyResponse) GetSuccess() bool

func (*AddKeyResponse) ProtoMessage

func (*AddKeyResponse) ProtoMessage()

func (*AddKeyResponse) Reset

func (m *AddKeyResponse) Reset()

func (*AddKeyResponse) String

func (m *AddKeyResponse) String() string

type AdminCreateKeyRequest

type AdminCreateKeyRequest struct {
	KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"`
}

func (*AdminCreateKeyRequest) Descriptor

func (*AdminCreateKeyRequest) Descriptor() ([]byte, []int)

func (*AdminCreateKeyRequest) GetKeyID

func (m *AdminCreateKeyRequest) GetKeyID() string

func (*AdminCreateKeyRequest) GetLabel

func (m *AdminCreateKeyRequest) GetLabel() string

func (*AdminCreateKeyRequest) ProtoMessage

func (*AdminCreateKeyRequest) ProtoMessage()

func (*AdminCreateKeyRequest) Reset

func (m *AdminCreateKeyRequest) Reset()

func (*AdminCreateKeyRequest) String

func (m *AdminCreateKeyRequest) String() string

type AdminCreateKeyResponse

type AdminCreateKeyResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*AdminCreateKeyResponse) Descriptor

func (*AdminCreateKeyResponse) Descriptor() ([]byte, []int)

func (*AdminCreateKeyResponse) GetSuccess

func (m *AdminCreateKeyResponse) GetSuccess() bool

func (*AdminCreateKeyResponse) ProtoMessage

func (*AdminCreateKeyResponse) ProtoMessage()

func (*AdminCreateKeyResponse) Reset

func (m *AdminCreateKeyResponse) Reset()

func (*AdminCreateKeyResponse) String

func (m *AdminCreateKeyResponse) String() string

type AdminDeleteKeyRequest

type AdminDeleteKeyRequest struct {
	KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"`
}

func (*AdminDeleteKeyRequest) Descriptor

func (*AdminDeleteKeyRequest) Descriptor() ([]byte, []int)

func (*AdminDeleteKeyRequest) GetKeyID

func (m *AdminDeleteKeyRequest) GetKeyID() string

func (*AdminDeleteKeyRequest) ProtoMessage

func (*AdminDeleteKeyRequest) ProtoMessage()

func (*AdminDeleteKeyRequest) Reset

func (m *AdminDeleteKeyRequest) Reset()

func (*AdminDeleteKeyRequest) String

func (m *AdminDeleteKeyRequest) String() string

type AdminDeleteKeyResponse

type AdminDeleteKeyResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*AdminDeleteKeyResponse) Descriptor

func (*AdminDeleteKeyResponse) Descriptor() ([]byte, []int)

func (*AdminDeleteKeyResponse) GetSuccess

func (m *AdminDeleteKeyResponse) GetSuccess() bool

func (*AdminDeleteKeyResponse) ProtoMessage

func (*AdminDeleteKeyResponse) ProtoMessage()

func (*AdminDeleteKeyResponse) Reset

func (m *AdminDeleteKeyResponse) Reset()

func (*AdminDeleteKeyResponse) String

func (m *AdminDeleteKeyResponse) String() string

type AdminExportKeyRequest

type AdminExportKeyRequest struct {
	KeyID       string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"`
	StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"`
}

func (*AdminExportKeyRequest) Descriptor

func (*AdminExportKeyRequest) Descriptor() ([]byte, []int)

func (*AdminExportKeyRequest) GetKeyID

func (m *AdminExportKeyRequest) GetKeyID() string

func (*AdminExportKeyRequest) GetStrPassword

func (m *AdminExportKeyRequest) GetStrPassword() string

func (*AdminExportKeyRequest) ProtoMessage

func (*AdminExportKeyRequest) ProtoMessage()

func (*AdminExportKeyRequest) Reset

func (m *AdminExportKeyRequest) Reset()

func (*AdminExportKeyRequest) String

func (m *AdminExportKeyRequest) String() string

type AdminExportKeyResponse

type AdminExportKeyResponse struct {
	Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}

func (*AdminExportKeyResponse) Descriptor

func (*AdminExportKeyResponse) Descriptor() ([]byte, []int)

func (*AdminExportKeyResponse) GetKey

func (m *AdminExportKeyResponse) GetKey() *Key

func (*AdminExportKeyResponse) ProtoMessage

func (*AdminExportKeyResponse) ProtoMessage()

func (*AdminExportKeyResponse) Reset

func (m *AdminExportKeyResponse) Reset()

func (*AdminExportKeyResponse) String

func (m *AdminExportKeyResponse) String() string

type AdminImportKeyRequest

type AdminImportKeyRequest struct {
	Key         *Key   `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
	StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"`
	Override    bool   `protobuf:"varint,3,opt,name=Override" json:"Override,omitempty"`
}

func (*AdminImportKeyRequest) Descriptor

func (*AdminImportKeyRequest) Descriptor() ([]byte, []int)

func (*AdminImportKeyRequest) GetKey

func (m *AdminImportKeyRequest) GetKey() *Key

func (*AdminImportKeyRequest) GetOverride

func (m *AdminImportKeyRequest) GetOverride() bool

func (*AdminImportKeyRequest) GetStrPassword

func (m *AdminImportKeyRequest) GetStrPassword() string

func (*AdminImportKeyRequest) ProtoMessage

func (*AdminImportKeyRequest) ProtoMessage()

func (*AdminImportKeyRequest) Reset

func (m *AdminImportKeyRequest) Reset()

func (*AdminImportKeyRequest) String

func (m *AdminImportKeyRequest) String() string

type AdminImportKeyResponse

type AdminImportKeyResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*AdminImportKeyResponse) Descriptor

func (*AdminImportKeyResponse) Descriptor() ([]byte, []int)

func (*AdminImportKeyResponse) GetSuccess

func (m *AdminImportKeyResponse) GetSuccess() bool

func (*AdminImportKeyResponse) ProtoMessage

func (*AdminImportKeyResponse) ProtoMessage()

func (*AdminImportKeyResponse) Reset

func (m *AdminImportKeyResponse) Reset()

func (*AdminImportKeyResponse) String

func (m *AdminImportKeyResponse) String() string

type AdminListKeysRequest

type AdminListKeysRequest struct {
}

func (*AdminListKeysRequest) Descriptor

func (*AdminListKeysRequest) Descriptor() ([]byte, []int)

func (*AdminListKeysRequest) ProtoMessage

func (*AdminListKeysRequest) ProtoMessage()

func (*AdminListKeysRequest) Reset

func (m *AdminListKeysRequest) Reset()

func (*AdminListKeysRequest) String

func (m *AdminListKeysRequest) String() string

type AdminListKeysResponse

type AdminListKeysResponse struct {
	Keys []*Key `protobuf:"bytes,1,rep,name=Keys" json:"Keys,omitempty"`
}

func (*AdminListKeysResponse) Descriptor

func (*AdminListKeysResponse) Descriptor() ([]byte, []int)

func (*AdminListKeysResponse) GetKeys

func (m *AdminListKeysResponse) GetKeys() []*Key

func (*AdminListKeysResponse) ProtoMessage

func (*AdminListKeysResponse) ProtoMessage()

func (*AdminListKeysResponse) Reset

func (m *AdminListKeysResponse) Reset()

func (*AdminListKeysResponse) String

func (m *AdminListKeysResponse) String() string

type DeleteNodeKeyRequest

type DeleteNodeKeyRequest struct {
	NodeId string   `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"`
	Users  []string `protobuf:"bytes,3,rep,name=Users" json:"Users,omitempty"`
}

func (*DeleteNodeKeyRequest) Descriptor

func (*DeleteNodeKeyRequest) Descriptor() ([]byte, []int)

func (*DeleteNodeKeyRequest) GetNodeId

func (m *DeleteNodeKeyRequest) GetNodeId() string

func (*DeleteNodeKeyRequest) GetUsers

func (m *DeleteNodeKeyRequest) GetUsers() []string

func (*DeleteNodeKeyRequest) ProtoMessage

func (*DeleteNodeKeyRequest) ProtoMessage()

func (*DeleteNodeKeyRequest) Reset

func (m *DeleteNodeKeyRequest) Reset()

func (*DeleteNodeKeyRequest) String

func (m *DeleteNodeKeyRequest) String() string

type DeleteNodeKeyResponse

type DeleteNodeKeyResponse struct {
}

func (*DeleteNodeKeyResponse) Descriptor

func (*DeleteNodeKeyResponse) Descriptor() ([]byte, []int)

func (*DeleteNodeKeyResponse) ProtoMessage

func (*DeleteNodeKeyResponse) ProtoMessage()

func (*DeleteNodeKeyResponse) Reset

func (m *DeleteNodeKeyResponse) Reset()

func (*DeleteNodeKeyResponse) String

func (m *DeleteNodeKeyResponse) String() string

type DeleteNodeRequest

type DeleteNodeRequest struct {
	NodeIds []string `protobuf:"bytes,1,rep,name=NodeIds" json:"NodeIds,omitempty"`
}

func (*DeleteNodeRequest) Descriptor

func (*DeleteNodeRequest) Descriptor() ([]byte, []int)

func (*DeleteNodeRequest) GetNodeIds

func (m *DeleteNodeRequest) GetNodeIds() []string

func (*DeleteNodeRequest) ProtoMessage

func (*DeleteNodeRequest) ProtoMessage()

func (*DeleteNodeRequest) Reset

func (m *DeleteNodeRequest) Reset()

func (*DeleteNodeRequest) String

func (m *DeleteNodeRequest) String() string

type DeleteNodeResponse

type DeleteNodeResponse struct {
	AllDeleted bool     `protobuf:"varint,1,opt,name=AllDeleted" json:"AllDeleted,omitempty"`
	Deleted    []string `protobuf:"bytes,2,rep,name=Deleted" json:"Deleted,omitempty"`
}

func (*DeleteNodeResponse) Descriptor

func (*DeleteNodeResponse) Descriptor() ([]byte, []int)

func (*DeleteNodeResponse) GetAllDeleted

func (m *DeleteNodeResponse) GetAllDeleted() bool

func (*DeleteNodeResponse) GetDeleted

func (m *DeleteNodeResponse) GetDeleted() []string

func (*DeleteNodeResponse) ProtoMessage

func (*DeleteNodeResponse) ProtoMessage()

func (*DeleteNodeResponse) Reset

func (m *DeleteNodeResponse) Reset()

func (*DeleteNodeResponse) String

func (m *DeleteNodeResponse) String() string

type DeleteNodeSharedKeyRequest

type DeleteNodeSharedKeyRequest struct {
	NodeId  string   `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"`
	OwnerId string   `protobuf:"bytes,2,opt,name=OwnerId" json:"OwnerId,omitempty"`
	Users   []string `protobuf:"bytes,3,rep,name=Users" json:"Users,omitempty"`
}

func (*DeleteNodeSharedKeyRequest) Descriptor

func (*DeleteNodeSharedKeyRequest) Descriptor() ([]byte, []int)

func (*DeleteNodeSharedKeyRequest) GetNodeId

func (m *DeleteNodeSharedKeyRequest) GetNodeId() string

func (*DeleteNodeSharedKeyRequest) GetOwnerId

func (m *DeleteNodeSharedKeyRequest) GetOwnerId() string

func (*DeleteNodeSharedKeyRequest) GetUsers

func (m *DeleteNodeSharedKeyRequest) GetUsers() []string

func (*DeleteNodeSharedKeyRequest) ProtoMessage

func (*DeleteNodeSharedKeyRequest) ProtoMessage()

func (*DeleteNodeSharedKeyRequest) Reset

func (m *DeleteNodeSharedKeyRequest) Reset()

func (*DeleteNodeSharedKeyRequest) String

func (m *DeleteNodeSharedKeyRequest) String() string

type DeleteNodeSharedKeyResponse

type DeleteNodeSharedKeyResponse struct {
}

func (*DeleteNodeSharedKeyResponse) Descriptor

func (*DeleteNodeSharedKeyResponse) Descriptor() ([]byte, []int)

func (*DeleteNodeSharedKeyResponse) ProtoMessage

func (*DeleteNodeSharedKeyResponse) ProtoMessage()

func (*DeleteNodeSharedKeyResponse) Reset

func (m *DeleteNodeSharedKeyResponse) Reset()

func (*DeleteNodeSharedKeyResponse) String

func (m *DeleteNodeSharedKeyResponse) String() string

type Export

type Export struct {
	By   string `protobuf:"bytes,1,opt,name=By" json:"By,omitempty"`
	Date int32  `protobuf:"varint,2,opt,name=Date" json:"Date,omitempty"`
}

func (*Export) Descriptor

func (*Export) Descriptor() ([]byte, []int)

func (*Export) GetBy

func (m *Export) GetBy() string

func (*Export) GetDate

func (m *Export) GetDate() int32

func (*Export) ProtoMessage

func (*Export) ProtoMessage()

func (*Export) Reset

func (m *Export) Reset()

func (*Export) String

func (m *Export) String() string

type GetKeyRequest

type GetKeyRequest struct {
	Owner       string `protobuf:"bytes,1,opt,name=Owner" json:"Owner,omitempty"`
	KeyID       string `protobuf:"bytes,2,opt,name=KeyID" json:"KeyID,omitempty"`
	StrPassword string `protobuf:"bytes,3,opt,name=StrPassword" json:"StrPassword,omitempty"`
}

func (*GetKeyRequest) Descriptor

func (*GetKeyRequest) Descriptor() ([]byte, []int)

func (*GetKeyRequest) GetKeyID

func (m *GetKeyRequest) GetKeyID() string

func (*GetKeyRequest) GetOwner

func (m *GetKeyRequest) GetOwner() string

func (*GetKeyRequest) GetStrPassword

func (m *GetKeyRequest) GetStrPassword() string

func (*GetKeyRequest) ProtoMessage

func (*GetKeyRequest) ProtoMessage()

func (*GetKeyRequest) Reset

func (m *GetKeyRequest) Reset()

func (*GetKeyRequest) String

func (m *GetKeyRequest) String() string

type GetKeyResponse

type GetKeyResponse struct {
	Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}

func (*GetKeyResponse) Descriptor

func (*GetKeyResponse) Descriptor() ([]byte, []int)

func (*GetKeyResponse) GetKey

func (m *GetKeyResponse) GetKey() *Key

func (*GetKeyResponse) ProtoMessage

func (*GetKeyResponse) ProtoMessage()

func (*GetKeyResponse) Reset

func (m *GetKeyResponse) Reset()

func (*GetKeyResponse) String

func (m *GetKeyResponse) String() string

type GetNodeKeyRequest

type GetNodeKeyRequest struct {
	NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=UserId" json:"UserId,omitempty"`
}

func (*GetNodeKeyRequest) Descriptor

func (*GetNodeKeyRequest) Descriptor() ([]byte, []int)

func (*GetNodeKeyRequest) GetNodeId

func (m *GetNodeKeyRequest) GetNodeId() string

func (*GetNodeKeyRequest) GetUserId

func (m *GetNodeKeyRequest) GetUserId() string

func (*GetNodeKeyRequest) ProtoMessage

func (*GetNodeKeyRequest) ProtoMessage()

func (*GetNodeKeyRequest) Reset

func (m *GetNodeKeyRequest) Reset()

func (*GetNodeKeyRequest) String

func (m *GetNodeKeyRequest) String() string

type GetNodeKeyResponse

type GetNodeKeyResponse struct {
	OwnerId      string `protobuf:"bytes,1,opt,name=OwnerId" json:"OwnerId,omitempty"`
	EncryptedKey []byte `protobuf:"bytes,2,opt,name=EncryptedKey,proto3" json:"EncryptedKey,omitempty"`
	Nonce        []byte `protobuf:"bytes,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	BlockSize    int32  `protobuf:"varint,4,opt,name=BlockSize" json:"BlockSize,omitempty"`
}

func (*GetNodeKeyResponse) Descriptor

func (*GetNodeKeyResponse) Descriptor() ([]byte, []int)

func (*GetNodeKeyResponse) GetBlockSize

func (m *GetNodeKeyResponse) GetBlockSize() int32

func (*GetNodeKeyResponse) GetEncryptedKey

func (m *GetNodeKeyResponse) GetEncryptedKey() []byte

func (*GetNodeKeyResponse) GetNonce

func (m *GetNodeKeyResponse) GetNonce() []byte

func (*GetNodeKeyResponse) GetOwnerId

func (m *GetNodeKeyResponse) GetOwnerId() string

func (*GetNodeKeyResponse) ProtoMessage

func (*GetNodeKeyResponse) ProtoMessage()

func (*GetNodeKeyResponse) Reset

func (m *GetNodeKeyResponse) Reset()

func (*GetNodeKeyResponse) String

func (m *GetNodeKeyResponse) String() string

type Import

type Import struct {
	By   string `protobuf:"bytes,1,opt,name=By" json:"By,omitempty"`
	Date int32  `protobuf:"varint,3,opt,name=Date" json:"Date,omitempty"`
}

func (*Import) Descriptor

func (*Import) Descriptor() ([]byte, []int)

func (*Import) GetBy

func (m *Import) GetBy() string

func (*Import) GetDate

func (m *Import) GetDate() int32

func (*Import) ProtoMessage

func (*Import) ProtoMessage()

func (*Import) Reset

func (m *Import) Reset()

func (*Import) String

func (m *Import) String() string

type Key

type Key struct {
	Owner        string   `protobuf:"bytes,1,opt,name=Owner" json:"Owner,omitempty"`
	ID           string   `protobuf:"bytes,2,opt,name=ID" json:"ID,omitempty"`
	Label        string   `protobuf:"bytes,3,opt,name=Label" json:"Label,omitempty"`
	Content      string   `protobuf:"bytes,4,opt,name=Content" json:"Content,omitempty"`
	CreationDate int32    `protobuf:"varint,5,opt,name=CreationDate" json:"CreationDate,omitempty"`
	Info         *KeyInfo `protobuf:"bytes,6,opt,name=Info" json:"Info,omitempty"`
}

func (*Key) Descriptor

func (*Key) Descriptor() ([]byte, []int)

func (*Key) GetContent

func (m *Key) GetContent() string

func (*Key) GetCreationDate

func (m *Key) GetCreationDate() int32

func (*Key) GetID

func (m *Key) GetID() string

func (*Key) GetInfo

func (m *Key) GetInfo() *KeyInfo

func (*Key) GetLabel

func (m *Key) GetLabel() string

func (*Key) GetOwner

func (m *Key) GetOwner() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

type KeyInfo

type KeyInfo struct {
	Exports []*Export `protobuf:"bytes,1,rep,name=Exports" json:"Exports,omitempty"`
	Imports []*Import `protobuf:"bytes,2,rep,name=Imports" json:"Imports,omitempty"`
}

func (*KeyInfo) Descriptor

func (*KeyInfo) Descriptor() ([]byte, []int)

func (*KeyInfo) GetExports

func (m *KeyInfo) GetExports() []*Export

func (*KeyInfo) GetImports

func (m *KeyInfo) GetImports() []*Import

func (*KeyInfo) ProtoMessage

func (*KeyInfo) ProtoMessage()

func (*KeyInfo) Reset

func (m *KeyInfo) Reset()

func (*KeyInfo) String

func (m *KeyInfo) String() string

type NodeKey

type NodeKey struct {
	NodeId    string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"`
	UserId    string `protobuf:"bytes,2,opt,name=UserId" json:"UserId,omitempty"`
	OwnerId   string `protobuf:"bytes,3,opt,name=OwnerId" json:"OwnerId,omitempty"`
	Nonce     []byte `protobuf:"bytes,4,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	BlockSize int32  `protobuf:"varint,5,opt,name=BlockSize" json:"BlockSize,omitempty"`
	Data      []byte `protobuf:"bytes,6,opt,name=Data,proto3" json:"Data,omitempty"`
}

func (*NodeKey) Descriptor

func (*NodeKey) Descriptor() ([]byte, []int)

func (*NodeKey) GetBlockSize

func (m *NodeKey) GetBlockSize() int32

func (*NodeKey) GetData

func (m *NodeKey) GetData() []byte

func (*NodeKey) GetNodeId

func (m *NodeKey) GetNodeId() string

func (*NodeKey) GetNonce

func (m *NodeKey) GetNonce() []byte

func (*NodeKey) GetOwnerId

func (m *NodeKey) GetOwnerId() string

func (*NodeKey) GetUserId

func (m *NodeKey) GetUserId() string

func (*NodeKey) ProtoMessage

func (*NodeKey) ProtoMessage()

func (*NodeKey) Reset

func (m *NodeKey) Reset()

func (*NodeKey) String

func (m *NodeKey) String() string

type NodeKeyManager

type NodeKeyManager struct {
	NodeKeyManagerHandler
}

func (*NodeKeyManager) DeleteNode

func (*NodeKeyManager) DeleteNodeKey

func (*NodeKeyManager) DeleteNodeSharedKey

func (*NodeKeyManager) GetNodeKey

func (*NodeKeyManager) SetNodeKey

func (*NodeKeyManager) SetNodeParams

type NodeKeyManagerClient

type NodeKeyManagerClient interface {
	DeleteNode(ctx context.Context, in *DeleteNodeRequest, opts ...client.CallOption) (*DeleteNodeResponse, error)
	SetNodeParams(ctx context.Context, in *SetNodeParamsRequest, opts ...client.CallOption) (*SetNodeParamsResponse, error)
	GetNodeKey(ctx context.Context, in *GetNodeKeyRequest, opts ...client.CallOption) (*GetNodeKeyResponse, error)
	SetNodeKey(ctx context.Context, in *SetNodeKeyRequest, opts ...client.CallOption) (*SetNodeKeyResponse, error)
	DeleteNodeKey(ctx context.Context, in *DeleteNodeKeyRequest, opts ...client.CallOption) (*DeleteNodeKeyResponse, error)
	DeleteNodeSharedKey(ctx context.Context, in *DeleteNodeSharedKeyRequest, opts ...client.CallOption) (*DeleteNodeSharedKeyResponse, error)
}

func NewNodeKeyManagerClient

func NewNodeKeyManagerClient(serviceName string, c client.Client) NodeKeyManagerClient

type Params

type Params struct {
	Nonce     []byte `protobuf:"bytes,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	BlockSize int32  `protobuf:"varint,2,opt,name=BlockSize" json:"BlockSize,omitempty"`
}

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetBlockSize

func (m *Params) GetBlockSize() int32

func (*Params) GetNonce

func (m *Params) GetNonce() []byte

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) String

func (m *Params) String() string

type SetNodeKeyRequest

type SetNodeKeyRequest struct {
	Key *NodeKey `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}

func (*SetNodeKeyRequest) Descriptor

func (*SetNodeKeyRequest) Descriptor() ([]byte, []int)

func (*SetNodeKeyRequest) GetKey

func (m *SetNodeKeyRequest) GetKey() *NodeKey

func (*SetNodeKeyRequest) ProtoMessage

func (*SetNodeKeyRequest) ProtoMessage()

func (*SetNodeKeyRequest) Reset

func (m *SetNodeKeyRequest) Reset()

func (*SetNodeKeyRequest) String

func (m *SetNodeKeyRequest) String() string

type SetNodeKeyResponse

type SetNodeKeyResponse struct {
}

func (*SetNodeKeyResponse) Descriptor

func (*SetNodeKeyResponse) Descriptor() ([]byte, []int)

func (*SetNodeKeyResponse) ProtoMessage

func (*SetNodeKeyResponse) ProtoMessage()

func (*SetNodeKeyResponse) Reset

func (m *SetNodeKeyResponse) Reset()

func (*SetNodeKeyResponse) String

func (m *SetNodeKeyResponse) String() string

type SetNodeParamsRequest

type SetNodeParamsRequest struct {
	NodeId string  `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"`
	Params *Params `protobuf:"bytes,2,opt,name=Params" json:"Params,omitempty"`
}

func (*SetNodeParamsRequest) Descriptor

func (*SetNodeParamsRequest) Descriptor() ([]byte, []int)

func (*SetNodeParamsRequest) GetNodeId

func (m *SetNodeParamsRequest) GetNodeId() string

func (*SetNodeParamsRequest) GetParams

func (m *SetNodeParamsRequest) GetParams() *Params

func (*SetNodeParamsRequest) ProtoMessage

func (*SetNodeParamsRequest) ProtoMessage()

func (*SetNodeParamsRequest) Reset

func (m *SetNodeParamsRequest) Reset()

func (*SetNodeParamsRequest) String

func (m *SetNodeParamsRequest) String() string

type SetNodeParamsResponse

type SetNodeParamsResponse struct {
}

func (*SetNodeParamsResponse) Descriptor

func (*SetNodeParamsResponse) Descriptor() ([]byte, []int)

func (*SetNodeParamsResponse) ProtoMessage

func (*SetNodeParamsResponse) ProtoMessage()

func (*SetNodeParamsResponse) Reset

func (m *SetNodeParamsResponse) Reset()

func (*SetNodeParamsResponse) String

func (m *SetNodeParamsResponse) String() string

type UserKeyStore

type UserKeyStore struct {
	UserKeyStoreHandler
}

func (*UserKeyStore) AddKey

func (h *UserKeyStore) AddKey(ctx context.Context, in *AddKeyRequest, out *AddKeyResponse) error

func (*UserKeyStore) AdminCreateKey

func (*UserKeyStore) AdminDeleteKey

func (*UserKeyStore) AdminExportKey

func (*UserKeyStore) AdminImportKey

func (*UserKeyStore) AdminListKeys

func (*UserKeyStore) GetKey

func (h *UserKeyStore) GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error

type UserKeyStoreClient

func NewUserKeyStoreClient

func NewUserKeyStoreClient(serviceName string, c client.Client) UserKeyStoreClient

Jump to

Keyboard shortcuts

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