keysd: github.com/keys-pub/keysd/service Index | Files | Directories

package service

import "github.com/keys-pub/keysd/service"

Index

Package Files

auth.go autostart.go cert.go client.go cmd.go cmd_auth.go cmd_config.go cmd_db.go cmd_encrypt.go cmd_export.go cmd_import.go cmd_key.go cmd_log.go cmd_other.go cmd_pull.go cmd_sigchain.go cmd_sign.go cmd_start.go cmd_user.go cmd_wormhole.go config.go decrypt.go docs.go encode.go encrypt.go exec.go export.go import.go install.go items.go key.go keyring.go keys.go keys.pb.go log.go logrus.go messages.go password.go path.go pid.go pull.go push.go rand.go rpc.go run.go search.go service.go sigchain.go sign.go status.go support.go time.go user.go verify.go watch.go wormhole.go

Variables

var (
    ErrInvalidLengthKeys        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowKeys          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupKeys = fmt.Errorf("proto: unexpected end of group")
)
var ContentType_name = map[int32]string{
    0:  "BINARY_CONTENT",
    1:  "UTF8_CONTENT",
}
var ContentType_value = map[string]int32{
    "BINARY_CONTENT": 0,
    "UTF8_CONTENT":   1,
}
var Encoding_name = map[int32]string{
    0:  "HEX",
    1:  "BASE62",
    2:  "BASE58",
    3:  "BASE32",
    4:  "BASE16",
    5:  "BASE64",
    6:  "SALTPACK",
    7:  "BIP39",
}
var Encoding_value = map[string]int32{
    "HEX":      0,
    "BASE62":   1,
    "BASE58":   2,
    "BASE32":   3,
    "BASE16":   4,
    "BASE64":   5,
    "SALTPACK": 6,
    "BIP39":    7,
}
var EncryptMode_name = map[int32]string{
    0:  "DEFAULT_ENCRYPT_MODE",
    1:  "ENCRYPT_V2",
    2:  "SIGNCRYPT_V1",
}
var EncryptMode_value = map[string]int32{
    "DEFAULT_ENCRYPT_MODE": 0,
    "ENCRYPT_V2":           1,
    "SIGNCRYPT_V1":         2,
}
var ErrWormholeTimedOut = errors.New("wormhole timed out")
var ExportType_name = map[int32]string{
    0:  "DEFAULT_EXPORT_TYPE",
    1:  "SALTPACK_EXPORT_TYPE",
}
var ExportType_value = map[string]int32{
    "DEFAULT_EXPORT_TYPE":  0,
    "SALTPACK_EXPORT_TYPE": 1,
}
var KeyType_name = map[int32]string{
    0:  "UNKNOWN_KEY_TYPE",
    10: "EDX25519",
    11: "EDX25519_PUBLIC",
    20: "X25519",
    21: "X25519_PUBLIC",
}
var KeyType_value = map[string]int32{
    "UNKNOWN_KEY_TYPE": 0,
    "EDX25519":         10,
    "EDX25519_PUBLIC":  11,
    "X25519":           20,
    "X25519_PUBLIC":    21,
}
var MessageType_name = map[int32]string{
    0:  "MESSAGE_SENT",
    1:  "MESSAGE_PENDING",
    2:  "MESSAGE_ACK",
}
var MessageType_value = map[string]int32{
    "MESSAGE_SENT":    0,
    "MESSAGE_PENDING": 1,
    "MESSAGE_ACK":     2,
}
var SortDirection_name = map[int32]string{
    0:  "ASC",
    1:  "DESC",
}
var SortDirection_value = map[string]int32{
    "ASC":  0,
    "DESC": 1,
}
var UserStatus_name = map[int32]string{
    0:  "USER_UNKNOWN",
    1:  "USER_OK",
    2:  "USER_RESOURCE_NOT_FOUND",
    3:  "USER_CONTENT_NOT_FOUND",
    4:  "USER_CONN_FAILURE",
    5:  "USER_FAILURE",
}
var UserStatus_value = map[string]int32{
    "USER_UNKNOWN":            0,
    "USER_OK":                 1,
    "USER_RESOURCE_NOT_FOUND": 2,
    "USER_CONTENT_NOT_FOUND":  3,
    "USER_CONN_FAILURE":       4,
    "USER_FAILURE":            5,
}
var WatchStatus_name = map[int32]string{
    0:  "WATCH_UKNOWN",
    12: "WATCH_OUTAGE",
    13: "WATCH_DISRUPTED",
    14: "WATCH_STARTING",
    16: "WATCH_DATA",
}
var WatchStatus_value = map[string]int32{
    "WATCH_UKNOWN":    0,
    "WATCH_OUTAGE":    12,
    "WATCH_DISRUPTED": 13,
    "WATCH_STARTING":  14,
    "WATCH_DATA":      16,
}
var WormholeStatus_name = map[int32]string{
    0:   "WORMHOLE_DEFAULT",
    10:  "WORMHOLE_STARTING",
    20:  "WORMHOLE_OFFERING",
    21:  "WORMHOLE_ANSWERING",
    40:  "WORMHOLE_HANDSHAKE",
    100: "WORMHOLE_CONNECTED",
    200: "WORMHOLE_CLOSED",
}
var WormholeStatus_value = map[string]int32{
    "WORMHOLE_DEFAULT":   0,
    "WORMHOLE_STARTING":  10,
    "WORMHOLE_OFFERING":  20,
    "WORMHOLE_ANSWERING": 21,
    "WORMHOLE_HANDSHAKE": 40,
    "WORMHOLE_CONNECTED": 100,
    "WORMHOLE_CLOSED":    200,
}

func DefaultHomeDir Uses

func DefaultHomeDir() string

DefaultHomeDir returns current user home directory (or "" on error).

func Emoji Uses

func Emoji(key keys.Key) string

Emoji for KeyType.

func IsPortInUse Uses

func IsPortInUse(port int) bool

IsPortInUse returns true if port is currently in use.

func LogsPath Uses

func LogsPath(appName string, fileName string, makeDir bool) (string, error)

LogsPath ...

func NewServiceFn Uses

func NewServiceFn(cfg *Config, build Build, lgi LogInterceptor) (ServeFn, CloseFn, error)

NewServiceFn ...

func RegisterKeysServer Uses

func RegisterKeysServer(s *grpc.Server, srv KeysServer)

func Run Uses

func Run(build Build)

Run the service.

func RunClient Uses

func RunClient(build Build)

RunClient runs the command line client

func SetLogger Uses

func SetLogger(l Logger)

SetLogger sets logger for the package.

func SupportPath Uses

func SupportPath(appName string, fileName string, makeDir bool) (string, error)

SupportPath ...

func Uninstall Uses

func Uninstall(cfg *Config) error

Uninstall ...

type AuthLockRequest Uses

type AuthLockRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthLockRequest) Descriptor Uses

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

func (*AuthLockRequest) GoString Uses

func (this *AuthLockRequest) GoString() string

func (*AuthLockRequest) Marshal Uses

func (m *AuthLockRequest) Marshal() (dAtA []byte, err error)

func (*AuthLockRequest) MarshalTo Uses

func (m *AuthLockRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthLockRequest) MarshalToSizedBuffer Uses

func (m *AuthLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthLockRequest) ProtoMessage Uses

func (*AuthLockRequest) ProtoMessage()

func (*AuthLockRequest) Reset Uses

func (m *AuthLockRequest) Reset()

func (*AuthLockRequest) Size Uses

func (m *AuthLockRequest) Size() (n int)

func (*AuthLockRequest) String Uses

func (m *AuthLockRequest) String() string

func (*AuthLockRequest) Unmarshal Uses

func (m *AuthLockRequest) Unmarshal(dAtA []byte) error

func (*AuthLockRequest) XXX_DiscardUnknown Uses

func (m *AuthLockRequest) XXX_DiscardUnknown()

func (*AuthLockRequest) XXX_Marshal Uses

func (m *AuthLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthLockRequest) XXX_Merge Uses

func (m *AuthLockRequest) XXX_Merge(src proto.Message)

func (*AuthLockRequest) XXX_Size Uses

func (m *AuthLockRequest) XXX_Size() int

func (*AuthLockRequest) XXX_Unmarshal Uses

func (m *AuthLockRequest) XXX_Unmarshal(b []byte) error

type AuthLockResponse Uses

type AuthLockResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthLockResponse) Descriptor Uses

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

func (*AuthLockResponse) GoString Uses

func (this *AuthLockResponse) GoString() string

func (*AuthLockResponse) Marshal Uses

func (m *AuthLockResponse) Marshal() (dAtA []byte, err error)

func (*AuthLockResponse) MarshalTo Uses

func (m *AuthLockResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthLockResponse) MarshalToSizedBuffer Uses

func (m *AuthLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthLockResponse) ProtoMessage Uses

func (*AuthLockResponse) ProtoMessage()

func (*AuthLockResponse) Reset Uses

func (m *AuthLockResponse) Reset()

func (*AuthLockResponse) Size Uses

func (m *AuthLockResponse) Size() (n int)

func (*AuthLockResponse) String Uses

func (m *AuthLockResponse) String() string

func (*AuthLockResponse) Unmarshal Uses

func (m *AuthLockResponse) Unmarshal(dAtA []byte) error

func (*AuthLockResponse) XXX_DiscardUnknown Uses

func (m *AuthLockResponse) XXX_DiscardUnknown()

func (*AuthLockResponse) XXX_Marshal Uses

func (m *AuthLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthLockResponse) XXX_Merge Uses

func (m *AuthLockResponse) XXX_Merge(src proto.Message)

func (*AuthLockResponse) XXX_Size Uses

func (m *AuthLockResponse) XXX_Size() int

func (*AuthLockResponse) XXX_Unmarshal Uses

func (m *AuthLockResponse) XXX_Unmarshal(b []byte) error

type AuthSetupRequest Uses

type AuthSetupRequest struct {
    // Password used to encrypt key backup.
    Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
    // Client name.
    Client               string   `protobuf:"bytes,6,opt,name=client,proto3" json:"client,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthSetupRequest) Descriptor Uses

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

func (*AuthSetupRequest) GoString Uses

func (this *AuthSetupRequest) GoString() string

func (*AuthSetupRequest) Marshal Uses

func (m *AuthSetupRequest) Marshal() (dAtA []byte, err error)

func (*AuthSetupRequest) MarshalTo Uses

func (m *AuthSetupRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthSetupRequest) MarshalToSizedBuffer Uses

func (m *AuthSetupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthSetupRequest) ProtoMessage Uses

func (*AuthSetupRequest) ProtoMessage()

func (*AuthSetupRequest) Reset Uses

func (m *AuthSetupRequest) Reset()

func (*AuthSetupRequest) Size Uses

func (m *AuthSetupRequest) Size() (n int)

func (*AuthSetupRequest) String Uses

func (m *AuthSetupRequest) String() string

func (*AuthSetupRequest) Unmarshal Uses

func (m *AuthSetupRequest) Unmarshal(dAtA []byte) error

func (*AuthSetupRequest) XXX_DiscardUnknown Uses

func (m *AuthSetupRequest) XXX_DiscardUnknown()

func (*AuthSetupRequest) XXX_Marshal Uses

func (m *AuthSetupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthSetupRequest) XXX_Merge Uses

func (m *AuthSetupRequest) XXX_Merge(src proto.Message)

func (*AuthSetupRequest) XXX_Size Uses

func (m *AuthSetupRequest) XXX_Size() int

func (*AuthSetupRequest) XXX_Unmarshal Uses

func (m *AuthSetupRequest) XXX_Unmarshal(b []byte) error

type AuthSetupResponse Uses

type AuthSetupResponse struct {
    AuthToken            string   `protobuf:"bytes,1,opt,name=authToken,proto3" json:"authToken,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthSetupResponse) Descriptor Uses

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

func (*AuthSetupResponse) GoString Uses

func (this *AuthSetupResponse) GoString() string

func (*AuthSetupResponse) Marshal Uses

func (m *AuthSetupResponse) Marshal() (dAtA []byte, err error)

func (*AuthSetupResponse) MarshalTo Uses

func (m *AuthSetupResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthSetupResponse) MarshalToSizedBuffer Uses

func (m *AuthSetupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthSetupResponse) ProtoMessage Uses

func (*AuthSetupResponse) ProtoMessage()

func (*AuthSetupResponse) Reset Uses

func (m *AuthSetupResponse) Reset()

func (*AuthSetupResponse) Size Uses

func (m *AuthSetupResponse) Size() (n int)

func (*AuthSetupResponse) String Uses

func (m *AuthSetupResponse) String() string

func (*AuthSetupResponse) Unmarshal Uses

func (m *AuthSetupResponse) Unmarshal(dAtA []byte) error

func (*AuthSetupResponse) XXX_DiscardUnknown Uses

func (m *AuthSetupResponse) XXX_DiscardUnknown()

func (*AuthSetupResponse) XXX_Marshal Uses

func (m *AuthSetupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthSetupResponse) XXX_Merge Uses

func (m *AuthSetupResponse) XXX_Merge(src proto.Message)

func (*AuthSetupResponse) XXX_Size Uses

func (m *AuthSetupResponse) XXX_Size() int

func (*AuthSetupResponse) XXX_Unmarshal Uses

func (m *AuthSetupResponse) XXX_Unmarshal(b []byte) error

type AuthUnlockRequest Uses

type AuthUnlockRequest struct {
    // Password.
    Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
    // Client name.
    Client               string   `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthUnlockRequest) Descriptor Uses

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

func (*AuthUnlockRequest) GoString Uses

func (this *AuthUnlockRequest) GoString() string

func (*AuthUnlockRequest) Marshal Uses

func (m *AuthUnlockRequest) Marshal() (dAtA []byte, err error)

func (*AuthUnlockRequest) MarshalTo Uses

func (m *AuthUnlockRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUnlockRequest) MarshalToSizedBuffer Uses

func (m *AuthUnlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthUnlockRequest) ProtoMessage Uses

func (*AuthUnlockRequest) ProtoMessage()

func (*AuthUnlockRequest) Reset Uses

func (m *AuthUnlockRequest) Reset()

func (*AuthUnlockRequest) Size Uses

func (m *AuthUnlockRequest) Size() (n int)

func (*AuthUnlockRequest) String Uses

func (m *AuthUnlockRequest) String() string

func (*AuthUnlockRequest) Unmarshal Uses

func (m *AuthUnlockRequest) Unmarshal(dAtA []byte) error

func (*AuthUnlockRequest) XXX_DiscardUnknown Uses

func (m *AuthUnlockRequest) XXX_DiscardUnknown()

func (*AuthUnlockRequest) XXX_Marshal Uses

func (m *AuthUnlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUnlockRequest) XXX_Merge Uses

func (m *AuthUnlockRequest) XXX_Merge(src proto.Message)

func (*AuthUnlockRequest) XXX_Size Uses

func (m *AuthUnlockRequest) XXX_Size() int

func (*AuthUnlockRequest) XXX_Unmarshal Uses

func (m *AuthUnlockRequest) XXX_Unmarshal(b []byte) error

type AuthUnlockResponse Uses

type AuthUnlockResponse struct {
    // AuthToken to use for requests.
    AuthToken            string   `protobuf:"bytes,1,opt,name=authToken,proto3" json:"authToken,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthUnlockResponse) Descriptor Uses

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

func (*AuthUnlockResponse) GoString Uses

func (this *AuthUnlockResponse) GoString() string

func (*AuthUnlockResponse) Marshal Uses

func (m *AuthUnlockResponse) Marshal() (dAtA []byte, err error)

func (*AuthUnlockResponse) MarshalTo Uses

func (m *AuthUnlockResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUnlockResponse) MarshalToSizedBuffer Uses

func (m *AuthUnlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthUnlockResponse) ProtoMessage Uses

func (*AuthUnlockResponse) ProtoMessage()

func (*AuthUnlockResponse) Reset Uses

func (m *AuthUnlockResponse) Reset()

func (*AuthUnlockResponse) Size Uses

func (m *AuthUnlockResponse) Size() (n int)

func (*AuthUnlockResponse) String Uses

func (m *AuthUnlockResponse) String() string

func (*AuthUnlockResponse) Unmarshal Uses

func (m *AuthUnlockResponse) Unmarshal(dAtA []byte) error

func (*AuthUnlockResponse) XXX_DiscardUnknown Uses

func (m *AuthUnlockResponse) XXX_DiscardUnknown()

func (*AuthUnlockResponse) XXX_Marshal Uses

func (m *AuthUnlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUnlockResponse) XXX_Merge Uses

func (m *AuthUnlockResponse) XXX_Merge(src proto.Message)

func (*AuthUnlockResponse) XXX_Size Uses

func (m *AuthUnlockResponse) XXX_Size() int

func (*AuthUnlockResponse) XXX_Unmarshal Uses

func (m *AuthUnlockResponse) XXX_Unmarshal(b []byte) error

type Build Uses

type Build struct {
    Version string
    Commit  string
    Date    string
}

Build describes build flags.

func (Build) String Uses

func (b Build) String() string

type Client Uses

type Client struct {
    sync.Mutex
    // contains filtered or unexported fields
}

Client defines the RPC client.

func NewClient Uses

func NewClient() *Client

NewClient constructs a client.

func (*Client) Close Uses

func (c *Client) Close() error

Close ...

func (*Client) Connect Uses

func (c *Client) Connect(cfg *Config, authToken string) error

Connect ...

func (*Client) ProtoClient Uses

func (c *Client) ProtoClient() KeysClient

ProtoClient returns RPC client.

type ClientConnectFn Uses

type ClientConnectFn func(cfg *Config, authToken string) (*grpc.ClientConn, error)

ClientConnectFn describes client connect.

type CloseFn Uses

type CloseFn func()

CloseFn closes the service.

type Collection Uses

type Collection struct {
    Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Collection) Descriptor Uses

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

func (*Collection) GoString Uses

func (this *Collection) GoString() string

func (*Collection) Marshal Uses

func (m *Collection) Marshal() (dAtA []byte, err error)

func (*Collection) MarshalTo Uses

func (m *Collection) MarshalTo(dAtA []byte) (int, error)

func (*Collection) MarshalToSizedBuffer Uses

func (m *Collection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Collection) ProtoMessage Uses

func (*Collection) ProtoMessage()

func (*Collection) Reset Uses

func (m *Collection) Reset()

func (*Collection) Size Uses

func (m *Collection) Size() (n int)

func (*Collection) String Uses

func (m *Collection) String() string

func (*Collection) Unmarshal Uses

func (m *Collection) Unmarshal(dAtA []byte) error

func (*Collection) XXX_DiscardUnknown Uses

func (m *Collection) XXX_DiscardUnknown()

func (*Collection) XXX_Marshal Uses

func (m *Collection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Collection) XXX_Merge Uses

func (m *Collection) XXX_Merge(src proto.Message)

func (*Collection) XXX_Size Uses

func (m *Collection) XXX_Size() int

func (*Collection) XXX_Unmarshal Uses

func (m *Collection) XXX_Unmarshal(b []byte) error

type CollectionsRequest Uses

type CollectionsRequest struct {
    Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CollectionsRequest) Descriptor Uses

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

func (*CollectionsRequest) GoString Uses

func (this *CollectionsRequest) GoString() string

func (*CollectionsRequest) Marshal Uses

func (m *CollectionsRequest) Marshal() (dAtA []byte, err error)

func (*CollectionsRequest) MarshalTo Uses

func (m *CollectionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*CollectionsRequest) MarshalToSizedBuffer Uses

func (m *CollectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CollectionsRequest) ProtoMessage Uses

func (*CollectionsRequest) ProtoMessage()

func (*CollectionsRequest) Reset Uses

func (m *CollectionsRequest) Reset()

func (*CollectionsRequest) Size Uses

func (m *CollectionsRequest) Size() (n int)

func (*CollectionsRequest) String Uses

func (m *CollectionsRequest) String() string

func (*CollectionsRequest) Unmarshal Uses

func (m *CollectionsRequest) Unmarshal(dAtA []byte) error

func (*CollectionsRequest) XXX_DiscardUnknown Uses

func (m *CollectionsRequest) XXX_DiscardUnknown()

func (*CollectionsRequest) XXX_Marshal Uses

func (m *CollectionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionsRequest) XXX_Merge Uses

func (m *CollectionsRequest) XXX_Merge(src proto.Message)

func (*CollectionsRequest) XXX_Size Uses

func (m *CollectionsRequest) XXX_Size() int

func (*CollectionsRequest) XXX_Unmarshal Uses

func (m *CollectionsRequest) XXX_Unmarshal(b []byte) error

type CollectionsResponse Uses

type CollectionsResponse struct {
    Collections          []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*CollectionsResponse) Descriptor Uses

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

func (*CollectionsResponse) GoString Uses

func (this *CollectionsResponse) GoString() string

func (*CollectionsResponse) Marshal Uses

func (m *CollectionsResponse) Marshal() (dAtA []byte, err error)

func (*CollectionsResponse) MarshalTo Uses

func (m *CollectionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*CollectionsResponse) MarshalToSizedBuffer Uses

func (m *CollectionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CollectionsResponse) ProtoMessage Uses

func (*CollectionsResponse) ProtoMessage()

func (*CollectionsResponse) Reset Uses

func (m *CollectionsResponse) Reset()

func (*CollectionsResponse) Size Uses

func (m *CollectionsResponse) Size() (n int)

func (*CollectionsResponse) String Uses

func (m *CollectionsResponse) String() string

func (*CollectionsResponse) Unmarshal Uses

func (m *CollectionsResponse) Unmarshal(dAtA []byte) error

func (*CollectionsResponse) XXX_DiscardUnknown Uses

func (m *CollectionsResponse) XXX_DiscardUnknown()

func (*CollectionsResponse) XXX_Marshal Uses

func (m *CollectionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionsResponse) XXX_Merge Uses

func (m *CollectionsResponse) XXX_Merge(src proto.Message)

func (*CollectionsResponse) XXX_Size Uses

func (m *CollectionsResponse) XXX_Size() int

func (*CollectionsResponse) XXX_Unmarshal Uses

func (m *CollectionsResponse) XXX_Unmarshal(b []byte) error

type Config Uses

type Config struct {
    // contains filtered or unexported fields
}

Config ...

func NewConfig Uses

func NewConfig(appName string) (*Config, error)

NewConfig creates a Config.

func (Config) AppDir Uses

func (c Config) AppDir() string

AppDir is where app related files are persisted.

func (Config) AppName Uses

func (c Config) AppName() string

AppName returns current app name.

func (Config) AppPath Uses

func (c Config) AppPath(fileName string, makeDir bool) (string, error)

AppPath ...

func (Config) Export Uses

func (c Config) Export() ([]byte, error)

Export ...

func (*Config) Get Uses

func (c *Config) Get(key string, dflt string) string

Get config value.

func (*Config) GetBool Uses

func (c *Config) GetBool(key string) bool

GetBool gets config value as bool.

func (*Config) GetInt Uses

func (c *Config) GetInt(key string, dflt int) int

GetInt gets config value as int.

func (Config) IsKey Uses

func (c Config) IsKey(s string) bool

IsKey returns true if config key is recognized.

func (*Config) Load Uses

func (c *Config) Load() error

Load ...

func (*Config) LogLevel Uses

func (c *Config) LogLevel() LogLevel

LogLevel for logging.

func (Config) LogsDir Uses

func (c Config) LogsDir() string

LogsDir is where logs are written.

func (Config) LogsPath Uses

func (c Config) LogsPath(fileName string, makeDir bool) (string, error)

LogsPath ...

func (Config) Port Uses

func (c Config) Port() int

Port to connect.

func (*Config) Reset Uses

func (c *Config) Reset() error

Reset removes saved values.

func (*Config) Save Uses

func (c *Config) Save() error

Save ...

func (Config) Server Uses

func (c Config) Server() string

Server to connect to.

func (*Config) Set Uses

func (c *Config) Set(key string, value string)

Set value.

func (*Config) SetBool Uses

func (c *Config) SetBool(key string, b bool)

SetBool sets bool value for key.

func (*Config) SetInt Uses

func (c *Config) SetInt(key string, n int)

SetInt sets int value for key.

type ConfigRequest Uses

type ConfigRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ConfigRequest) Descriptor Uses

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

func (*ConfigRequest) GoString Uses

func (this *ConfigRequest) GoString() string

func (*ConfigRequest) Marshal Uses

func (m *ConfigRequest) Marshal() (dAtA []byte, err error)

func (*ConfigRequest) MarshalTo Uses

func (m *ConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*ConfigRequest) MarshalToSizedBuffer Uses

func (m *ConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigRequest) ProtoMessage Uses

func (*ConfigRequest) ProtoMessage()

func (*ConfigRequest) Reset Uses

func (m *ConfigRequest) Reset()

func (*ConfigRequest) Size Uses

func (m *ConfigRequest) Size() (n int)

func (*ConfigRequest) String Uses

func (m *ConfigRequest) String() string

func (*ConfigRequest) Unmarshal Uses

func (m *ConfigRequest) Unmarshal(dAtA []byte) error

func (*ConfigRequest) XXX_DiscardUnknown Uses

func (m *ConfigRequest) XXX_DiscardUnknown()

func (*ConfigRequest) XXX_Marshal Uses

func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest) XXX_Merge Uses

func (m *ConfigRequest) XXX_Merge(src proto.Message)

func (*ConfigRequest) XXX_Size Uses

func (m *ConfigRequest) XXX_Size() int

func (*ConfigRequest) XXX_Unmarshal Uses

func (m *ConfigRequest) XXX_Unmarshal(b []byte) error

type ConfigResponse Uses

type ConfigResponse struct {
    Config               map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*ConfigResponse) Descriptor Uses

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

func (*ConfigResponse) GoString Uses

func (this *ConfigResponse) GoString() string

func (*ConfigResponse) Marshal Uses

func (m *ConfigResponse) Marshal() (dAtA []byte, err error)

func (*ConfigResponse) MarshalTo Uses

func (m *ConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*ConfigResponse) MarshalToSizedBuffer Uses

func (m *ConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigResponse) ProtoMessage Uses

func (*ConfigResponse) ProtoMessage()

func (*ConfigResponse) Reset Uses

func (m *ConfigResponse) Reset()

func (*ConfigResponse) Size Uses

func (m *ConfigResponse) Size() (n int)

func (*ConfigResponse) String Uses

func (m *ConfigResponse) String() string

func (*ConfigResponse) Unmarshal Uses

func (m *ConfigResponse) Unmarshal(dAtA []byte) error

func (*ConfigResponse) XXX_DiscardUnknown Uses

func (m *ConfigResponse) XXX_DiscardUnknown()

func (*ConfigResponse) XXX_Marshal Uses

func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigResponse) XXX_Merge Uses

func (m *ConfigResponse) XXX_Merge(src proto.Message)

func (*ConfigResponse) XXX_Size Uses

func (m *ConfigResponse) XXX_Size() int

func (*ConfigResponse) XXX_Unmarshal Uses

func (m *ConfigResponse) XXX_Unmarshal(b []byte) error

type ConfigSetRequest Uses

type ConfigSetRequest struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ConfigSetRequest) Descriptor Uses

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

func (*ConfigSetRequest) GoString Uses

func (this *ConfigSetRequest) GoString() string

func (*ConfigSetRequest) Marshal Uses

func (m *ConfigSetRequest) Marshal() (dAtA []byte, err error)

func (*ConfigSetRequest) MarshalTo Uses

func (m *ConfigSetRequest) MarshalTo(dAtA []byte) (int, error)

func (*ConfigSetRequest) MarshalToSizedBuffer Uses

func (m *ConfigSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigSetRequest) ProtoMessage Uses

func (*ConfigSetRequest) ProtoMessage()

func (*ConfigSetRequest) Reset Uses

func (m *ConfigSetRequest) Reset()

func (*ConfigSetRequest) Size Uses

func (m *ConfigSetRequest) Size() (n int)

func (*ConfigSetRequest) String Uses

func (m *ConfigSetRequest) String() string

func (*ConfigSetRequest) Unmarshal Uses

func (m *ConfigSetRequest) Unmarshal(dAtA []byte) error

func (*ConfigSetRequest) XXX_DiscardUnknown Uses

func (m *ConfigSetRequest) XXX_DiscardUnknown()

func (*ConfigSetRequest) XXX_Marshal Uses

func (m *ConfigSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigSetRequest) XXX_Merge Uses

func (m *ConfigSetRequest) XXX_Merge(src proto.Message)

func (*ConfigSetRequest) XXX_Size Uses

func (m *ConfigSetRequest) XXX_Size() int

func (*ConfigSetRequest) XXX_Unmarshal Uses

func (m *ConfigSetRequest) XXX_Unmarshal(b []byte) error

type ConfigSetResponse Uses

type ConfigSetResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ConfigSetResponse) Descriptor Uses

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

func (*ConfigSetResponse) GoString Uses

func (this *ConfigSetResponse) GoString() string

func (*ConfigSetResponse) Marshal Uses

func (m *ConfigSetResponse) Marshal() (dAtA []byte, err error)

func (*ConfigSetResponse) MarshalTo Uses

func (m *ConfigSetResponse) MarshalTo(dAtA []byte) (int, error)

func (*ConfigSetResponse) MarshalToSizedBuffer Uses

func (m *ConfigSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigSetResponse) ProtoMessage Uses

func (*ConfigSetResponse) ProtoMessage()

func (*ConfigSetResponse) Reset Uses

func (m *ConfigSetResponse) Reset()

func (*ConfigSetResponse) Size Uses

func (m *ConfigSetResponse) Size() (n int)

func (*ConfigSetResponse) String Uses

func (m *ConfigSetResponse) String() string

func (*ConfigSetResponse) Unmarshal Uses

func (m *ConfigSetResponse) Unmarshal(dAtA []byte) error

func (*ConfigSetResponse) XXX_DiscardUnknown Uses

func (m *ConfigSetResponse) XXX_DiscardUnknown()

func (*ConfigSetResponse) XXX_Marshal Uses

func (m *ConfigSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigSetResponse) XXX_Merge Uses

func (m *ConfigSetResponse) XXX_Merge(src proto.Message)

func (*ConfigSetResponse) XXX_Size Uses

func (m *ConfigSetResponse) XXX_Size() int

func (*ConfigSetResponse) XXX_Unmarshal Uses

func (m *ConfigSetResponse) XXX_Unmarshal(b []byte) error

type Content Uses

type Content struct {
    Data                 []byte      `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    Type                 ContentType `protobuf:"varint,2,opt,name=type,proto3,enum=service.ContentType" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*Content) Descriptor Uses

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

func (*Content) GoString Uses

func (this *Content) GoString() string

func (*Content) Marshal Uses

func (m *Content) Marshal() (dAtA []byte, err error)

func (*Content) MarshalTo Uses

func (m *Content) MarshalTo(dAtA []byte) (int, error)

func (*Content) MarshalToSizedBuffer Uses

func (m *Content) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content) ProtoMessage Uses

func (*Content) ProtoMessage()

func (*Content) Reset Uses

func (m *Content) Reset()

func (*Content) Size Uses

func (m *Content) Size() (n int)

func (*Content) String Uses

func (m *Content) String() string

func (*Content) Unmarshal Uses

func (m *Content) Unmarshal(dAtA []byte) error

func (*Content) XXX_DiscardUnknown Uses

func (m *Content) XXX_DiscardUnknown()

func (*Content) XXX_Marshal Uses

func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Content) XXX_Merge Uses

func (m *Content) XXX_Merge(src proto.Message)

func (*Content) XXX_Size Uses

func (m *Content) XXX_Size() int

func (*Content) XXX_Unmarshal Uses

func (m *Content) XXX_Unmarshal(b []byte) error

type ContentType Uses

type ContentType int32
const (
    BinaryContent ContentType = 0
    UTF8Content   ContentType = 1
)

func (ContentType) EnumDescriptor Uses

func (ContentType) EnumDescriptor() ([]byte, []int)

func (ContentType) String Uses

func (x ContentType) String() string

type ContextLogger Uses

type ContextLogger interface {
    Debugf(ctx context.Context, format string, args ...interface{})
    Infof(ctx context.Context, format string, args ...interface{})
    Warningf(ctx context.Context, format string, args ...interface{})
    Errorf(ctx context.Context, format string, args ...interface{})
}

ContextLogger interface used in this package with request context.

func NewContextLogger Uses

func NewContextLogger(lev LogLevel) ContextLogger

NewContextLogger ...

type DecryptFileInput Uses

type DecryptFileInput struct {
    // In is the input encrypted file path.
    In  string `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"`
    // Out is the output decrypted file path.
    Out string `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
    // Armored, if true, expects file to be armored.
    Armored bool `protobuf:"varint,10,opt,name=armored,proto3" json:"armored,omitempty"`
    // Mode is the encryption mode.
    Mode                 EncryptMode `protobuf:"varint,13,opt,name=mode,proto3,enum=service.EncryptMode" json:"mode,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*DecryptFileInput) Descriptor Uses

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

func (*DecryptFileInput) GoString Uses

func (this *DecryptFileInput) GoString() string

func (*DecryptFileInput) Marshal Uses

func (m *DecryptFileInput) Marshal() (dAtA []byte, err error)

func (*DecryptFileInput) MarshalTo Uses

func (m *DecryptFileInput) MarshalTo(dAtA []byte) (int, error)

func (*DecryptFileInput) MarshalToSizedBuffer Uses

func (m *DecryptFileInput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecryptFileInput) ProtoMessage Uses

func (*DecryptFileInput) ProtoMessage()

func (*DecryptFileInput) Reset Uses

func (m *DecryptFileInput) Reset()

func (*DecryptFileInput) Size Uses

func (m *DecryptFileInput) Size() (n int)

func (*DecryptFileInput) String Uses

func (m *DecryptFileInput) String() string

func (*DecryptFileInput) Unmarshal Uses

func (m *DecryptFileInput) Unmarshal(dAtA []byte) error

func (*DecryptFileInput) XXX_DiscardUnknown Uses

func (m *DecryptFileInput) XXX_DiscardUnknown()

func (*DecryptFileInput) XXX_Marshal Uses

func (m *DecryptFileInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptFileInput) XXX_Merge Uses

func (m *DecryptFileInput) XXX_Merge(src proto.Message)

func (*DecryptFileInput) XXX_Size Uses

func (m *DecryptFileInput) XXX_Size() int

func (*DecryptFileInput) XXX_Unmarshal Uses

func (m *DecryptFileInput) XXX_Unmarshal(b []byte) error

type DecryptFileOutput Uses

type DecryptFileOutput struct {
    Sender               *Key     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
    Out                  string   `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
    Bytes                int32    `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
    Total                int32    `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DecryptFileOutput) Descriptor Uses

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

func (*DecryptFileOutput) GoString Uses

func (this *DecryptFileOutput) GoString() string

func (*DecryptFileOutput) Marshal Uses

func (m *DecryptFileOutput) Marshal() (dAtA []byte, err error)

func (*DecryptFileOutput) MarshalTo Uses

func (m *DecryptFileOutput) MarshalTo(dAtA []byte) (int, error)

func (*DecryptFileOutput) MarshalToSizedBuffer Uses

func (m *DecryptFileOutput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecryptFileOutput) ProtoMessage Uses

func (*DecryptFileOutput) ProtoMessage()

func (*DecryptFileOutput) Reset Uses

func (m *DecryptFileOutput) Reset()

func (*DecryptFileOutput) Size Uses

func (m *DecryptFileOutput) Size() (n int)

func (*DecryptFileOutput) String Uses

func (m *DecryptFileOutput) String() string

func (*DecryptFileOutput) Unmarshal Uses

func (m *DecryptFileOutput) Unmarshal(dAtA []byte) error

func (*DecryptFileOutput) XXX_DiscardUnknown Uses

func (m *DecryptFileOutput) XXX_DiscardUnknown()

func (*DecryptFileOutput) XXX_Marshal Uses

func (m *DecryptFileOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptFileOutput) XXX_Merge Uses

func (m *DecryptFileOutput) XXX_Merge(src proto.Message)

func (*DecryptFileOutput) XXX_Size Uses

func (m *DecryptFileOutput) XXX_Size() int

func (*DecryptFileOutput) XXX_Unmarshal Uses

func (m *DecryptFileOutput) XXX_Unmarshal(b []byte) error

type DecryptInput Uses

type DecryptInput struct {
    // Data, encrypted.
    Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DecryptInput) Descriptor Uses

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

func (*DecryptInput) GoString Uses

func (this *DecryptInput) GoString() string

func (*DecryptInput) Marshal Uses

func (m *DecryptInput) Marshal() (dAtA []byte, err error)

func (*DecryptInput) MarshalTo Uses

func (m *DecryptInput) MarshalTo(dAtA []byte) (int, error)

func (*DecryptInput) MarshalToSizedBuffer Uses

func (m *DecryptInput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecryptInput) ProtoMessage Uses

func (*DecryptInput) ProtoMessage()

func (*DecryptInput) Reset Uses

func (m *DecryptInput) Reset()

func (*DecryptInput) Size Uses

func (m *DecryptInput) Size() (n int)

func (*DecryptInput) String Uses

func (m *DecryptInput) String() string

func (*DecryptInput) Unmarshal Uses

func (m *DecryptInput) Unmarshal(dAtA []byte) error

func (*DecryptInput) XXX_DiscardUnknown Uses

func (m *DecryptInput) XXX_DiscardUnknown()

func (*DecryptInput) XXX_Marshal Uses

func (m *DecryptInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptInput) XXX_Merge Uses

func (m *DecryptInput) XXX_Merge(src proto.Message)

func (*DecryptInput) XXX_Size Uses

func (m *DecryptInput) XXX_Size() int

func (*DecryptInput) XXX_Unmarshal Uses

func (m *DecryptInput) XXX_Unmarshal(b []byte) error

type DecryptOutput Uses

type DecryptOutput struct {
    // Data, decrypted. If empty, is EOF.
    Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    Sender               *Key     `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DecryptOutput) Descriptor Uses

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

func (*DecryptOutput) GoString Uses

func (this *DecryptOutput) GoString() string

func (*DecryptOutput) Marshal Uses

func (m *DecryptOutput) Marshal() (dAtA []byte, err error)

func (*DecryptOutput) MarshalTo Uses

func (m *DecryptOutput) MarshalTo(dAtA []byte) (int, error)

func (*DecryptOutput) MarshalToSizedBuffer Uses

func (m *DecryptOutput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecryptOutput) ProtoMessage Uses

func (*DecryptOutput) ProtoMessage()

func (*DecryptOutput) Reset Uses

func (m *DecryptOutput) Reset()

func (*DecryptOutput) Size Uses

func (m *DecryptOutput) Size() (n int)

func (*DecryptOutput) String Uses

func (m *DecryptOutput) String() string

func (*DecryptOutput) Unmarshal Uses

func (m *DecryptOutput) Unmarshal(dAtA []byte) error

func (*DecryptOutput) XXX_DiscardUnknown Uses

func (m *DecryptOutput) XXX_DiscardUnknown()

func (*DecryptOutput) XXX_Marshal Uses

func (m *DecryptOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptOutput) XXX_Merge Uses

func (m *DecryptOutput) XXX_Merge(src proto.Message)

func (*DecryptOutput) XXX_Size Uses

func (m *DecryptOutput) XXX_Size() int

func (*DecryptOutput) XXX_Unmarshal Uses

func (m *DecryptOutput) XXX_Unmarshal(b []byte) error

type DecryptRequest Uses

type DecryptRequest struct {
    // Data to decrypt.
    Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    // Armored, if true, expects data to be armored.
    Armored bool `protobuf:"varint,10,opt,name=armored,proto3" json:"armored,omitempty"`
    // Mode is the encryption mode.
    Mode                 EncryptMode `protobuf:"varint,13,opt,name=mode,proto3,enum=service.EncryptMode" json:"mode,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*DecryptRequest) Descriptor Uses

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

func (*DecryptRequest) GoString Uses

func (this *DecryptRequest) GoString() string

func (*DecryptRequest) Marshal Uses

func (m *DecryptRequest) Marshal() (dAtA []byte, err error)

func (*DecryptRequest) MarshalTo Uses

func (m *DecryptRequest) MarshalTo(dAtA []byte) (int, error)

func (*DecryptRequest) MarshalToSizedBuffer Uses

func (m *DecryptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecryptRequest) ProtoMessage Uses

func (*DecryptRequest) ProtoMessage()

func (*DecryptRequest) Reset Uses

func (m *DecryptRequest) Reset()

func (*DecryptRequest) Size Uses

func (m *DecryptRequest) Size() (n int)

func (*DecryptRequest) String Uses

func (m *DecryptRequest) String() string

func (*DecryptRequest) Unmarshal Uses

func (m *DecryptRequest) Unmarshal(dAtA []byte) error

func (*DecryptRequest) XXX_DiscardUnknown Uses

func (m *DecryptRequest) XXX_DiscardUnknown()

func (*DecryptRequest) XXX_Marshal Uses

func (m *DecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptRequest) XXX_Merge Uses

func (m *DecryptRequest) XXX_Merge(src proto.Message)

func (*DecryptRequest) XXX_Size Uses

func (m *DecryptRequest) XXX_Size() int

func (*DecryptRequest) XXX_Unmarshal Uses

func (m *DecryptRequest) XXX_Unmarshal(b []byte) error

type DecryptResponse Uses

type DecryptResponse struct {
    // Data decrypted.
    Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    // Sender (if not anonymous)
    Sender               *Key     `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DecryptResponse) Descriptor Uses

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

func (*DecryptResponse) GoString Uses

func (this *DecryptResponse) GoString() string

func (*DecryptResponse) Marshal Uses

func (m *DecryptResponse) Marshal() (dAtA []byte, err error)

func (*DecryptResponse) MarshalTo Uses

func (m *DecryptResponse) MarshalTo(dAtA []byte) (int, error)

func (*DecryptResponse) MarshalToSizedBuffer Uses

func (m *DecryptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DecryptResponse) ProtoMessage Uses

func (*DecryptResponse) ProtoMessage()

func (*DecryptResponse) Reset Uses

func (m *DecryptResponse) Reset()

func (*DecryptResponse) Size Uses

func (m *DecryptResponse) Size() (n int)

func (*DecryptResponse) String Uses

func (m *DecryptResponse) String() string

func (*DecryptResponse) Unmarshal Uses

func (m *DecryptResponse) Unmarshal(dAtA []byte) error

func (*DecryptResponse) XXX_DiscardUnknown Uses

func (m *DecryptResponse) XXX_DiscardUnknown()

func (*DecryptResponse) XXX_Marshal Uses

func (m *DecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptResponse) XXX_Merge Uses

func (m *DecryptResponse) XXX_Merge(src proto.Message)

func (*DecryptResponse) XXX_Size Uses

func (m *DecryptResponse) XXX_Size() int

func (*DecryptResponse) XXX_Unmarshal Uses

func (m *DecryptResponse) XXX_Unmarshal(b []byte) error

type DecryptStreamClient Uses

type DecryptStreamClient interface {
    Send(*DecryptInput) error
    Recv() (*DecryptOutput, error)
    grpc.ClientStream
}

DecryptStreamClient can send and recieve input and output.

func NewDecryptStreamClient Uses

func NewDecryptStreamClient(ctx context.Context, cl KeysClient, armored bool, mode EncryptMode) (DecryptStreamClient, error)

NewDecryptStreamClient returns DecryptStreamClient based on options.

type Document Uses

type Document struct {
    Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    CreatedAt            int64    `protobuf:"varint,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
    UpdatedAt            int64    `protobuf:"varint,11,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Document) Descriptor Uses

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

func (*Document) GoString Uses

func (this *Document) GoString() string

func (*Document) Marshal Uses

func (m *Document) Marshal() (dAtA []byte, err error)

func (*Document) MarshalTo Uses

func (m *Document) MarshalTo(dAtA []byte) (int, error)

func (*Document) MarshalToSizedBuffer Uses

func (m *Document) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Document) ProtoMessage Uses

func (*Document) ProtoMessage()

func (*Document) Reset Uses

func (m *Document) Reset()

func (*Document) Size Uses

func (m *Document) Size() (n int)

func (*Document) String Uses

func (m *Document) String() string

func (*Document) Unmarshal Uses

func (m *Document) Unmarshal(dAtA []byte) error

func (*Document) XXX_DiscardUnknown Uses

func (m *Document) XXX_DiscardUnknown()

func (*Document) XXX_Marshal Uses

func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Document) XXX_Merge Uses

func (m *Document) XXX_Merge(src proto.Message)

func (*Document) XXX_Size Uses

func (m *Document) XXX_Size() int

func (*Document) XXX_Unmarshal Uses

func (m *Document) XXX_Unmarshal(b []byte) error

type DocumentDeleteRequest Uses

type DocumentDeleteRequest struct {
    Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DocumentDeleteRequest) Descriptor Uses

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

func (*DocumentDeleteRequest) GoString Uses

func (this *DocumentDeleteRequest) GoString() string

func (*DocumentDeleteRequest) Marshal Uses

func (m *DocumentDeleteRequest) Marshal() (dAtA []byte, err error)

func (*DocumentDeleteRequest) MarshalTo Uses

func (m *DocumentDeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*DocumentDeleteRequest) MarshalToSizedBuffer Uses

func (m *DocumentDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DocumentDeleteRequest) ProtoMessage Uses

func (*DocumentDeleteRequest) ProtoMessage()

func (*DocumentDeleteRequest) Reset Uses

func (m *DocumentDeleteRequest) Reset()

func (*DocumentDeleteRequest) Size Uses

func (m *DocumentDeleteRequest) Size() (n int)

func (*DocumentDeleteRequest) String Uses

func (m *DocumentDeleteRequest) String() string

func (*DocumentDeleteRequest) Unmarshal Uses

func (m *DocumentDeleteRequest) Unmarshal(dAtA []byte) error

func (*DocumentDeleteRequest) XXX_DiscardUnknown Uses

func (m *DocumentDeleteRequest) XXX_DiscardUnknown()

func (*DocumentDeleteRequest) XXX_Marshal Uses

func (m *DocumentDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DocumentDeleteRequest) XXX_Merge Uses

func (m *DocumentDeleteRequest) XXX_Merge(src proto.Message)

func (*DocumentDeleteRequest) XXX_Size Uses

func (m *DocumentDeleteRequest) XXX_Size() int

func (*DocumentDeleteRequest) XXX_Unmarshal Uses

func (m *DocumentDeleteRequest) XXX_Unmarshal(b []byte) error

type DocumentDeleteResponse Uses

type DocumentDeleteResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DocumentDeleteResponse) Descriptor Uses

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

func (*DocumentDeleteResponse) GoString Uses

func (this *DocumentDeleteResponse) GoString() string

func (*DocumentDeleteResponse) Marshal Uses

func (m *DocumentDeleteResponse) Marshal() (dAtA []byte, err error)

func (*DocumentDeleteResponse) MarshalTo Uses

func (m *DocumentDeleteResponse) MarshalTo(dAtA []byte) (int, error)

func (*DocumentDeleteResponse) MarshalToSizedBuffer Uses

func (m *DocumentDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DocumentDeleteResponse) ProtoMessage Uses

func (*DocumentDeleteResponse) ProtoMessage()

func (*DocumentDeleteResponse) Reset Uses

func (m *DocumentDeleteResponse) Reset()

func (*DocumentDeleteResponse) Size Uses

func (m *DocumentDeleteResponse) Size() (n int)

func (*DocumentDeleteResponse) String Uses

func (m *DocumentDeleteResponse) String() string

func (*DocumentDeleteResponse) Unmarshal Uses

func (m *DocumentDeleteResponse) Unmarshal(dAtA []byte) error

func (*DocumentDeleteResponse) XXX_DiscardUnknown Uses

func (m *DocumentDeleteResponse) XXX_DiscardUnknown()

func (*DocumentDeleteResponse) XXX_Marshal Uses

func (m *DocumentDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DocumentDeleteResponse) XXX_Merge Uses

func (m *DocumentDeleteResponse) XXX_Merge(src proto.Message)

func (*DocumentDeleteResponse) XXX_Size Uses

func (m *DocumentDeleteResponse) XXX_Size() int

func (*DocumentDeleteResponse) XXX_Unmarshal Uses

func (m *DocumentDeleteResponse) XXX_Unmarshal(b []byte) error

type DocumentsRequest Uses

type DocumentsRequest struct {
    Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    Prefix               string   `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DocumentsRequest) Descriptor Uses

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

func (*DocumentsRequest) GoString Uses

func (this *DocumentsRequest) GoString() string

func (*DocumentsRequest) Marshal Uses

func (m *DocumentsRequest) Marshal() (dAtA []byte, err error)

func (*DocumentsRequest) MarshalTo Uses

func (m *DocumentsRequest) MarshalTo(dAtA []byte) (int, error)

func (*DocumentsRequest) MarshalToSizedBuffer Uses

func (m *DocumentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DocumentsRequest) ProtoMessage Uses

func (*DocumentsRequest) ProtoMessage()

func (*DocumentsRequest) Reset Uses

func (m *DocumentsRequest) Reset()

func (*DocumentsRequest) Size Uses

func (m *DocumentsRequest) Size() (n int)

func (*DocumentsRequest) String Uses

func (m *DocumentsRequest) String() string

func (*DocumentsRequest) Unmarshal Uses

func (m *DocumentsRequest) Unmarshal(dAtA []byte) error

func (*DocumentsRequest) XXX_DiscardUnknown Uses

func (m *DocumentsRequest) XXX_DiscardUnknown()

func (*DocumentsRequest) XXX_Marshal Uses

func (m *DocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DocumentsRequest) XXX_Merge Uses

func (m *DocumentsRequest) XXX_Merge(src proto.Message)

func (*DocumentsRequest) XXX_Size Uses

func (m *DocumentsRequest) XXX_Size() int

func (*DocumentsRequest) XXX_Unmarshal Uses

func (m *DocumentsRequest) XXX_Unmarshal(b []byte) error

type DocumentsResponse Uses

type DocumentsResponse struct {
    Documents            []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*DocumentsResponse) Descriptor Uses

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

func (*DocumentsResponse) GoString Uses

func (this *DocumentsResponse) GoString() string

func (*DocumentsResponse) Marshal Uses

func (m *DocumentsResponse) Marshal() (dAtA []byte, err error)

func (*DocumentsResponse) MarshalTo Uses

func (m *DocumentsResponse) MarshalTo(dAtA []byte) (int, error)

func (*DocumentsResponse) MarshalToSizedBuffer Uses

func (m *DocumentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DocumentsResponse) ProtoMessage Uses

func (*DocumentsResponse) ProtoMessage()

func (*DocumentsResponse) Reset Uses

func (m *DocumentsResponse) Reset()

func (*DocumentsResponse) Size Uses

func (m *DocumentsResponse) Size() (n int)

func (*DocumentsResponse) String Uses

func (m *DocumentsResponse) String() string

func (*DocumentsResponse) Unmarshal Uses

func (m *DocumentsResponse) Unmarshal(dAtA []byte) error

func (*DocumentsResponse) XXX_DiscardUnknown Uses

func (m *DocumentsResponse) XXX_DiscardUnknown()

func (*DocumentsResponse) XXX_Marshal Uses

func (m *DocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DocumentsResponse) XXX_Merge Uses

func (m *DocumentsResponse) XXX_Merge(src proto.Message)

func (*DocumentsResponse) XXX_Size Uses

func (m *DocumentsResponse) XXX_Size() int

func (*DocumentsResponse) XXX_Unmarshal Uses

func (m *DocumentsResponse) XXX_Unmarshal(b []byte) error

type Encoding Uses

type Encoding int32
const (
    Hex      Encoding = 0
    Base62   Encoding = 1
    Base58   Encoding = 2
    Base32   Encoding = 3
    Base16   Encoding = 4
    Base64   Encoding = 5
    Saltpack Encoding = 6
    BIP39    Encoding = 7
)

func (Encoding) EnumDescriptor Uses

func (Encoding) EnumDescriptor() ([]byte, []int)

func (Encoding) String Uses

func (x Encoding) String() string

type EncryptFileInput Uses

type EncryptFileInput struct {
    // In is input file path.
    In  string `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"`
    // Out is output file path.
    Out string `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
    // Armored, if true will return armored string output.
    Armored bool `protobuf:"varint,10,opt,name=armored,proto3" json:"armored,omitempty"`
    // Recipients to encrypt to.
    Recipients []string `protobuf:"bytes,11,rep,name=recipients,proto3" json:"recipients,omitempty"`
    // Sender, or empty, if anonymous.
    Sender string `protobuf:"bytes,12,opt,name=sender,proto3" json:"sender,omitempty"`
    // Mode is the encryption mode.
    Mode                 EncryptMode `protobuf:"varint,13,opt,name=mode,proto3,enum=service.EncryptMode" json:"mode,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*EncryptFileInput) Descriptor Uses

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

func (*EncryptFileInput) GoString Uses

func (this *EncryptFileInput) GoString() string

func (*EncryptFileInput) Marshal Uses

func (m *EncryptFileInput) Marshal() (dAtA []byte, err error)

func (*EncryptFileInput) MarshalTo Uses

func (m *EncryptFileInput) MarshalTo(dAtA []byte) (int, error)

func (*EncryptFileInput) MarshalToSizedBuffer Uses

func (m *EncryptFileInput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptFileInput) ProtoMessage Uses

func (*EncryptFileInput) ProtoMessage()

func (*EncryptFileInput) Reset Uses

func (m *EncryptFileInput) Reset()

func (*EncryptFileInput) Size Uses

func (m *EncryptFileInput) Size() (n int)

func (*EncryptFileInput) String Uses

func (m *EncryptFileInput) String() string

func (*EncryptFileInput) Unmarshal Uses

func (m *EncryptFileInput) Unmarshal(dAtA []byte) error

func (*EncryptFileInput) XXX_DiscardUnknown Uses

func (m *EncryptFileInput) XXX_DiscardUnknown()

func (*EncryptFileInput) XXX_Marshal Uses

func (m *EncryptFileInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptFileInput) XXX_Merge Uses

func (m *EncryptFileInput) XXX_Merge(src proto.Message)

func (*EncryptFileInput) XXX_Size Uses

func (m *EncryptFileInput) XXX_Size() int

func (*EncryptFileInput) XXX_Unmarshal Uses

func (m *EncryptFileInput) XXX_Unmarshal(b []byte) error

type EncryptFileOutput Uses

type EncryptFileOutput struct {
    Bytes                int32    `protobuf:"varint,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
    Total                int32    `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*EncryptFileOutput) Descriptor Uses

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

func (*EncryptFileOutput) GoString Uses

func (this *EncryptFileOutput) GoString() string

func (*EncryptFileOutput) Marshal Uses

func (m *EncryptFileOutput) Marshal() (dAtA []byte, err error)

func (*EncryptFileOutput) MarshalTo Uses

func (m *EncryptFileOutput) MarshalTo(dAtA []byte) (int, error)

func (*EncryptFileOutput) MarshalToSizedBuffer Uses

func (m *EncryptFileOutput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptFileOutput) ProtoMessage Uses

func (*EncryptFileOutput) ProtoMessage()

func (*EncryptFileOutput) Reset Uses

func (m *EncryptFileOutput) Reset()

func (*EncryptFileOutput) Size Uses

func (m *EncryptFileOutput) Size() (n int)

func (*EncryptFileOutput) String Uses

func (m *EncryptFileOutput) String() string

func (*EncryptFileOutput) Unmarshal Uses

func (m *EncryptFileOutput) Unmarshal(dAtA []byte) error

func (*EncryptFileOutput) XXX_DiscardUnknown Uses

func (m *EncryptFileOutput) XXX_DiscardUnknown()

func (*EncryptFileOutput) XXX_Marshal Uses

func (m *EncryptFileOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptFileOutput) XXX_Merge Uses

func (m *EncryptFileOutput) XXX_Merge(src proto.Message)

func (*EncryptFileOutput) XXX_Size Uses

func (m *EncryptFileOutput) XXX_Size() int

func (*EncryptFileOutput) XXX_Unmarshal Uses

func (m *EncryptFileOutput) XXX_Unmarshal(b []byte) error

type EncryptInput Uses

type EncryptInput struct {
    // Data to encrypt. Send empty byte slice as last message.
    Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    // Armored, if true will return armored string output.
    Armored bool `protobuf:"varint,2,opt,name=armored,proto3" json:"armored,omitempty"`
    // Recipients to encrypt to.
    Recipients []string `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"`
    // Sender, or empty, if anonymous.
    Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
    // Mode is the encryption mode.
    Mode                 EncryptMode `protobuf:"varint,5,opt,name=mode,proto3,enum=service.EncryptMode" json:"mode,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*EncryptInput) Descriptor Uses

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

func (*EncryptInput) GoString Uses

func (this *EncryptInput) GoString() string

func (*EncryptInput) Marshal Uses

func (m *EncryptInput) Marshal() (dAtA []byte, err error)

func (*EncryptInput) MarshalTo Uses

func (m *EncryptInput) MarshalTo(dAtA []byte) (int, error)

func (*EncryptInput) MarshalToSizedBuffer Uses

func (m *EncryptInput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptInput) ProtoMessage Uses

func (*EncryptInput) ProtoMessage()

func (*EncryptInput) Reset Uses

func (m *EncryptInput) Reset()

func (*EncryptInput) Size Uses

func (m *EncryptInput) Size() (n int)

func (*EncryptInput) String Uses

func (m *EncryptInput) String() string

func (*EncryptInput) Unmarshal Uses

func (m *EncryptInput) Unmarshal(dAtA []byte) error

func (*EncryptInput) XXX_DiscardUnknown Uses

func (m *EncryptInput) XXX_DiscardUnknown()

func (*EncryptInput) XXX_Marshal Uses

func (m *EncryptInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptInput) XXX_Merge Uses

func (m *EncryptInput) XXX_Merge(src proto.Message)

func (*EncryptInput) XXX_Size Uses

func (m *EncryptInput) XXX_Size() int

func (*EncryptInput) XXX_Unmarshal Uses

func (m *EncryptInput) XXX_Unmarshal(b []byte) error

type EncryptMode Uses

type EncryptMode int32
const (
    DefaultEncryptMode EncryptMode = 0
    EncryptV2          EncryptMode = 1
    SigncryptV1        EncryptMode = 2
)

func (EncryptMode) EnumDescriptor Uses

func (EncryptMode) EnumDescriptor() ([]byte, []int)

func (EncryptMode) String Uses

func (x EncryptMode) String() string

type EncryptOutput Uses

type EncryptOutput struct {
    // Data, encrypted.
    Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*EncryptOutput) Descriptor Uses

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

func (*EncryptOutput) GoString Uses

func (this *EncryptOutput) GoString() string

func (*EncryptOutput) Marshal Uses

func (m *EncryptOutput) Marshal() (dAtA []byte, err error)

func (*EncryptOutput) MarshalTo Uses

func (m *EncryptOutput) MarshalTo(dAtA []byte) (int, error)

func (*EncryptOutput) MarshalToSizedBuffer Uses

func (m *EncryptOutput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptOutput) ProtoMessage Uses

func (*EncryptOutput) ProtoMessage()

func (*EncryptOutput) Reset Uses

func (m *EncryptOutput) Reset()

func (*EncryptOutput) Size Uses

func (m *EncryptOutput) Size() (n int)

func (*EncryptOutput) String Uses

func (m *EncryptOutput) String() string

func (*EncryptOutput) Unmarshal Uses

func (m *EncryptOutput) Unmarshal(dAtA []byte) error

func (*EncryptOutput) XXX_DiscardUnknown Uses

func (m *EncryptOutput) XXX_DiscardUnknown()

func (*EncryptOutput) XXX_Marshal Uses

func (m *EncryptOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptOutput) XXX_Merge Uses

func (m *EncryptOutput) XXX_Merge(src proto.Message)

func (*EncryptOutput) XXX_Size Uses

func (m *EncryptOutput) XXX_Size() int

func (*EncryptOutput) XXX_Unmarshal Uses

func (m *EncryptOutput) XXX_Unmarshal(b []byte) error

type EncryptRequest Uses

type EncryptRequest struct {
    // Data to encrypt.
    Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    // Armored, if true will return armored string output.
    Armored bool `protobuf:"varint,10,opt,name=armored,proto3" json:"armored,omitempty"`
    // Recipients to encrypt to.
    Recipients []string `protobuf:"bytes,11,rep,name=recipients,proto3" json:"recipients,omitempty"`
    // Sender, or empty, if anonymous.
    Sender string `protobuf:"bytes,12,opt,name=sender,proto3" json:"sender,omitempty"`
    // Mode is the encryption mode.
    Mode                 EncryptMode `protobuf:"varint,13,opt,name=mode,proto3,enum=service.EncryptMode" json:"mode,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*EncryptRequest) Descriptor Uses

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

func (*EncryptRequest) GoString Uses

func (this *EncryptRequest) GoString() string

func (*EncryptRequest) Marshal Uses

func (m *EncryptRequest) Marshal() (dAtA []byte, err error)

func (*EncryptRequest) MarshalTo Uses

func (m *EncryptRequest) MarshalTo(dAtA []byte) (int, error)

func (*EncryptRequest) MarshalToSizedBuffer Uses

func (m *EncryptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptRequest) ProtoMessage Uses

func (*EncryptRequest) ProtoMessage()

func (*EncryptRequest) Reset Uses

func (m *EncryptRequest) Reset()

func (*EncryptRequest) Size Uses

func (m *EncryptRequest) Size() (n int)

func (*EncryptRequest) String Uses

func (m *EncryptRequest) String() string

func (*EncryptRequest) Unmarshal Uses

func (m *EncryptRequest) Unmarshal(dAtA []byte) error

func (*EncryptRequest) XXX_DiscardUnknown Uses

func (m *EncryptRequest) XXX_DiscardUnknown()

func (*EncryptRequest) XXX_Marshal Uses

func (m *EncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptRequest) XXX_Merge Uses

func (m *EncryptRequest) XXX_Merge(src proto.Message)

func (*EncryptRequest) XXX_Size Uses

func (m *EncryptRequest) XXX_Size() int

func (*EncryptRequest) XXX_Unmarshal Uses

func (m *EncryptRequest) XXX_Unmarshal(b []byte) error

type EncryptResponse Uses

type EncryptResponse struct {
    Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*EncryptResponse) Descriptor Uses

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

func (*EncryptResponse) GoString Uses

func (this *EncryptResponse) GoString() string

func (*EncryptResponse) Marshal Uses

func (m *EncryptResponse) Marshal() (dAtA []byte, err error)

func (*EncryptResponse) MarshalTo Uses

func (m *EncryptResponse) MarshalTo(dAtA []byte) (int, error)

func (*EncryptResponse) MarshalToSizedBuffer Uses

func (m *EncryptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptResponse) ProtoMessage Uses

func (*EncryptResponse) ProtoMessage()

func (*EncryptResponse) Reset Uses

func (m *EncryptResponse) Reset()

func (*EncryptResponse) Size Uses

func (m *EncryptResponse) Size() (n int)

func (*EncryptResponse) String Uses

func (m *EncryptResponse) String() string

func (*EncryptResponse) Unmarshal Uses

func (m *EncryptResponse) Unmarshal(dAtA []byte) error

func (*EncryptResponse) XXX_DiscardUnknown Uses

func (m *EncryptResponse) XXX_DiscardUnknown()

func (*EncryptResponse) XXX_Marshal Uses

func (m *EncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptResponse) XXX_Merge Uses

func (m *EncryptResponse) XXX_Merge(src proto.Message)

func (*EncryptResponse) XXX_Size Uses

func (m *EncryptResponse) XXX_Size() int

func (*EncryptResponse) XXX_Unmarshal Uses

func (m *EncryptResponse) XXX_Unmarshal(b []byte) error

type ExportType Uses

type ExportType int32
const (
    DefaultExportType  ExportType = 0
    SaltpackExportType ExportType = 1
)

func (ExportType) EnumDescriptor Uses

func (ExportType) EnumDescriptor() ([]byte, []int)

func (ExportType) String Uses

func (x ExportType) String() string

type Item Uses

type Item struct {
    ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Item) Descriptor Uses

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

func (*Item) GoString Uses

func (this *Item) GoString() string

func (*Item) Marshal Uses

func (m *Item) Marshal() (dAtA []byte, err error)

func (*Item) MarshalTo Uses

func (m *Item) MarshalTo(dAtA []byte) (int, error)

func (*Item) MarshalToSizedBuffer Uses

func (m *Item) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Item) ProtoMessage Uses

func (*Item) ProtoMessage()

func (*Item) Reset Uses

func (m *Item) Reset()

func (*Item) Size Uses

func (m *Item) Size() (n int)

func (*Item) String Uses

func (m *Item) String() string

func (*Item) Unmarshal Uses

func (m *Item) Unmarshal(dAtA []byte) error

func (*Item) XXX_DiscardUnknown Uses

func (m *Item) XXX_DiscardUnknown()

func (*Item) XXX_Marshal Uses

func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Item) XXX_Merge Uses

func (m *Item) XXX_Merge(src proto.Message)

func (*Item) XXX_Size Uses

func (m *Item) XXX_Size() int

func (*Item) XXX_Unmarshal Uses

func (m *Item) XXX_Unmarshal(b []byte) error

type ItemRequest Uses

type ItemRequest struct {
    ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ItemRequest) Descriptor Uses

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

func (*ItemRequest) GoString Uses

func (this *ItemRequest) GoString() string

func (*ItemRequest) Marshal Uses

func (m *ItemRequest) Marshal() (dAtA []byte, err error)

func (*ItemRequest) MarshalTo Uses

func (m *ItemRequest) MarshalTo(dAtA []byte) (int, error)

func (*ItemRequest) MarshalToSizedBuffer Uses

func (m *ItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ItemRequest) ProtoMessage Uses

func (*ItemRequest) ProtoMessage()

func (*ItemRequest) Reset Uses

func (m *ItemRequest) Reset()

func (*ItemRequest) Size Uses

func (m *ItemRequest) Size() (n int)

func (*ItemRequest) String Uses

func (m *ItemRequest) String() string

func (*ItemRequest) Unmarshal Uses

func (m *ItemRequest) Unmarshal(dAtA []byte) error

func (*ItemRequest) XXX_DiscardUnknown Uses

func (m *ItemRequest) XXX_DiscardUnknown()

func (*ItemRequest) XXX_Marshal Uses

func (m *ItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ItemRequest) XXX_Merge Uses

func (m *ItemRequest) XXX_Merge(src proto.Message)

func (*ItemRequest) XXX_Size Uses

func (m *ItemRequest) XXX_Size() int

func (*ItemRequest) XXX_Unmarshal Uses

func (m *ItemRequest) XXX_Unmarshal(b []byte) error

type ItemResponse Uses

type ItemResponse struct {
    Item                 *Item    `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ItemResponse) Descriptor Uses

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

func (*ItemResponse) GoString Uses

func (this *ItemResponse) GoString() string

func (*ItemResponse) Marshal Uses

func (m *ItemResponse) Marshal() (dAtA []byte, err error)

func (*ItemResponse) MarshalTo Uses

func (m *ItemResponse) MarshalTo(dAtA []byte) (int, error)

func (*ItemResponse) MarshalToSizedBuffer Uses

func (m *ItemResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ItemResponse) ProtoMessage Uses

func (*ItemResponse) ProtoMessage()

func (*ItemResponse) Reset Uses

func (m *ItemResponse) Reset()

func (*ItemResponse) Size Uses

func (m *ItemResponse) Size() (n int)

func (*ItemResponse) String Uses

func (m *ItemResponse) String() string

func (*ItemResponse) Unmarshal Uses

func (m *ItemResponse) Unmarshal(dAtA []byte) error

func (*ItemResponse) XXX_DiscardUnknown Uses

func (m *ItemResponse) XXX_DiscardUnknown()

func (*ItemResponse) XXX_Marshal Uses

func (m *ItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ItemResponse) XXX_Merge Uses

func (m *ItemResponse) XXX_Merge(src proto.Message)

func (*ItemResponse) XXX_Size Uses

func (m *ItemResponse) XXX_Size() int

func (*ItemResponse) XXX_Unmarshal Uses

func (m *ItemResponse) XXX_Unmarshal(b []byte) error

type ItemsRequest Uses

type ItemsRequest struct {
    Query                string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ItemsRequest) Descriptor Uses

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

func (*ItemsRequest) GoString Uses

func (this *ItemsRequest) GoString() string

func (*ItemsRequest) Marshal Uses

func (m *ItemsRequest) Marshal() (dAtA []byte, err error)

func (*ItemsRequest) MarshalTo Uses

func (m *ItemsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ItemsRequest) MarshalToSizedBuffer Uses

func (m *ItemsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ItemsRequest) ProtoMessage Uses

func (*ItemsRequest) ProtoMessage()

func (*ItemsRequest) Reset Uses

func (m *ItemsRequest) Reset()

func (*ItemsRequest) Size Uses

func (m *ItemsRequest) Size() (n int)

func (*ItemsRequest) String Uses

func (m *ItemsRequest) String() string

func (*ItemsRequest) Unmarshal Uses

func (m *ItemsRequest) Unmarshal(dAtA []byte) error

func (*ItemsRequest) XXX_DiscardUnknown Uses

func (m *ItemsRequest) XXX_DiscardUnknown()

func (*ItemsRequest) XXX_Marshal Uses

func (m *ItemsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ItemsRequest) XXX_Merge Uses

func (m *ItemsRequest) XXX_Merge(src proto.Message)

func (*ItemsRequest) XXX_Size Uses

func (m *ItemsRequest) XXX_Size() int

func (*ItemsRequest) XXX_Unmarshal Uses

func (m *ItemsRequest) XXX_Unmarshal(b []byte) error

type ItemsResponse Uses

type ItemsResponse struct {
    Items                []*Item  `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ItemsResponse) Descriptor Uses

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

func (*ItemsResponse) GoString Uses

func (this *ItemsResponse) GoString() string

func (*ItemsResponse) Marshal Uses

func (m *ItemsResponse) Marshal() (dAtA []byte, err error)

func (*ItemsResponse) MarshalTo Uses

func (m *ItemsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ItemsResponse) MarshalToSizedBuffer Uses

func (m *ItemsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ItemsResponse) ProtoMessage Uses

func (*ItemsResponse) ProtoMessage()

func (*ItemsResponse) Reset Uses

func (m *ItemsResponse) Reset()

func (*ItemsResponse) Size Uses

func (m *ItemsResponse) Size() (n int)

func (*ItemsResponse) String Uses

func (m *ItemsResponse) String() string

func (*ItemsResponse) Unmarshal Uses

func (m *ItemsResponse) Unmarshal(dAtA []byte) error

func (*ItemsResponse) XXX_DiscardUnknown Uses

func (m *ItemsResponse) XXX_DiscardUnknown()

func (*ItemsResponse) XXX_Marshal Uses

func (m *ItemsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ItemsResponse) XXX_Merge Uses

func (m *ItemsResponse) XXX_Merge(src proto.Message)

func (*ItemsResponse) XXX_Size Uses

func (m *ItemsResponse) XXX_Size() int

func (*ItemsResponse) XXX_Unmarshal Uses

func (m *ItemsResponse) XXX_Unmarshal(b []byte) error

type Key Uses

type Key struct {
    // ID identifier.
    ID  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // Type of key.
    Type KeyType `protobuf:"varint,3,opt,name=type,proto3,enum=service.KeyType" json:"type,omitempty"`
    // User associated with this key.
    User *User `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"`
    // Saved if saved locally.
    Saved                bool     `protobuf:"varint,10,opt,name=saved,proto3" json:"saved,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Key) Descriptor Uses

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

func (*Key) GoString Uses

func (this *Key) GoString() string

func (*Key) Marshal Uses

func (m *Key) Marshal() (dAtA []byte, err error)

func (*Key) MarshalTo Uses

func (m *Key) MarshalTo(dAtA []byte) (int, error)

func (*Key) MarshalToSizedBuffer Uses

func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Key) ProtoMessage Uses

func (*Key) ProtoMessage()

func (*Key) Reset Uses

func (m *Key) Reset()

func (*Key) Size Uses

func (m *Key) Size() (n int)

func (*Key) String Uses

func (m *Key) String() string

func (*Key) Unmarshal Uses

func (m *Key) Unmarshal(dAtA []byte) error

func (*Key) XXX_DiscardUnknown Uses

func (m *Key) XXX_DiscardUnknown()

func (*Key) XXX_Marshal Uses

func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Key) XXX_Merge Uses

func (m *Key) XXX_Merge(src proto.Message)

func (*Key) XXX_Size Uses

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal Uses

func (m *Key) XXX_Unmarshal(b []byte) error

type KeyExportRequest Uses

type KeyExportRequest struct {
    KID                  string     `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"`
    Password             string     `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    Type                 ExportType `protobuf:"varint,3,opt,name=type,proto3,enum=service.ExportType" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

func (*KeyExportRequest) Descriptor Uses

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

func (*KeyExportRequest) GoString Uses

func (this *KeyExportRequest) GoString() string

func (*KeyExportRequest) Marshal Uses

func (m *KeyExportRequest) Marshal() (dAtA []byte, err error)

func (*KeyExportRequest) MarshalTo Uses

func (m *KeyExportRequest) MarshalTo(dAtA []byte) (int, error)

func (*KeyExportRequest) MarshalToSizedBuffer Uses

func (m *KeyExportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyExportRequest) ProtoMessage Uses

func (*KeyExportRequest) ProtoMessage()

func (*KeyExportRequest) Reset Uses

func (m *KeyExportRequest) Reset()

func (*KeyExportRequest) Size Uses

func (m *KeyExportRequest) Size() (n int)

func (*KeyExportRequest) String Uses

func (m *KeyExportRequest) String() string

func (*KeyExportRequest) Unmarshal Uses

func (m *KeyExportRequest) Unmarshal(dAtA []byte) error

func (*KeyExportRequest) XXX_DiscardUnknown Uses

func (m *KeyExportRequest) XXX_DiscardUnknown()

func (*KeyExportRequest) XXX_Marshal Uses

func (m *KeyExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyExportRequest) XXX_Merge Uses

func (m *KeyExportRequest) XXX_Merge(src proto.Message)

func (*KeyExportRequest) XXX_Size Uses

func (m *KeyExportRequest) XXX_Size() int

func (*KeyExportRequest) XXX_Unmarshal Uses

func (m *KeyExportRequest) XXX_Unmarshal(b []byte) error

type KeyExportResponse Uses

type KeyExportResponse struct {
    Export               []byte   `protobuf:"bytes,1,opt,name=export,proto3" json:"export,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyExportResponse) Descriptor Uses

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

func (*KeyExportResponse) GoString Uses

func (this *KeyExportResponse) GoString() string

func (*KeyExportResponse) Marshal Uses

func (m *KeyExportResponse) Marshal() (dAtA []byte, err error)

func (*KeyExportResponse) MarshalTo Uses

func (m *KeyExportResponse) MarshalTo(dAtA []byte) (int, error)

func (*KeyExportResponse) MarshalToSizedBuffer Uses

func (m *KeyExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyExportResponse) ProtoMessage Uses

func (*KeyExportResponse) ProtoMessage()

func (*KeyExportResponse) Reset Uses

func (m *KeyExportResponse) Reset()

func (*KeyExportResponse) Size Uses

func (m *KeyExportResponse) Size() (n int)

func (*KeyExportResponse) String Uses

func (m *KeyExportResponse) String() string

func (*KeyExportResponse) Unmarshal Uses

func (m *KeyExportResponse) Unmarshal(dAtA []byte) error

func (*KeyExportResponse) XXX_DiscardUnknown Uses

func (m *KeyExportResponse) XXX_DiscardUnknown()

func (*KeyExportResponse) XXX_Marshal Uses

func (m *KeyExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyExportResponse) XXX_Merge Uses

func (m *KeyExportResponse) XXX_Merge(src proto.Message)

func (*KeyExportResponse) XXX_Size Uses

func (m *KeyExportResponse) XXX_Size() int

func (*KeyExportResponse) XXX_Unmarshal Uses

func (m *KeyExportResponse) XXX_Unmarshal(b []byte) error

type KeyGenerateRequest Uses

type KeyGenerateRequest struct {
    Type                 KeyType  `protobuf:"varint,1,opt,name=type,proto3,enum=service.KeyType" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyGenerateRequest) Descriptor Uses

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

func (*KeyGenerateRequest) GoString Uses

func (this *KeyGenerateRequest) GoString() string

func (*KeyGenerateRequest) Marshal Uses

func (m *KeyGenerateRequest) Marshal() (dAtA []byte, err error)

func (*KeyGenerateRequest) MarshalTo Uses

func (m *KeyGenerateRequest) MarshalTo(dAtA []byte) (int, error)

func (*KeyGenerateRequest) MarshalToSizedBuffer Uses

func (m *KeyGenerateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyGenerateRequest) ProtoMessage Uses

func (*KeyGenerateRequest) ProtoMessage()

func (*KeyGenerateRequest) Reset Uses

func (m *KeyGenerateRequest) Reset()

func (*KeyGenerateRequest) Size Uses

func (m *KeyGenerateRequest) Size() (n int)

func (*KeyGenerateRequest) String Uses

func (m *KeyGenerateRequest) String() string

func (*KeyGenerateRequest) Unmarshal Uses

func (m *KeyGenerateRequest) Unmarshal(dAtA []byte) error

func (*KeyGenerateRequest) XXX_DiscardUnknown Uses

func (m *KeyGenerateRequest) XXX_DiscardUnknown()

func (*KeyGenerateRequest) XXX_Marshal Uses

func (m *KeyGenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyGenerateRequest) XXX_Merge Uses

func (m *KeyGenerateRequest) XXX_Merge(src proto.Message)

func (*KeyGenerateRequest) XXX_Size Uses

func (m *KeyGenerateRequest) XXX_Size() int

func (*KeyGenerateRequest) XXX_Unmarshal Uses

func (m *KeyGenerateRequest) XXX_Unmarshal(b []byte) error

type KeyGenerateResponse Uses

type KeyGenerateResponse struct {
    KID                  string   `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyGenerateResponse) Descriptor Uses

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

func (*KeyGenerateResponse) GoString Uses

func (this *KeyGenerateResponse) GoString() string

func (*KeyGenerateResponse) Marshal Uses

func (m *KeyGenerateResponse) Marshal() (dAtA []byte, err error)

func (*KeyGenerateResponse) MarshalTo Uses

func (m *KeyGenerateResponse) MarshalTo(dAtA []byte) (int, error)

func (*KeyGenerateResponse) MarshalToSizedBuffer Uses

func (m *KeyGenerateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyGenerateResponse) ProtoMessage Uses

func (*KeyGenerateResponse) ProtoMessage()

func (*KeyGenerateResponse) Reset Uses

func (m *KeyGenerateResponse) Reset()

func (*KeyGenerateResponse) Size Uses

func (m *KeyGenerateResponse) Size() (n int)

func (*KeyGenerateResponse) String Uses

func (m *KeyGenerateResponse) String() string

func (*KeyGenerateResponse) Unmarshal Uses

func (m *KeyGenerateResponse) Unmarshal(dAtA []byte) error

func (*KeyGenerateResponse) XXX_DiscardUnknown Uses

func (m *KeyGenerateResponse) XXX_DiscardUnknown()

func (*KeyGenerateResponse) XXX_Marshal Uses

func (m *KeyGenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyGenerateResponse) XXX_Merge Uses

func (m *KeyGenerateResponse) XXX_Merge(src proto.Message)

func (*KeyGenerateResponse) XXX_Size Uses

func (m *KeyGenerateResponse) XXX_Size() int

func (*KeyGenerateResponse) XXX_Unmarshal Uses

func (m *KeyGenerateResponse) XXX_Unmarshal(b []byte) error

type KeyImportRequest Uses

type KeyImportRequest struct {
    In                   []byte   `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"`
    Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyImportRequest) Descriptor Uses

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

func (*KeyImportRequest) GoString Uses

func (this *KeyImportRequest) GoString() string

func (*KeyImportRequest) Marshal Uses

func (m *KeyImportRequest) Marshal() (dAtA []byte, err error)

func (*KeyImportRequest) MarshalTo Uses

func (m *KeyImportRequest) MarshalTo(dAtA []byte) (int, error)

func (*KeyImportRequest) MarshalToSizedBuffer Uses

func (m *KeyImportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyImportRequest) ProtoMessage Uses

func (*KeyImportRequest) ProtoMessage()

func (*KeyImportRequest) Reset Uses

func (m *KeyImportRequest) Reset()

func (*KeyImportRequest) Size Uses

func (m *KeyImportRequest) Size() (n int)

func (*KeyImportRequest) String Uses

func (m *KeyImportRequest) String() string

func (*KeyImportRequest) Unmarshal Uses

func (m *KeyImportRequest) Unmarshal(dAtA []byte) error

func (*KeyImportRequest) XXX_DiscardUnknown Uses

func (m *KeyImportRequest) XXX_DiscardUnknown()

func (*KeyImportRequest) XXX_Marshal Uses

func (m *KeyImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyImportRequest) XXX_Merge Uses

func (m *KeyImportRequest) XXX_Merge(src proto.Message)

func (*KeyImportRequest) XXX_Size Uses

func (m *KeyImportRequest) XXX_Size() int

func (*KeyImportRequest) XXX_Unmarshal Uses

func (m *KeyImportRequest) XXX_Unmarshal(b []byte) error

type KeyImportResponse Uses

type KeyImportResponse struct {
    KID                  string   `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyImportResponse) Descriptor Uses

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

func (*KeyImportResponse) GoString Uses

func (this *KeyImportResponse) GoString() string

func (*KeyImportResponse) Marshal Uses

func (m *KeyImportResponse) Marshal() (dAtA []byte, err error)

func (*KeyImportResponse) MarshalTo Uses

func (m *KeyImportResponse) MarshalTo(dAtA []byte) (int, error)

func (*KeyImportResponse) MarshalToSizedBuffer Uses

func (m *KeyImportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyImportResponse) ProtoMessage Uses

func (*KeyImportResponse) ProtoMessage()

func (*KeyImportResponse) Reset Uses

func (m *KeyImportResponse) Reset()

func (*KeyImportResponse) Size Uses

func (m *KeyImportResponse) Size() (n int)

func (*KeyImportResponse) String Uses

func (m *KeyImportResponse) String() string

func (*KeyImportResponse) Unmarshal Uses

func (m *KeyImportResponse) Unmarshal(dAtA []byte) error

func (*KeyImportResponse) XXX_DiscardUnknown Uses

func (m *KeyImportResponse) XXX_DiscardUnknown()

func (*KeyImportResponse) XXX_Marshal Uses

func (m *KeyImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyImportResponse) XXX_Merge Uses

func (m *KeyImportResponse) XXX_Merge(src proto.Message)

func (*KeyImportResponse) XXX_Size Uses

func (m *KeyImportResponse) XXX_Size() int

func (*KeyImportResponse) XXX_Unmarshal Uses

func (m *KeyImportResponse) XXX_Unmarshal(b []byte) error

type KeyRemoveRequest Uses

type KeyRemoveRequest struct {
    // KID of key to remove.
    KID                  string   `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyRemoveRequest) Descriptor Uses

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

func (*KeyRemoveRequest) GoString Uses

func (this *KeyRemoveRequest) GoString() string

func (*KeyRemoveRequest) Marshal Uses

func (m *KeyRemoveRequest) Marshal() (dAtA []byte, err error)

func (*KeyRemoveRequest) MarshalTo Uses

func (m *KeyRemoveRequest) MarshalTo(dAtA []byte) (int, error)

func (*KeyRemoveRequest) MarshalToSizedBuffer Uses

func (m *KeyRemoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyRemoveRequest) ProtoMessage Uses

func (*KeyRemoveRequest) ProtoMessage()

func (*KeyRemoveRequest) Reset Uses

func (m *KeyRemoveRequest) Reset()

func (*KeyRemoveRequest) Size Uses

func (m *KeyRemoveRequest) Size() (n int)

func (*KeyRemoveRequest) String Uses

func (m *KeyRemoveRequest) String() string

func (*KeyRemoveRequest) Unmarshal Uses

func (m *KeyRemoveRequest) Unmarshal(dAtA []byte) error

func (*KeyRemoveRequest) XXX_DiscardUnknown Uses

func (m *KeyRemoveRequest) XXX_DiscardUnknown()

func (*KeyRemoveRequest) XXX_Marshal Uses

func (m *KeyRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyRemoveRequest) XXX_Merge Uses

func (m *KeyRemoveRequest) XXX_Merge(src proto.Message)

func (*KeyRemoveRequest) XXX_Size Uses

func (m *KeyRemoveRequest) XXX_Size() int

func (*KeyRemoveRequest) XXX_Unmarshal Uses

func (m *KeyRemoveRequest) XXX_Unmarshal(b []byte) error

type KeyRemoveResponse Uses

type KeyRemoveResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyRemoveResponse) Descriptor Uses

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

func (*KeyRemoveResponse) GoString Uses

func (this *KeyRemoveResponse) GoString() string

func (*KeyRemoveResponse) Marshal Uses

func (m *KeyRemoveResponse) Marshal() (dAtA []byte, err error)

func (*KeyRemoveResponse) MarshalTo Uses

func (m *KeyRemoveResponse) MarshalTo(dAtA []byte) (int, error)

func (*KeyRemoveResponse) MarshalToSizedBuffer Uses

func (m *KeyRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyRemoveResponse) ProtoMessage Uses

func (*KeyRemoveResponse) ProtoMessage()

func (*KeyRemoveResponse) Reset Uses

func (m *KeyRemoveResponse) Reset()

func (*KeyRemoveResponse) Size Uses

func (m *KeyRemoveResponse) Size() (n int)

func (*KeyRemoveResponse) String Uses

func (m *KeyRemoveResponse) String() string

func (*KeyRemoveResponse) Unmarshal Uses

func (m *KeyRemoveResponse) Unmarshal(dAtA []byte) error

func (*KeyRemoveResponse) XXX_DiscardUnknown Uses

func (m *KeyRemoveResponse) XXX_DiscardUnknown()

func (*KeyRemoveResponse) XXX_Marshal Uses

func (m *KeyRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyRemoveResponse) XXX_Merge Uses

func (m *KeyRemoveResponse) XXX_Merge(src proto.Message)

func (*KeyRemoveResponse) XXX_Size Uses

func (m *KeyRemoveResponse) XXX_Size() int

func (*KeyRemoveResponse) XXX_Unmarshal Uses

func (m *KeyRemoveResponse) XXX_Unmarshal(b []byte) error

type KeyRequest Uses

type KeyRequest struct {
    Identity             string   `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
    Update               bool     `protobuf:"varint,5,opt,name=update,proto3" json:"update,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyRequest) Descriptor Uses

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

func (*KeyRequest) GoString Uses

func (this *KeyRequest) GoString() string

func (*KeyRequest) Marshal Uses

func (m *KeyRequest) Marshal() (dAtA []byte, err error)

func (*KeyRequest) MarshalTo Uses

func (m *KeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*KeyRequest) MarshalToSizedBuffer Uses

func (m *KeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyRequest) ProtoMessage Uses

func (*KeyRequest) ProtoMessage()

func (*KeyRequest) Reset Uses

func (m *KeyRequest) Reset()

func (*KeyRequest) Size Uses

func (m *KeyRequest) Size() (n int)

func (*KeyRequest) String Uses

func (m *KeyRequest) String() string

func (*KeyRequest) Unmarshal Uses

func (m *KeyRequest) Unmarshal(dAtA []byte) error

func (*KeyRequest) XXX_DiscardUnknown Uses

func (m *KeyRequest) XXX_DiscardUnknown()

func (*KeyRequest) XXX_Marshal Uses

func (m *KeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyRequest) XXX_Merge Uses

func (m *KeyRequest) XXX_Merge(src proto.Message)

func (*KeyRequest) XXX_Size Uses

func (m *KeyRequest) XXX_Size() int

func (*KeyRequest) XXX_Unmarshal Uses

func (m *KeyRequest) XXX_Unmarshal(b []byte) error

type KeyResponse Uses

type KeyResponse struct {
    Key                  *Key     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyResponse) Descriptor Uses

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

func (*KeyResponse) GoString Uses

func (this *KeyResponse) GoString() string

func (*KeyResponse) Marshal Uses

func (m *KeyResponse) Marshal() (dAtA []byte, err error)

func (*KeyResponse) MarshalTo Uses

func (m *KeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*KeyResponse) MarshalToSizedBuffer Uses

func (m *KeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyResponse) ProtoMessage Uses

func (*KeyResponse) ProtoMessage()

func (*KeyResponse) Reset Uses

func (m *KeyResponse) Reset()

func (*KeyResponse) Size Uses

func (m *KeyResponse) Size() (n int)

func (*KeyResponse) String Uses

func (m *KeyResponse) String() string

func (*KeyResponse) Unmarshal Uses

func (m *KeyResponse) Unmarshal(dAtA []byte) error

func (*KeyResponse) XXX_DiscardUnknown Uses

func (m *KeyResponse) XXX_DiscardUnknown()

func (*KeyResponse) XXX_Marshal Uses

func (m *KeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyResponse) XXX_Merge Uses

func (m *KeyResponse) XXX_Merge(src proto.Message)

func (*KeyResponse) XXX_Size Uses

func (m *KeyResponse) XXX_Size() int

func (*KeyResponse) XXX_Unmarshal Uses

func (m *KeyResponse) XXX_Unmarshal(b []byte) error

type KeyType Uses

type KeyType int32
const (
    UnknownKeyType KeyType = 0
    EdX25519       KeyType = 10
    EdX25519Public KeyType = 11
    X25519         KeyType = 20
    X25519Public   KeyType = 21
)

func (KeyType) EnumDescriptor Uses

func (KeyType) EnumDescriptor() ([]byte, []int)

func (KeyType) String Uses

func (x KeyType) String() string

type KeysClient Uses

type KeysClient interface {
    KeyGenerate(ctx context.Context, in *KeyGenerateRequest, opts ...grpc.CallOption) (*KeyGenerateResponse, error)
    Keys(ctx context.Context, in *KeysRequest, opts ...grpc.CallOption) (*KeysResponse, error)
    Key(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error)
    KeyImport(ctx context.Context, in *KeyImportRequest, opts ...grpc.CallOption) (*KeyImportResponse, error)
    KeyExport(ctx context.Context, in *KeyExportRequest, opts ...grpc.CallOption) (*KeyExportResponse, error)
    KeyRemove(ctx context.Context, in *KeyRemoveRequest, opts ...grpc.CallOption) (*KeyRemoveResponse, error)
    Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
    SignFile(ctx context.Context, opts ...grpc.CallOption) (Keys_SignFileClient, error)
    SignStream(ctx context.Context, opts ...grpc.CallOption) (Keys_SignStreamClient, error)
    Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
    VerifyFile(ctx context.Context, opts ...grpc.CallOption) (Keys_VerifyFileClient, error)
    VerifyStream(ctx context.Context, opts ...grpc.CallOption) (Keys_VerifyStreamClient, error)
    VerifyArmoredStream(ctx context.Context, opts ...grpc.CallOption) (Keys_VerifyArmoredStreamClient, error)
    Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error)
    EncryptStream(ctx context.Context, opts ...grpc.CallOption) (Keys_EncryptStreamClient, error)
    EncryptFile(ctx context.Context, opts ...grpc.CallOption) (Keys_EncryptFileClient, error)
    Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error)
    DecryptFile(ctx context.Context, opts ...grpc.CallOption) (Keys_DecryptFileClient, error)
    DecryptStream(ctx context.Context, opts ...grpc.CallOption) (Keys_DecryptStreamClient, error)
    DecryptArmoredStream(ctx context.Context, opts ...grpc.CallOption) (Keys_DecryptArmoredStreamClient, error)
    SigncryptOpenStream(ctx context.Context, opts ...grpc.CallOption) (Keys_SigncryptOpenStreamClient, error)
    SigncryptOpenArmoredStream(ctx context.Context, opts ...grpc.CallOption) (Keys_SigncryptOpenArmoredStreamClient, error)
    Sigchain(ctx context.Context, in *SigchainRequest, opts ...grpc.CallOption) (*SigchainResponse, error)
    Statement(ctx context.Context, in *StatementRequest, opts ...grpc.CallOption) (*StatementResponse, error)
    StatementCreate(ctx context.Context, in *StatementCreateRequest, opts ...grpc.CallOption) (*StatementCreateResponse, error)
    StatementRevoke(ctx context.Context, in *StatementRevokeRequest, opts ...grpc.CallOption) (*StatementRevokeResponse, error)
    User(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
    UserSearch(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error)
    UserService(ctx context.Context, in *UserServiceRequest, opts ...grpc.CallOption) (*UserServiceResponse, error)
    UserSign(ctx context.Context, in *UserSignRequest, opts ...grpc.CallOption) (*UserSignResponse, error)
    UserAdd(ctx context.Context, in *UserAddRequest, opts ...grpc.CallOption) (*UserAddResponse, error)
    Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
    Item(ctx context.Context, in *ItemRequest, opts ...grpc.CallOption) (*ItemResponse, error)
    Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*ItemsResponse, error)
    Pull(ctx context.Context, in *PullRequest, opts ...grpc.CallOption) (*PullResponse, error)
    Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error)
    Config(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error)
    ConfigSet(ctx context.Context, in *ConfigSetRequest, opts ...grpc.CallOption) (*ConfigSetResponse, error)
    Wormhole(ctx context.Context, opts ...grpc.CallOption) (Keys_WormholeClient, error)
    // These requests do not need auth, since they are used to set or check auth.
    // BEGIN NO AUTH
    AuthSetup(ctx context.Context, in *AuthSetupRequest, opts ...grpc.CallOption) (*AuthSetupResponse, error)
    AuthUnlock(ctx context.Context, in *AuthUnlockRequest, opts ...grpc.CallOption) (*AuthUnlockResponse, error)
    AuthLock(ctx context.Context, in *AuthLockRequest, opts ...grpc.CallOption) (*AuthLockResponse, error)
    RuntimeStatus(ctx context.Context, in *RuntimeStatusRequest, opts ...grpc.CallOption) (*RuntimeStatusResponse, error)
    Rand(ctx context.Context, in *RandRequest, opts ...grpc.CallOption) (*RandResponse, error)
    Collections(ctx context.Context, in *CollectionsRequest, opts ...grpc.CallOption) (*CollectionsResponse, error)
    Documents(ctx context.Context, in *DocumentsRequest, opts ...grpc.CallOption) (*DocumentsResponse, error)
    DocumentDelete(ctx context.Context, in *DocumentDeleteRequest, opts ...grpc.CallOption) (*DocumentDeleteResponse, error)
    // Experimental
    MessagePrepare(ctx context.Context, in *MessagePrepareRequest, opts ...grpc.CallOption) (*MessagePrepareResponse, error)
    MessageCreate(ctx context.Context, in *MessageCreateRequest, opts ...grpc.CallOption) (*MessageCreateResponse, error)
    Messages(ctx context.Context, in *MessagesRequest, opts ...grpc.CallOption) (*MessagesResponse, error)
    Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Keys_WatchClient, error)
}

KeysClient is the client API for Keys service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKeysClient Uses

func NewKeysClient(cc *grpc.ClientConn) KeysClient

type KeysRequest Uses

type KeysRequest struct {
    Query                string        `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
    Types                []KeyType     `protobuf:"varint,2,rep,packed,name=types,proto3,enum=service.KeyType" json:"types,omitempty"`
    SortField            string        `protobuf:"bytes,10,opt,name=sortField,proto3" json:"sortField,omitempty"`
    SortDirection        SortDirection `protobuf:"varint,11,opt,name=sortDirection,proto3,enum=service.SortDirection" json:"sortDirection,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*KeysRequest) Descriptor Uses

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

func (*KeysRequest) GoString Uses

func (this *KeysRequest) GoString() string

func (*KeysRequest) Marshal Uses

func (m *KeysRequest) Marshal() (dAtA []byte, err error)

func (*KeysRequest) MarshalTo Uses

func (m *KeysRequest) MarshalTo(dAtA []byte) (int, error)

func (*KeysRequest) MarshalToSizedBuffer Uses

func (m *KeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeysRequest) ProtoMessage Uses

func (*KeysRequest) ProtoMessage()

func (*KeysRequest) Reset Uses

func (m *KeysRequest) Reset()

func (*KeysRequest) Size Uses

func (m *KeysRequest) Size() (n int)

func (*KeysRequest) String Uses

func (m *KeysRequest) String() string

func (*KeysRequest) Unmarshal Uses

func (m *KeysRequest) Unmarshal(dAtA []byte) error

func (*KeysRequest) XXX_DiscardUnknown Uses

func (m *KeysRequest) XXX_DiscardUnknown()

func (*KeysRequest) XXX_Marshal Uses

func (m *KeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeysRequest) XXX_Merge Uses

func (m *KeysRequest) XXX_Merge(src proto.Message)

func (*KeysRequest) XXX_Size Uses

func (m *KeysRequest) XXX_Size() int

func (*KeysRequest) XXX_Unmarshal Uses

func (m *KeysRequest) XXX_Unmarshal(b []byte) error

type KeysResponse Uses

type KeysResponse struct {
    Keys                 []*Key        `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
    SortField            string        `protobuf:"bytes,10,opt,name=sortField,proto3" json:"sortField,omitempty"`
    SortDirection        SortDirection `protobuf:"varint,11,opt,name=sortDirection,proto3,enum=service.SortDirection" json:"sortDirection,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*KeysResponse) Descriptor Uses

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

func (*KeysResponse) GoString Uses

func (this *KeysResponse) GoString() string

func (*KeysResponse) Marshal Uses

func (m *KeysResponse) Marshal() (dAtA []byte, err error)

func (*KeysResponse) MarshalTo Uses

func (m *KeysResponse) MarshalTo(dAtA []byte) (int, error)

func (*KeysResponse) MarshalToSizedBuffer Uses

func (m *KeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeysResponse) ProtoMessage Uses

func (*KeysResponse) ProtoMessage()

func (*KeysResponse) Reset Uses

func (m *KeysResponse) Reset()

func (*KeysResponse) Size Uses

func (m *KeysResponse) Size() (n int)

func (*KeysResponse) String Uses

func (m *KeysResponse) String() string

func (*KeysResponse) Unmarshal Uses

func (m *KeysResponse) Unmarshal(dAtA []byte) error

func (*KeysResponse) XXX_DiscardUnknown Uses

func (m *KeysResponse) XXX_DiscardUnknown()

func (*KeysResponse) XXX_Marshal Uses

func (m *KeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeysResponse) XXX_Merge Uses

func (m *KeysResponse) XXX_Merge(src proto.Message)

func (*KeysResponse) XXX_Size Uses

func (m *KeysResponse) XXX_Size() int

func (*KeysResponse) XXX_Unmarshal Uses

func (m *KeysResponse) XXX_Unmarshal(b []byte) error

type KeysServer Uses

type KeysServer interface {
    KeyGenerate(context.Context, *KeyGenerateRequest) (*KeyGenerateResponse, error)
    Keys(context.Context, *KeysRequest) (*KeysResponse, error)
    Key(context.Context, *KeyRequest) (*KeyResponse, error)
    KeyImport(context.Context, *KeyImportRequest) (*KeyImportResponse, error)
    KeyExport(context.Context, *KeyExportRequest) (*KeyExportResponse, error)
    KeyRemove(context.Context, *KeyRemoveRequest) (*KeyRemoveResponse, error)
    Sign(context.Context, *SignRequest) (*SignResponse, error)
    SignFile(Keys_SignFileServer) error
    SignStream(Keys_SignStreamServer) error
    Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
    VerifyFile(Keys_VerifyFileServer) error
    VerifyStream(Keys_VerifyStreamServer) error
    VerifyArmoredStream(Keys_VerifyArmoredStreamServer) error
    Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
    EncryptStream(Keys_EncryptStreamServer) error
    EncryptFile(Keys_EncryptFileServer) error
    Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
    DecryptFile(Keys_DecryptFileServer) error
    DecryptStream(Keys_DecryptStreamServer) error
    DecryptArmoredStream(Keys_DecryptArmoredStreamServer) error
    SigncryptOpenStream(Keys_SigncryptOpenStreamServer) error
    SigncryptOpenArmoredStream(Keys_SigncryptOpenArmoredStreamServer) error
    Sigchain(context.Context, *SigchainRequest) (*SigchainResponse, error)
    Statement(context.Context, *StatementRequest) (*StatementResponse, error)
    StatementCreate(context.Context, *StatementCreateRequest) (*StatementCreateResponse, error)
    StatementRevoke(context.Context, *StatementRevokeRequest) (*StatementRevokeResponse, error)
    User(context.Context, *UserRequest) (*UserResponse, error)
    UserSearch(context.Context, *UserSearchRequest) (*UserSearchResponse, error)
    UserService(context.Context, *UserServiceRequest) (*UserServiceResponse, error)
    UserSign(context.Context, *UserSignRequest) (*UserSignResponse, error)
    UserAdd(context.Context, *UserAddRequest) (*UserAddResponse, error)
    Search(context.Context, *SearchRequest) (*SearchResponse, error)
    Item(context.Context, *ItemRequest) (*ItemResponse, error)
    Items(context.Context, *ItemsRequest) (*ItemsResponse, error)
    Pull(context.Context, *PullRequest) (*PullResponse, error)
    Push(context.Context, *PushRequest) (*PushResponse, error)
    Config(context.Context, *ConfigRequest) (*ConfigResponse, error)
    ConfigSet(context.Context, *ConfigSetRequest) (*ConfigSetResponse, error)
    Wormhole(Keys_WormholeServer) error
    // These requests do not need auth, since they are used to set or check auth.
    // BEGIN NO AUTH
    AuthSetup(context.Context, *AuthSetupRequest) (*AuthSetupResponse, error)
    AuthUnlock(context.Context, *AuthUnlockRequest) (*AuthUnlockResponse, error)
    AuthLock(context.Context, *AuthLockRequest) (*AuthLockResponse, error)
    RuntimeStatus(context.Context, *RuntimeStatusRequest) (*RuntimeStatusResponse, error)
    Rand(context.Context, *RandRequest) (*RandResponse, error)
    Collections(context.Context, *CollectionsRequest) (*CollectionsResponse, error)
    Documents(context.Context, *DocumentsRequest) (*DocumentsResponse, error)
    DocumentDelete(context.Context, *DocumentDeleteRequest) (*DocumentDeleteResponse, error)
    // Experimental
    MessagePrepare(context.Context, *MessagePrepareRequest) (*MessagePrepareResponse, error)
    MessageCreate(context.Context, *MessageCreateRequest) (*MessageCreateResponse, error)
    Messages(context.Context, *MessagesRequest) (*MessagesResponse, error)
    Watch(*WatchRequest, Keys_WatchServer) error
}

KeysServer is the server API for Keys service.

type Keys_DecryptArmoredStreamClient Uses

type Keys_DecryptArmoredStreamClient interface {
    Send(*DecryptInput) error
    Recv() (*DecryptOutput, error)
    grpc.ClientStream
}

type Keys_DecryptArmoredStreamServer Uses

type Keys_DecryptArmoredStreamServer interface {
    Send(*DecryptOutput) error
    Recv() (*DecryptInput, error)
    grpc.ServerStream
}

type Keys_DecryptFileClient Uses

type Keys_DecryptFileClient interface {
    Send(*DecryptFileInput) error
    Recv() (*DecryptFileOutput, error)
    grpc.ClientStream
}

type Keys_DecryptFileServer Uses

type Keys_DecryptFileServer interface {
    Send(*DecryptFileOutput) error
    Recv() (*DecryptFileInput, error)
    grpc.ServerStream
}

type Keys_DecryptStreamClient Uses

type Keys_DecryptStreamClient interface {
    Send(*DecryptInput) error
    Recv() (*DecryptOutput, error)
    grpc.ClientStream
}

type Keys_DecryptStreamServer Uses

type Keys_DecryptStreamServer interface {
    Send(*DecryptOutput) error
    Recv() (*DecryptInput, error)
    grpc.ServerStream
}

type Keys_EncryptFileClient Uses

type Keys_EncryptFileClient interface {
    Send(*EncryptFileInput) error
    Recv() (*EncryptFileOutput, error)
    grpc.ClientStream
}

type Keys_EncryptFileServer Uses

type Keys_EncryptFileServer interface {
    Send(*EncryptFileOutput) error
    Recv() (*EncryptFileInput, error)
    grpc.ServerStream
}

type Keys_EncryptStreamClient Uses

type Keys_EncryptStreamClient interface {
    Send(*EncryptInput) error
    Recv() (*EncryptOutput, error)
    grpc.ClientStream
}

type Keys_EncryptStreamServer Uses

type Keys_EncryptStreamServer interface {
    Send(*EncryptOutput) error
    Recv() (*EncryptInput, error)
    grpc.ServerStream
}

type Keys_SignFileClient Uses

type Keys_SignFileClient interface {
    Send(*SignFileInput) error
    Recv() (*SignFileOutput, error)
    grpc.ClientStream
}

type Keys_SignFileServer Uses

type Keys_SignFileServer interface {
    Send(*SignFileOutput) error
    Recv() (*SignFileInput, error)
    grpc.ServerStream
}

type Keys_SignStreamClient Uses

type Keys_SignStreamClient interface {
    Send(*SignInput) error
    Recv() (*SignOutput, error)
    grpc.ClientStream
}

type Keys_SignStreamServer Uses

type Keys_SignStreamServer interface {
    Send(*SignOutput) error
    Recv() (*SignInput, error)
    grpc.ServerStream
}

type Keys_SigncryptOpenArmoredStreamClient Uses

type Keys_SigncryptOpenArmoredStreamClient interface {
    Send(*DecryptInput) error
    Recv() (*DecryptOutput, error)
    grpc.ClientStream
}

type Keys_SigncryptOpenArmoredStreamServer Uses

type Keys_SigncryptOpenArmoredStreamServer interface {
    Send(*DecryptOutput) error
    Recv() (*DecryptInput, error)
    grpc.ServerStream
}

type Keys_SigncryptOpenStreamClient Uses

type Keys_SigncryptOpenStreamClient interface {
    Send(*DecryptInput) error
    Recv() (*DecryptOutput, error)
    grpc.ClientStream
}

type Keys_SigncryptOpenStreamServer Uses

type Keys_SigncryptOpenStreamServer interface {
    Send(*DecryptOutput) error
    Recv() (*DecryptInput, error)
    grpc.ServerStream
}

type Keys_VerifyArmoredStreamClient Uses

type Keys_VerifyArmoredStreamClient interface {
    Send(*VerifyInput) error
    Recv() (*VerifyOutput, error)
    grpc.ClientStream
}

type Keys_VerifyArmoredStreamServer Uses

type Keys_VerifyArmoredStreamServer interface {
    Send(*VerifyOutput) error
    Recv() (*VerifyInput, error)
    grpc.ServerStream
}

type Keys_VerifyFileClient Uses

type Keys_VerifyFileClient interface {
    Send(*VerifyFileInput) error
    Recv() (*VerifyFileOutput, error)
    grpc.ClientStream
}

type Keys_VerifyFileServer Uses

type Keys_VerifyFileServer interface {
    Send(*VerifyFileOutput) error
    Recv() (*VerifyFileInput, error)
    grpc.ServerStream
}

type Keys_VerifyStreamClient Uses

type Keys_VerifyStreamClient interface {
    Send(*VerifyInput) error
    Recv() (*VerifyOutput, error)
    grpc.ClientStream
}

type Keys_VerifyStreamServer Uses

type Keys_VerifyStreamServer interface {
    Send(*VerifyOutput) error
    Recv() (*VerifyInput, error)
    grpc.ServerStream
}

type Keys_WatchClient Uses

type Keys_WatchClient interface {
    Recv() (*WatchEvent, error)
    grpc.ClientStream
}

type Keys_WatchServer Uses

type Keys_WatchServer interface {
    Send(*WatchEvent) error
    grpc.ServerStream
}

type Keys_WormholeClient Uses

type Keys_WormholeClient interface {
    Send(*WormholeInput) error
    Recv() (*WormholeOutput, error)
    grpc.ClientStream
}

type Keys_WormholeServer Uses

type Keys_WormholeServer interface {
    Send(*WormholeOutput) error
    Recv() (*WormholeInput, error)
    grpc.ServerStream
}

type LogInterceptor Uses

type LogInterceptor interface {
    Replace()
    Unary() grpc.UnaryServerInterceptor
    Stream() grpc.StreamServerInterceptor
}

LogInterceptor for gRPC.

func NewLogrusInterceptor Uses

func NewLogrusInterceptor(l *logrus.Logger) LogInterceptor

NewLogrusInterceptor is gRPC interceptor for logrus.

type LogLevel Uses

type LogLevel int

LogLevel ...

const (
    // DebugLevel ...
    DebugLevel LogLevel = 3
    // InfoLevel ...
    InfoLevel LogLevel = 2
    // WarnLevel ...
    WarnLevel LogLevel = 1
    // ErrLevel ...
    ErrLevel LogLevel = 0
)

func (LogLevel) String Uses

func (l LogLevel) String() string

type Logger Uses

type Logger interface {
    Debugf(format string, args ...interface{})
    Infof(format string, args ...interface{})
    Warningf(format string, args ...interface{})
    Errorf(format string, args ...interface{})
    Fatalf(format string, args ...interface{})
}

Logger interface used in this package.

func NewLogger Uses

func NewLogger(lev LogLevel) Logger

NewLogger ...

type Message Uses

type Message struct {
    ID                   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Sender               *Key        `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
    Recipient            *Key        `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
    Type                 MessageType `protobuf:"varint,5,opt,name=type,proto3,enum=service.MessageType" json:"type,omitempty"`
    Content              *Content    `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`
    CreatedAt            int64       `protobuf:"varint,21,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
    TimeDisplay          string      `protobuf:"bytes,31,opt,name=timeDisplay,proto3" json:"timeDisplay,omitempty"`
    DateDisplay          string      `protobuf:"bytes,32,opt,name=dateDisplay,proto3" json:"dateDisplay,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*Message) Descriptor Uses

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

func (*Message) GoString Uses

func (this *Message) GoString() string

func (*Message) Marshal Uses

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo Uses

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer Uses

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage Uses

func (*Message) ProtoMessage()

func (*Message) Reset Uses

func (m *Message) Reset()

func (*Message) Size Uses

func (m *Message) Size() (n int)

func (*Message) String Uses

func (m *Message) String() string

func (*Message) Unmarshal Uses

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown Uses

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal Uses

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge Uses

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size Uses

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal Uses

func (m *Message) XXX_Unmarshal(b []byte) error

type MessageCreateRequest Uses

type MessageCreateRequest struct {
    Sender               string   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
    Recipient            string   `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
    Text                 string   `protobuf:"bytes,11,opt,name=text,proto3" json:"text,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*MessageCreateRequest) Descriptor Uses

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

func (*MessageCreateRequest) GoString Uses

func (this *MessageCreateRequest) GoString() string

func (*MessageCreateRequest) Marshal Uses

func (m *MessageCreateRequest) Marshal() (dAtA []byte, err error)

func (*MessageCreateRequest) MarshalTo Uses

func (m *MessageCreateRequest) MarshalTo(dAtA []byte) (int, error)

func (*MessageCreateRequest) MarshalToSizedBuffer Uses

func (m *MessageCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MessageCreateRequest) ProtoMessage Uses

func (*MessageCreateRequest) ProtoMessage()

func (*MessageCreateRequest) Reset Uses

func (m *MessageCreateRequest) Reset()

func (*MessageCreateRequest) Size Uses

func (m *MessageCreateRequest) Size() (n int)

func (*MessageCreateRequest) String Uses

func (m *MessageCreateRequest) String() string

func (*MessageCreateRequest) Unmarshal Uses

func (m *MessageCreateRequest) Unmarshal(dAtA []byte) error

func (*MessageCreateRequest) XXX_DiscardUnknown Uses

func (m *MessageCreateRequest) XXX_DiscardUnknown()

func (*MessageCreateRequest) XXX_Marshal Uses

func (m *MessageCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageCreateRequest) XXX_Merge Uses

func (m *MessageCreateRequest) XXX_Merge(src proto.Message)

func (*MessageCreateRequest) XXX_Size Uses

func (m *MessageCreateRequest) XXX_Size() int

func (*MessageCreateRequest) XXX_Unmarshal Uses

func (m *MessageCreateRequest) XXX_Unmarshal(b []byte) error

type MessageCreateResponse Uses

type MessageCreateResponse struct {
    Message              *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*MessageCreateResponse) Descriptor Uses

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

func (*MessageCreateResponse) GoString Uses

func (this *MessageCreateResponse) GoString() string

func (*MessageCreateResponse) Marshal Uses

func (m *MessageCreateResponse) Marshal() (dAtA []byte, err error)

func (*MessageCreateResponse) MarshalTo Uses

func (m *MessageCreateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MessageCreateResponse) MarshalToSizedBuffer Uses

func (m *MessageCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MessageCreateResponse) ProtoMessage Uses

func (*MessageCreateResponse) ProtoMessage()

func (*MessageCreateResponse) Reset Uses

func (m *MessageCreateResponse) Reset()

func (*MessageCreateResponse) Size Uses

func (m *MessageCreateResponse) Size() (n int)

func (*MessageCreateResponse) String Uses

func (m *MessageCreateResponse) String() string

func (*MessageCreateResponse) Unmarshal Uses

func (m *MessageCreateResponse) Unmarshal(dAtA []byte) error

func (*MessageCreateResponse) XXX_DiscardUnknown Uses

func (m *MessageCreateResponse) XXX_DiscardUnknown()

func (*MessageCreateResponse) XXX_Marshal Uses

func (m *MessageCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageCreateResponse) XXX_Merge Uses

func (m *MessageCreateResponse) XXX_Merge(src proto.Message)

func (*MessageCreateResponse) XXX_Size Uses

func (m *MessageCreateResponse) XXX_Size() int

func (*MessageCreateResponse) XXX_Unmarshal Uses

func (m *MessageCreateResponse) XXX_Unmarshal(b []byte) error

type MessagePrepareRequest Uses

type MessagePrepareRequest struct {
    Sender               string   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
    Recipient            string   `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
    Text                 string   `protobuf:"bytes,11,opt,name=text,proto3" json:"text,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*MessagePrepareRequest) Descriptor Uses

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

func (*MessagePrepareRequest) GoString Uses

func (this *MessagePrepareRequest) GoString() string

func (*MessagePrepareRequest) Marshal Uses

func (m *MessagePrepareRequest) Marshal() (dAtA []byte, err error)

func (*MessagePrepareRequest) MarshalTo Uses