metaserver

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: GPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MetaServer_RegisterFileServer_FullMethodName = "/metaserver.MetaServer/RegisterFileServer"
	MetaServer_Navigate_FullMethodName           = "/metaserver.MetaServer/Navigate"
	MetaServer_Heartbeat_FullMethodName          = "/metaserver.MetaServer/Heartbeat"
	MetaServer_GetRoots_FullMethodName           = "/metaserver.MetaServer/GetRoots"
	MetaServer_RootShare_FullMethodName          = "/metaserver.MetaServer/RootShare"
	MetaServer_RootUnshare_FullMethodName        = "/metaserver.MetaServer/RootUnshare"
)

Variables

View Source
var File_api_metaserver_metaserver_proto protoreflect.FileDescriptor
View Source
var MetaServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "metaserver.MetaServer",
	HandlerType: (*MetaServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterFileServer",
			Handler:    _MetaServer_RegisterFileServer_Handler,
		},
		{
			MethodName: "Navigate",
			Handler:    _MetaServer_Navigate_Handler,
		},
		{
			MethodName: "Heartbeat",
			Handler:    _MetaServer_Heartbeat_Handler,
		},
		{
			MethodName: "GetRoots",
			Handler:    _MetaServer_GetRoots_Handler,
		},
		{
			MethodName: "RootShare",
			Handler:    _MetaServer_RootShare_Handler,
		},
		{
			MethodName: "RootUnshare",
			Handler:    _MetaServer_RootUnshare_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/metaserver/metaserver.proto",
}

MetaServer_ServiceDesc is the grpc.ServiceDesc for MetaServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMetaServerServer

func RegisterMetaServerServer(s grpc.ServiceRegistrar, srv MetaServerServer)

Types

type GetRootsRequest

type GetRootsRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRootsRequest) Descriptor deprecated

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

Deprecated: Use GetRootsRequest.ProtoReflect.Descriptor instead.

func (*GetRootsRequest) GetUsername

func (x *GetRootsRequest) GetUsername() string

func (*GetRootsRequest) ProtoMessage

func (*GetRootsRequest) ProtoMessage()

func (*GetRootsRequest) ProtoReflect

func (x *GetRootsRequest) ProtoReflect() protoreflect.Message

func (*GetRootsRequest) Reset

func (x *GetRootsRequest) Reset()

func (*GetRootsRequest) String

func (x *GetRootsRequest) String() string

type GetRootsResponse

type GetRootsResponse struct {
	Success bool          `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string        `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Roots   []*SharedRoot `protobuf:"bytes,3,rep,name=roots,proto3" json:"roots,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRootsResponse) Descriptor deprecated

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

Deprecated: Use GetRootsResponse.ProtoReflect.Descriptor instead.

func (*GetRootsResponse) GetError

func (x *GetRootsResponse) GetError() string

func (*GetRootsResponse) GetRoots

func (x *GetRootsResponse) GetRoots() []*SharedRoot

func (*GetRootsResponse) GetSuccess

func (x *GetRootsResponse) GetSuccess() bool

func (*GetRootsResponse) ProtoMessage

func (*GetRootsResponse) ProtoMessage()

func (*GetRootsResponse) ProtoReflect

func (x *GetRootsResponse) ProtoReflect() protoreflect.Message

func (*GetRootsResponse) Reset

func (x *GetRootsResponse) Reset()

func (*GetRootsResponse) String

func (x *GetRootsResponse) String() string

type HeartbeatRequest

type HeartbeatRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartbeatRequest) Descriptor deprecated

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

Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.

func (*HeartbeatRequest) GetAddress

func (x *HeartbeatRequest) GetAddress() string

func (*HeartbeatRequest) ProtoMessage

func (*HeartbeatRequest) ProtoMessage()

func (*HeartbeatRequest) ProtoReflect

func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message

func (*HeartbeatRequest) Reset

func (x *HeartbeatRequest) Reset()

func (*HeartbeatRequest) String

func (x *HeartbeatRequest) String() string

type HeartbeatResponse

type HeartbeatResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartbeatResponse) Descriptor deprecated

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

Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.

func (*HeartbeatResponse) GetError

func (x *HeartbeatResponse) GetError() string

func (*HeartbeatResponse) GetSuccess

func (x *HeartbeatResponse) GetSuccess() bool

func (*HeartbeatResponse) ProtoMessage

func (*HeartbeatResponse) ProtoMessage()

func (*HeartbeatResponse) ProtoReflect

func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message

func (*HeartbeatResponse) Reset

func (x *HeartbeatResponse) Reset()

func (*HeartbeatResponse) String

func (x *HeartbeatResponse) String() string

type MetaServerClient

type MetaServerClient interface {
	RegisterFileServer(ctx context.Context, in *RegisterFileServerRequest, opts ...grpc.CallOption) (*RegisterFileServerResponse, error)
	Navigate(ctx context.Context, in *NavigateRequest, opts ...grpc.CallOption) (*NavigateResponse, error)
	Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatResponse, error)
	GetRoots(ctx context.Context, in *GetRootsRequest, opts ...grpc.CallOption) (*GetRootsResponse, error)
	RootShare(ctx context.Context, in *RootShareRequest, opts ...grpc.CallOption) (*RootShareResponse, error)
	RootUnshare(ctx context.Context, in *RootUnshareRequest, opts ...grpc.CallOption) (*RootUnshareResponse, error)
}

MetaServerClient is the client API for MetaServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

MetaServer service

func NewMetaServerClient

func NewMetaServerClient(cc grpc.ClientConnInterface) MetaServerClient

type MetaServerServer

type MetaServerServer interface {
	RegisterFileServer(context.Context, *RegisterFileServerRequest) (*RegisterFileServerResponse, error)
	Navigate(context.Context, *NavigateRequest) (*NavigateResponse, error)
	Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
	GetRoots(context.Context, *GetRootsRequest) (*GetRootsResponse, error)
	RootShare(context.Context, *RootShareRequest) (*RootShareResponse, error)
	RootUnshare(context.Context, *RootUnshareRequest) (*RootUnshareResponse, error)
	// contains filtered or unexported methods
}

MetaServerServer is the server API for MetaServer service. All implementations must embed UnimplementedMetaServerServer for forward compatibility.

MetaServer service

type NavigateRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	RootUser string `protobuf:"bytes,2,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
	// contains filtered or unexported fields
}
func (*NavigateRequest) Descriptor() ([]byte, []int)

Deprecated: Use NavigateRequest.ProtoReflect.Descriptor instead.

func (x *NavigateRequest) GetRootUser() string
func (x *NavigateRequest) GetUsername() string
func (*NavigateRequest) ProtoMessage()
func (x *NavigateRequest) ProtoReflect() protoreflect.Message
func (x *NavigateRequest) Reset()
func (x *NavigateRequest) String() string
type NavigateResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // address of the file server to connect to
	// contains filtered or unexported fields
}
func (*NavigateResponse) Descriptor() ([]byte, []int)

Deprecated: Use NavigateResponse.ProtoReflect.Descriptor instead.

func (x *NavigateResponse) GetAddress() string
func (x *NavigateResponse) GetError() string
func (x *NavigateResponse) GetSuccess() bool
func (*NavigateResponse) ProtoMessage()
func (x *NavigateResponse) ProtoReflect() protoreflect.Message
func (x *NavigateResponse) Reset()
func (x *NavigateResponse) String() string

type RegisterFileServerRequest

type RegisterFileServerRequest struct {
	Address string       `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Users   []string     `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	Shared  []*SharedDir `protobuf:"bytes,3,rep,name=shared,proto3" json:"shared,omitempty"` // ACL information for each user
	// contains filtered or unexported fields
}

func (*RegisterFileServerRequest) Descriptor deprecated

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

Deprecated: Use RegisterFileServerRequest.ProtoReflect.Descriptor instead.

func (*RegisterFileServerRequest) GetAddress

func (x *RegisterFileServerRequest) GetAddress() string

func (*RegisterFileServerRequest) GetShared

func (x *RegisterFileServerRequest) GetShared() []*SharedDir

func (*RegisterFileServerRequest) GetUsers

func (x *RegisterFileServerRequest) GetUsers() []string

func (*RegisterFileServerRequest) ProtoMessage

func (*RegisterFileServerRequest) ProtoMessage()

func (*RegisterFileServerRequest) ProtoReflect

func (*RegisterFileServerRequest) Reset

func (x *RegisterFileServerRequest) Reset()

func (*RegisterFileServerRequest) String

func (x *RegisterFileServerRequest) String() string

type RegisterFileServerResponse

type RegisterFileServerResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterFileServerResponse) Descriptor deprecated

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

Deprecated: Use RegisterFileServerResponse.ProtoReflect.Descriptor instead.

func (*RegisterFileServerResponse) GetError

func (x *RegisterFileServerResponse) GetError() string

func (*RegisterFileServerResponse) GetSuccess

func (x *RegisterFileServerResponse) GetSuccess() bool

func (*RegisterFileServerResponse) ProtoMessage

func (*RegisterFileServerResponse) ProtoMessage()

func (*RegisterFileServerResponse) ProtoReflect

func (*RegisterFileServerResponse) Reset

func (x *RegisterFileServerResponse) Reset()

func (*RegisterFileServerResponse) String

func (x *RegisterFileServerResponse) String() string

type RootShareRequest

type RootShareRequest struct {
	RootPath  string `protobuf:"bytes,1,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"`
	Owner     string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	ShareWith string `protobuf:"bytes,3,opt,name=share_with,json=shareWith,proto3" json:"share_with,omitempty"`
	Name      string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RootShareRequest) Descriptor deprecated

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

Deprecated: Use RootShareRequest.ProtoReflect.Descriptor instead.

func (*RootShareRequest) GetName

func (x *RootShareRequest) GetName() string

func (*RootShareRequest) GetOwner

func (x *RootShareRequest) GetOwner() string

func (*RootShareRequest) GetRootPath

func (x *RootShareRequest) GetRootPath() string

func (*RootShareRequest) GetShareWith

func (x *RootShareRequest) GetShareWith() string

func (*RootShareRequest) ProtoMessage

func (*RootShareRequest) ProtoMessage()

func (*RootShareRequest) ProtoReflect

func (x *RootShareRequest) ProtoReflect() protoreflect.Message

func (*RootShareRequest) Reset

func (x *RootShareRequest) Reset()

func (*RootShareRequest) String

func (x *RootShareRequest) String() string

type RootShareResponse

type RootShareResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RootShareResponse) Descriptor deprecated

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

Deprecated: Use RootShareResponse.ProtoReflect.Descriptor instead.

func (*RootShareResponse) GetError

func (x *RootShareResponse) GetError() string

func (*RootShareResponse) GetSuccess

func (x *RootShareResponse) GetSuccess() bool

func (*RootShareResponse) ProtoMessage

func (*RootShareResponse) ProtoMessage()

func (*RootShareResponse) ProtoReflect

func (x *RootShareResponse) ProtoReflect() protoreflect.Message

func (*RootShareResponse) Reset

func (x *RootShareResponse) Reset()

func (*RootShareResponse) String

func (x *RootShareResponse) String() string

type RootUnshareRequest

type RootUnshareRequest struct {
	RootPath    string `protobuf:"bytes,1,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"`
	Owner       string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	UnshareWith string `protobuf:"bytes,3,opt,name=unshare_with,json=unshareWith,proto3" json:"unshare_with,omitempty"`
	Name        string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RootUnshareRequest) Descriptor deprecated

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

Deprecated: Use RootUnshareRequest.ProtoReflect.Descriptor instead.

func (*RootUnshareRequest) GetName

func (x *RootUnshareRequest) GetName() string

func (*RootUnshareRequest) GetOwner

func (x *RootUnshareRequest) GetOwner() string

func (*RootUnshareRequest) GetRootPath

func (x *RootUnshareRequest) GetRootPath() string

func (*RootUnshareRequest) GetUnshareWith

func (x *RootUnshareRequest) GetUnshareWith() string

func (*RootUnshareRequest) ProtoMessage

func (*RootUnshareRequest) ProtoMessage()

func (*RootUnshareRequest) ProtoReflect

func (x *RootUnshareRequest) ProtoReflect() protoreflect.Message

func (*RootUnshareRequest) Reset

func (x *RootUnshareRequest) Reset()

func (*RootUnshareRequest) String

func (x *RootUnshareRequest) String() string

type RootUnshareResponse

type RootUnshareResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RootUnshareResponse) Descriptor deprecated

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

Deprecated: Use RootUnshareResponse.ProtoReflect.Descriptor instead.

func (*RootUnshareResponse) GetError

func (x *RootUnshareResponse) GetError() string

func (*RootUnshareResponse) GetSuccess

func (x *RootUnshareResponse) GetSuccess() bool

func (*RootUnshareResponse) ProtoMessage

func (*RootUnshareResponse) ProtoMessage()

func (*RootUnshareResponse) ProtoReflect

func (x *RootUnshareResponse) ProtoReflect() protoreflect.Message

func (*RootUnshareResponse) Reset

func (x *RootUnshareResponse) Reset()

func (*RootUnshareResponse) String

func (x *RootUnshareResponse) String() string

type SharedDir

type SharedDir struct {
	Path  string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`   // Full path including username (e.g., "/umang", "/umang/proj")
	Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // Users with explicit access to this directory
	Name  string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Owner string   `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*SharedDir) Descriptor deprecated

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

Deprecated: Use SharedDir.ProtoReflect.Descriptor instead.

func (*SharedDir) GetName

func (x *SharedDir) GetName() string

func (*SharedDir) GetOwner

func (x *SharedDir) GetOwner() string

func (*SharedDir) GetPath

func (x *SharedDir) GetPath() string

func (*SharedDir) GetUsers

func (x *SharedDir) GetUsers() []string

func (*SharedDir) ProtoMessage

func (*SharedDir) ProtoMessage()

func (*SharedDir) ProtoReflect

func (x *SharedDir) ProtoReflect() protoreflect.Message

func (*SharedDir) Reset

func (x *SharedDir) Reset()

func (*SharedDir) String

func (x *SharedDir) String() string

type SharedRoot

type SharedRoot struct {
	Path        string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Owner       string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*SharedRoot) Descriptor deprecated

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

Deprecated: Use SharedRoot.ProtoReflect.Descriptor instead.

func (*SharedRoot) GetDisplayName

func (x *SharedRoot) GetDisplayName() string

func (*SharedRoot) GetOwner

func (x *SharedRoot) GetOwner() string

func (*SharedRoot) GetPath

func (x *SharedRoot) GetPath() string

func (*SharedRoot) ProtoMessage

func (*SharedRoot) ProtoMessage()

func (*SharedRoot) ProtoReflect

func (x *SharedRoot) ProtoReflect() protoreflect.Message

func (*SharedRoot) Reset

func (x *SharedRoot) Reset()

func (*SharedRoot) String

func (x *SharedRoot) String() string

type UnimplementedMetaServerServer

type UnimplementedMetaServerServer struct{}

UnimplementedMetaServerServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMetaServerServer) GetRoots

func (UnimplementedMetaServerServer) Heartbeat

func (UnimplementedMetaServerServer) Navigate

func (UnimplementedMetaServerServer) RootShare

func (UnimplementedMetaServerServer) RootUnshare

type UnsafeMetaServerServer

type UnsafeMetaServerServer interface {
	// contains filtered or unexported methods
}

UnsafeMetaServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetaServerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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