Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, req *pb.CreateRequest) (*pb.CreateResponse, error)
- func (s *Service) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)
- func (s *Service) GetLinks(ctx context.Context, req *pb.GetLinksRequest) (*pb.GetLinksResponse, error)
- func (s *Service) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
- func (s *Service) ListIpfsPath(ctx context.Context, req *pb.ListIpfsPathRequest) (*pb.ListIpfsPathResponse, error)
- func (s *Service) ListPath(ctx context.Context, req *pb.ListPathRequest) (*pb.ListPathResponse, error)
- func (s *Service) MovePath(ctx context.Context, req *pb.MovePathRequest) (res *pb.MovePathResponse, err error)
- func (s *Service) PullIpfsPath(req *pb.PullIpfsPathRequest, server pb.APIService_PullIpfsPathServer) error
- func (s *Service) PullPath(req *pb.PullPathRequest, server pb.APIService_PullPathServer) error
- func (s *Service) PullPathAccessRoles(ctx context.Context, req *pb.PullPathAccessRolesRequest) (*pb.PullPathAccessRolesResponse, error)
- func (s *Service) PullPathInfo(ctx context.Context, req *pb.PullPathInfoRequest) (*pb.PullPathInfoResponse, error)
- func (s *Service) PushPathAccessRoles(ctx context.Context, req *pb.PushPathAccessRolesRequest) (res *pb.PushPathAccessRolesResponse, err error)
- func (s *Service) PushPathInfo(ctx context.Context, req *pb.PushPathInfoRequest) (res *pb.PushPathInfoResponse, err error)
- func (s *Service) PushPaths(server pb.APIService_PushPathsServer) error
- func (s *Service) Remove(ctx context.Context, req *pb.RemoveRequest) (*pb.RemoveResponse, error)
- func (s *Service) RemovePath(ctx context.Context, req *pb.RemovePathRequest) (res *pb.RemovePathResponse, err error)
- func (s *Service) SetPath(ctx context.Context, req *pb.SetPathRequest) (*pb.SetPathResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a gRPC service for buckets.
func NewService ¶
func NewService(lib *buckets.Buckets) *Service
NewService returns a new buckets gRPC service.
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, req *pb.CreateRequest) (*pb.CreateResponse, error)
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)
func (*Service) GetLinks ¶
func (s *Service) GetLinks(ctx context.Context, req *pb.GetLinksRequest) (*pb.GetLinksResponse, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
func (*Service) ListIpfsPath ¶
func (s *Service) ListIpfsPath(ctx context.Context, req *pb.ListIpfsPathRequest) (*pb.ListIpfsPathResponse, error)
func (*Service) ListPath ¶
func (s *Service) ListPath(ctx context.Context, req *pb.ListPathRequest) (*pb.ListPathResponse, error)
func (*Service) MovePath ¶
func (s *Service) MovePath(ctx context.Context, req *pb.MovePathRequest) (res *pb.MovePathResponse, err error)
MovePath moves source path to destination path and cleans up afterward
func (*Service) PullIpfsPath ¶
func (s *Service) PullIpfsPath(req *pb.PullIpfsPathRequest, server pb.APIService_PullIpfsPathServer) error
func (*Service) PullPath ¶
func (s *Service) PullPath(req *pb.PullPathRequest, server pb.APIService_PullPathServer) error
func (*Service) PullPathAccessRoles ¶
func (s *Service) PullPathAccessRoles( ctx context.Context, req *pb.PullPathAccessRolesRequest, ) (*pb.PullPathAccessRolesResponse, error)
func (*Service) PullPathInfo ¶
func (s *Service) PullPathInfo( ctx context.Context, req *pb.PullPathInfoRequest, ) (*pb.PullPathInfoResponse, error)
func (*Service) PushPathAccessRoles ¶
func (s *Service) PushPathAccessRoles( ctx context.Context, req *pb.PushPathAccessRolesRequest, ) (res *pb.PushPathAccessRolesResponse, err error)
func (*Service) PushPathInfo ¶
func (s *Service) PushPathInfo( ctx context.Context, req *pb.PushPathInfoRequest, ) (res *pb.PushPathInfoResponse, err error)
func (*Service) Remove ¶
func (s *Service) Remove(ctx context.Context, req *pb.RemoveRequest) (*pb.RemoveResponse, error)
func (*Service) RemovePath ¶
func (s *Service) RemovePath(ctx context.Context, req *pb.RemovePathRequest) (res *pb.RemovePathResponse, err error)
func (*Service) SetPath ¶
func (s *Service) SetPath(ctx context.Context, req *pb.SetPathRequest) (*pb.SetPathResponse, error)
Click to show internal directories.
Click to hide internal directories.