Documentation ¶
Overview ¶
Package wire is a generated protocol buffer package.
It is generated from these files:
bazil.org/bazil/server/control/wire/control.proto bazil.org/bazil/server/control/wire/peer.proto bazil.org/bazil/server/control/wire/publickey.proto bazil.org/bazil/server/control/wire/sharing.proto bazil.org/bazil/server/control/wire/volume.proto
It has these top-level messages:
PingRequest PingResponse
Index ¶
- func RegisterControlServer(s *grpc.Server, srv ControlServer)
- type ControlClient
- type ControlServer
- type PeerAddRequest
- type PeerAddResponse
- type PeerLocationSetRequest
- type PeerLocationSetResponse
- type PeerStorageAllowRequest
- type PeerStorageAllowResponse
- type PeerVolumeAllowRequest
- type PeerVolumeAllowResponse
- type PingRequest
- type PingResponse
- type PublicKeyGetRequest
- type PublicKeyGetResponse
- type SharingKeyAddRequest
- type SharingKeyAddResponse
- type VolumeConnectRequest
- type VolumeConnectResponse
- type VolumeCreateRequest
- type VolumeCreateResponse
- type VolumeMountRequest
- type VolumeMountResponse
- type VolumeStorageAddRequest
- type VolumeStorageAddResponse
- type VolumeSyncRequest
- type VolumeSyncResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterControlServer ¶
func RegisterControlServer(s *grpc.Server, srv ControlServer)
Types ¶
type ControlClient ¶
type ControlClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) PublicKeyGet(ctx context.Context, in *PublicKeyGetRequest, opts ...grpc.CallOption) (*PublicKeyGetResponse, error) VolumeCreate(ctx context.Context, in *VolumeCreateRequest, opts ...grpc.CallOption) (*VolumeCreateResponse, error) VolumeConnect(ctx context.Context, in *VolumeConnectRequest, opts ...grpc.CallOption) (*VolumeConnectResponse, error) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) VolumeStorageAdd(ctx context.Context, in *VolumeStorageAddRequest, opts ...grpc.CallOption) (*VolumeStorageAddResponse, error) VolumeSync(ctx context.Context, in *VolumeSyncRequest, opts ...grpc.CallOption) (*VolumeSyncResponse, error) SharingKeyAdd(ctx context.Context, in *SharingKeyAddRequest, opts ...grpc.CallOption) (*SharingKeyAddResponse, error) PeerAdd(ctx context.Context, in *PeerAddRequest, opts ...grpc.CallOption) (*PeerAddResponse, error) PeerLocationSet(ctx context.Context, in *PeerLocationSetRequest, opts ...grpc.CallOption) (*PeerLocationSetResponse, error) PeerStorageAllow(ctx context.Context, in *PeerStorageAllowRequest, opts ...grpc.CallOption) (*PeerStorageAllowResponse, error) PeerVolumeAllow(ctx context.Context, in *PeerVolumeAllowRequest, opts ...grpc.CallOption) (*PeerVolumeAllowResponse, error) }
func NewControlClient ¶
func NewControlClient(cc *grpc.ClientConn) ControlClient
type ControlServer ¶
type ControlServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) PublicKeyGet(context.Context, *PublicKeyGetRequest) (*PublicKeyGetResponse, error) VolumeCreate(context.Context, *VolumeCreateRequest) (*VolumeCreateResponse, error) VolumeConnect(context.Context, *VolumeConnectRequest) (*VolumeConnectResponse, error) VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error) VolumeStorageAdd(context.Context, *VolumeStorageAddRequest) (*VolumeStorageAddResponse, error) VolumeSync(context.Context, *VolumeSyncRequest) (*VolumeSyncResponse, error) SharingKeyAdd(context.Context, *SharingKeyAddRequest) (*SharingKeyAddResponse, error) PeerAdd(context.Context, *PeerAddRequest) (*PeerAddResponse, error) PeerLocationSet(context.Context, *PeerLocationSetRequest) (*PeerLocationSetResponse, error) PeerStorageAllow(context.Context, *PeerStorageAllowRequest) (*PeerStorageAllowResponse, error) PeerVolumeAllow(context.Context, *PeerVolumeAllowRequest) (*PeerVolumeAllowResponse, error) }
type PeerAddRequest ¶
type PeerAddRequest struct { // Must be exactly 32 bytes long. Pub []byte `protobuf:"bytes,2,opt,name=pub,proto3" json:"pub,omitempty"` }
func (*PeerAddRequest) ProtoMessage ¶
func (*PeerAddRequest) ProtoMessage()
func (*PeerAddRequest) Reset ¶
func (m *PeerAddRequest) Reset()
func (*PeerAddRequest) String ¶
func (m *PeerAddRequest) String() string
type PeerAddResponse ¶
type PeerAddResponse struct { }
func (*PeerAddResponse) ProtoMessage ¶
func (*PeerAddResponse) ProtoMessage()
func (*PeerAddResponse) Reset ¶
func (m *PeerAddResponse) Reset()
func (*PeerAddResponse) String ¶
func (m *PeerAddResponse) String() string
type PeerLocationSetRequest ¶
type PeerLocationSetRequest struct { // Must be exactly 32 bytes long. Pub []byte `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` Netloc string `protobuf:"bytes,2,opt,name=netloc" json:"netloc,omitempty"` }
func (*PeerLocationSetRequest) ProtoMessage ¶
func (*PeerLocationSetRequest) ProtoMessage()
func (*PeerLocationSetRequest) Reset ¶
func (m *PeerLocationSetRequest) Reset()
func (*PeerLocationSetRequest) String ¶
func (m *PeerLocationSetRequest) String() string
type PeerLocationSetResponse ¶
type PeerLocationSetResponse struct { }
func (*PeerLocationSetResponse) ProtoMessage ¶
func (*PeerLocationSetResponse) ProtoMessage()
func (*PeerLocationSetResponse) Reset ¶
func (m *PeerLocationSetResponse) Reset()
func (*PeerLocationSetResponse) String ¶
func (m *PeerLocationSetResponse) String() string
type PeerStorageAllowRequest ¶
type PeerStorageAllowRequest struct { // Must be exactly 32 bytes long. Pub []byte `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` Backend string `protobuf:"bytes,2,opt,name=backend" json:"backend,omitempty"` }
func (*PeerStorageAllowRequest) ProtoMessage ¶
func (*PeerStorageAllowRequest) ProtoMessage()
func (*PeerStorageAllowRequest) Reset ¶
func (m *PeerStorageAllowRequest) Reset()
func (*PeerStorageAllowRequest) String ¶
func (m *PeerStorageAllowRequest) String() string
type PeerStorageAllowResponse ¶
type PeerStorageAllowResponse struct { }
func (*PeerStorageAllowResponse) ProtoMessage ¶
func (*PeerStorageAllowResponse) ProtoMessage()
func (*PeerStorageAllowResponse) Reset ¶
func (m *PeerStorageAllowResponse) Reset()
func (*PeerStorageAllowResponse) String ¶
func (m *PeerStorageAllowResponse) String() string
type PeerVolumeAllowRequest ¶
type PeerVolumeAllowRequest struct { // Must be exactly 32 bytes long. Pub []byte `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` VolumeName string `protobuf:"bytes,2,opt,name=volumeName" json:"volumeName,omitempty"` }
func (*PeerVolumeAllowRequest) ProtoMessage ¶
func (*PeerVolumeAllowRequest) ProtoMessage()
func (*PeerVolumeAllowRequest) Reset ¶
func (m *PeerVolumeAllowRequest) Reset()
func (*PeerVolumeAllowRequest) String ¶
func (m *PeerVolumeAllowRequest) String() string
type PeerVolumeAllowResponse ¶
type PeerVolumeAllowResponse struct { }
func (*PeerVolumeAllowResponse) ProtoMessage ¶
func (*PeerVolumeAllowResponse) ProtoMessage()
func (*PeerVolumeAllowResponse) Reset ¶
func (m *PeerVolumeAllowResponse) Reset()
func (*PeerVolumeAllowResponse) String ¶
func (m *PeerVolumeAllowResponse) String() string
type PingRequest ¶
type PingRequest struct { }
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) String ¶
func (m *PingRequest) String() string
type PingResponse ¶
type PingResponse struct { }
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) Reset ¶
func (m *PingResponse) Reset()
func (*PingResponse) String ¶
func (m *PingResponse) String() string
type PublicKeyGetRequest ¶
type PublicKeyGetRequest struct { }
func (*PublicKeyGetRequest) ProtoMessage ¶
func (*PublicKeyGetRequest) ProtoMessage()
func (*PublicKeyGetRequest) Reset ¶
func (m *PublicKeyGetRequest) Reset()
func (*PublicKeyGetRequest) String ¶
func (m *PublicKeyGetRequest) String() string
type PublicKeyGetResponse ¶
type PublicKeyGetResponse struct { // Exactly 32 bytes long. Pub []byte `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` }
func (*PublicKeyGetResponse) ProtoMessage ¶
func (*PublicKeyGetResponse) ProtoMessage()
func (*PublicKeyGetResponse) Reset ¶
func (m *PublicKeyGetResponse) Reset()
func (*PublicKeyGetResponse) String ¶
func (m *PublicKeyGetResponse) String() string
type SharingKeyAddRequest ¶
type SharingKeyAddRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Must be exactly 32 bytes long. Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` }
func (*SharingKeyAddRequest) ProtoMessage ¶
func (*SharingKeyAddRequest) ProtoMessage()
func (*SharingKeyAddRequest) Reset ¶
func (m *SharingKeyAddRequest) Reset()
func (*SharingKeyAddRequest) String ¶
func (m *SharingKeyAddRequest) String() string
type SharingKeyAddResponse ¶
type SharingKeyAddResponse struct { }
func (*SharingKeyAddResponse) ProtoMessage ¶
func (*SharingKeyAddResponse) ProtoMessage()
func (*SharingKeyAddResponse) Reset ¶
func (m *SharingKeyAddResponse) Reset()
func (*SharingKeyAddResponse) String ¶
func (m *SharingKeyAddResponse) String() string
type VolumeConnectRequest ¶
type VolumeConnectRequest struct { // Must be exactly 32 bytes long. Pub []byte `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` VolumeName string `protobuf:"bytes,2,opt,name=volumeName" json:"volumeName,omitempty"` LocalVolumeName string `protobuf:"bytes,3,opt,name=localVolumeName" json:"localVolumeName,omitempty"` Backend string `protobuf:"bytes,4,opt,name=backend" json:"backend,omitempty"` SharingKeyName string `protobuf:"bytes,5,opt,name=sharingKeyName" json:"sharingKeyName,omitempty"` }
func (*VolumeConnectRequest) ProtoMessage ¶
func (*VolumeConnectRequest) ProtoMessage()
func (*VolumeConnectRequest) Reset ¶
func (m *VolumeConnectRequest) Reset()
func (*VolumeConnectRequest) String ¶
func (m *VolumeConnectRequest) String() string
type VolumeConnectResponse ¶
type VolumeConnectResponse struct { }
func (*VolumeConnectResponse) ProtoMessage ¶
func (*VolumeConnectResponse) ProtoMessage()
func (*VolumeConnectResponse) Reset ¶
func (m *VolumeConnectResponse) Reset()
func (*VolumeConnectResponse) String ¶
func (m *VolumeConnectResponse) String() string
type VolumeCreateRequest ¶
type VolumeCreateRequest struct { VolumeName string `protobuf:"bytes,1,opt,name=volumeName" json:"volumeName,omitempty"` Backend string `protobuf:"bytes,2,opt,name=backend" json:"backend,omitempty"` SharingKeyName string `protobuf:"bytes,3,opt,name=sharingKeyName" json:"sharingKeyName,omitempty"` }
func (*VolumeCreateRequest) ProtoMessage ¶
func (*VolumeCreateRequest) ProtoMessage()
func (*VolumeCreateRequest) Reset ¶
func (m *VolumeCreateRequest) Reset()
func (*VolumeCreateRequest) String ¶
func (m *VolumeCreateRequest) String() string
type VolumeCreateResponse ¶
type VolumeCreateResponse struct { }
func (*VolumeCreateResponse) ProtoMessage ¶
func (*VolumeCreateResponse) ProtoMessage()
func (*VolumeCreateResponse) Reset ¶
func (m *VolumeCreateResponse) Reset()
func (*VolumeCreateResponse) String ¶
func (m *VolumeCreateResponse) String() string
type VolumeMountRequest ¶
type VolumeMountRequest struct { VolumeName string `protobuf:"bytes,1,opt,name=volumeName" json:"volumeName,omitempty"` Mountpoint string `protobuf:"bytes,2,opt,name=mountpoint" json:"mountpoint,omitempty"` }
func (*VolumeMountRequest) ProtoMessage ¶
func (*VolumeMountRequest) ProtoMessage()
func (*VolumeMountRequest) Reset ¶
func (m *VolumeMountRequest) Reset()
func (*VolumeMountRequest) String ¶
func (m *VolumeMountRequest) String() string
type VolumeMountResponse ¶
type VolumeMountResponse struct { }
func (*VolumeMountResponse) ProtoMessage ¶
func (*VolumeMountResponse) ProtoMessage()
func (*VolumeMountResponse) Reset ¶
func (m *VolumeMountResponse) Reset()
func (*VolumeMountResponse) String ¶
func (m *VolumeMountResponse) String() string
type VolumeStorageAddRequest ¶
type VolumeStorageAddRequest struct { VolumeName string `protobuf:"bytes,1,opt,name=volumeName" json:"volumeName,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Backend string `protobuf:"bytes,3,opt,name=backend" json:"backend,omitempty"` SharingKeyName string `protobuf:"bytes,4,opt,name=sharingKeyName" json:"sharingKeyName,omitempty"` }
func (*VolumeStorageAddRequest) ProtoMessage ¶
func (*VolumeStorageAddRequest) ProtoMessage()
func (*VolumeStorageAddRequest) Reset ¶
func (m *VolumeStorageAddRequest) Reset()
func (*VolumeStorageAddRequest) String ¶
func (m *VolumeStorageAddRequest) String() string
type VolumeStorageAddResponse ¶
type VolumeStorageAddResponse struct { }
func (*VolumeStorageAddResponse) ProtoMessage ¶
func (*VolumeStorageAddResponse) ProtoMessage()
func (*VolumeStorageAddResponse) Reset ¶
func (m *VolumeStorageAddResponse) Reset()
func (*VolumeStorageAddResponse) String ¶
func (m *VolumeStorageAddResponse) String() string
type VolumeSyncRequest ¶
type VolumeSyncRequest struct { VolumeName string `protobuf:"bytes,1,opt,name=volumeName" json:"volumeName,omitempty"` // Must be exactly 32 bytes long. Pub []byte `protobuf:"bytes,2,opt,name=pub,proto3" json:"pub,omitempty"` Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` }
func (*VolumeSyncRequest) ProtoMessage ¶
func (*VolumeSyncRequest) ProtoMessage()
func (*VolumeSyncRequest) Reset ¶
func (m *VolumeSyncRequest) Reset()
func (*VolumeSyncRequest) String ¶
func (m *VolumeSyncRequest) String() string
type VolumeSyncResponse ¶
type VolumeSyncResponse struct { }
func (*VolumeSyncResponse) ProtoMessage ¶
func (*VolumeSyncResponse) ProtoMessage()
func (*VolumeSyncResponse) Reset ¶
func (m *VolumeSyncResponse) Reset()
func (*VolumeSyncResponse) String ¶
func (m *VolumeSyncResponse) String() string
Click to show internal directories.
Click to hide internal directories.