Documentation ¶
Index ¶
- func NewServerWithBackend(backend backend.Storage) *grpc.Server
- type Server
- func (g *Server) ComposeObject(ctx context.Context, req *pb.ComposeObjectRequest) (*pb.Empty, error)
- func (g *Server) DeleteBucket(ctx context.Context, req *pb.DeleteBucketRequest) (*pb.Empty, error)
- func (g *Server) DeleteObject(ctx context.Context, req *pb.DeleteObjectRequest) (*pb.Empty, error)
- func (g *Server) GetBucket(ctx context.Context, req *pb.GetBucketRequest) (*pb.Bucket, error)
- func (g *Server) GetObject(ctx context.Context, req *pb.GetObjectRequest) (*pb.GetObjectMediaResponse, error)
- func (g *Server) InsertBucket(ctx context.Context, req *pb.InsertBucketRequest) (*pb.Empty, error)
- func (g *Server) InsertObject(ctx context.Context, req *pb.InsertObjectRequest) (*pb.Empty, error)
- func (g *Server) ListBuckets(context.Context, *pb.ListBucketsRequest) (*pb.Buckets, error)
- func (g *Server) ListObjects(ctx context.Context, req *pb.ListObjectsRequest) (*pb.Objects, error)
- func (g *Server) PatchObject(ctx context.Context, req *pb.PatchObjectRequest) (*pb.Empty, error)
- func (g *Server) UpdateObject(ctx context.Context, req *pb.UpdateObjectRequest) (*pb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { pb.UnimplementedStorageServerServer // To satisfy the interface without having to implement every method // contains filtered or unexported fields }
func InitServer ¶
func (*Server) ComposeObject ¶
func (g *Server) ComposeObject(ctx context.Context, req *pb.ComposeObjectRequest) (*pb.Empty, error)
ComposeObject(bucketName string, objectNames []string, destinationName string, metadata map[string]string, contentType string)
func (*Server) DeleteBucket ¶
func (*Server) DeleteObject ¶
func (*Server) GetObject ¶
func (g *Server) GetObject(ctx context.Context, req *pb.GetObjectRequest) (*pb.GetObjectMediaResponse, error)
func (*Server) InsertBucket ¶
func (*Server) InsertObject ¶
func (*Server) ListBuckets ¶
func (*Server) ListObjects ¶
func (*Server) PatchObject ¶
func (*Server) UpdateObject ¶
Click to show internal directories.
Click to hide internal directories.