krab

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

Types

type Empty

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

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type KeyDelete

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

func (*KeyDelete) Descriptor

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

func (*KeyDelete) GetName

func (m *KeyDelete) GetName() string

func (*KeyDelete) ProtoMessage

func (*KeyDelete) ProtoMessage()

func (*KeyDelete) Reset

func (m *KeyDelete) Reset()

func (*KeyDelete) String

func (m *KeyDelete) String() string

func (*KeyDelete) XXX_DiscardUnknown

func (m *KeyDelete) XXX_DiscardUnknown()

func (*KeyDelete) XXX_Marshal

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

func (*KeyDelete) XXX_Merge

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

func (*KeyDelete) XXX_Size

func (m *KeyDelete) XXX_Size() int

func (*KeyDelete) XXX_Unmarshal

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

type KeyGet

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

func (*KeyGet) Descriptor

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

func (*KeyGet) GetName

func (m *KeyGet) GetName() string

func (*KeyGet) ProtoMessage

func (*KeyGet) ProtoMessage()

func (*KeyGet) Reset

func (m *KeyGet) Reset()

func (*KeyGet) String

func (m *KeyGet) String() string

func (*KeyGet) XXX_DiscardUnknown

func (m *KeyGet) XXX_DiscardUnknown()

func (*KeyGet) XXX_Marshal

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

func (*KeyGet) XXX_Merge

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

func (*KeyGet) XXX_Size

func (m *KeyGet) XXX_Size() int

func (*KeyGet) XXX_Unmarshal

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

type KeyList

type KeyList struct {
	Limit                int64    `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyList) Descriptor

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

func (*KeyList) GetLimit

func (m *KeyList) GetLimit() int64

func (*KeyList) ProtoMessage

func (*KeyList) ProtoMessage()

func (*KeyList) Reset

func (m *KeyList) Reset()

func (*KeyList) String

func (m *KeyList) String() string

func (*KeyList) XXX_DiscardUnknown

func (m *KeyList) XXX_DiscardUnknown()

func (*KeyList) XXX_Marshal

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

func (*KeyList) XXX_Merge

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

func (*KeyList) XXX_Size

func (m *KeyList) XXX_Size() int

func (*KeyList) XXX_Unmarshal

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

type KeyPut

type KeyPut struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PrivateKey           []byte   `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyPut) Descriptor

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

func (*KeyPut) GetName

func (m *KeyPut) GetName() string

func (*KeyPut) GetPrivateKey

func (m *KeyPut) GetPrivateKey() []byte

func (*KeyPut) ProtoMessage

func (*KeyPut) ProtoMessage()

func (*KeyPut) Reset

func (m *KeyPut) Reset()

func (*KeyPut) String

func (m *KeyPut) String() string

func (*KeyPut) XXX_DiscardUnknown

func (m *KeyPut) XXX_DiscardUnknown()

func (*KeyPut) XXX_Marshal

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

func (*KeyPut) XXX_Merge

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

func (*KeyPut) XXX_Size

func (m *KeyPut) XXX_Size() int

func (*KeyPut) XXX_Unmarshal

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

type Response

type Response struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	PrivateKey           []byte   `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	KeyIDs               []string `protobuf:"bytes,3,rep,name=keyIDs,proto3" json:"keyIDs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetKeyIDs

func (m *Response) GetKeyIDs() []string

func (*Response) GetPrivateKey

func (m *Response) GetPrivateKey() []byte

func (*Response) GetStatus

func (m *Response) GetStatus() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type ServiceClient

type ServiceClient interface {
	HasPrivateKey(ctx context.Context, in *KeyGet, opts ...grpc.CallOption) (*Response, error)
	GetPrivateKey(ctx context.Context, in *KeyGet, opts ...grpc.CallOption) (*Response, error)
	PutPrivateKey(ctx context.Context, in *KeyPut, opts ...grpc.CallOption) (*Response, error)
	DeletePrivateKey(ctx context.Context, in *KeyDelete, opts ...grpc.CallOption) (*Response, error)
	ListPrivateKeys(ctx context.Context, in *KeyList, opts ...grpc.CallOption) (*Response, error)
}

ServiceClient is the client API for Service service.

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

func NewServiceClient

func NewServiceClient(cc *grpc.ClientConn) ServiceClient

type ServiceServer

type ServiceServer interface {
	HasPrivateKey(context.Context, *KeyGet) (*Response, error)
	GetPrivateKey(context.Context, *KeyGet) (*Response, error)
	PutPrivateKey(context.Context, *KeyPut) (*Response, error)
	DeletePrivateKey(context.Context, *KeyDelete) (*Response, error)
	ListPrivateKeys(context.Context, *KeyList) (*Response, error)
}

ServiceServer is the server API for Service service.

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) DeletePrivateKey

func (*UnimplementedServiceServer) DeletePrivateKey(ctx context.Context, req *KeyDelete) (*Response, error)

func (*UnimplementedServiceServer) GetPrivateKey

func (*UnimplementedServiceServer) GetPrivateKey(ctx context.Context, req *KeyGet) (*Response, error)

func (*UnimplementedServiceServer) HasPrivateKey

func (*UnimplementedServiceServer) HasPrivateKey(ctx context.Context, req *KeyGet) (*Response, error)

func (*UnimplementedServiceServer) ListPrivateKeys

func (*UnimplementedServiceServer) ListPrivateKeys(ctx context.Context, req *KeyList) (*Response, error)

func (*UnimplementedServiceServer) PutPrivateKey

func (*UnimplementedServiceServer) PutPrivateKey(ctx context.Context, req *KeyPut) (*Response, error)

Jump to

Keyboard shortcuts

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