blobstore

package
v0.0.0-...-1a43b3b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainCommand

func MainCommand() *cobra.Command

Types

type Config

type Config struct {
	BaseDir      string
	WriteDio     bool
	BlobChecksum bool
}

type Server

type Server struct {
	goproto.UnimplementedBlobServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *Config) *Server

func (*Server) CheckBlob

func (s *Server) CheckBlob(ctx context.Context, req *goproto.BlobKey) (*goproto.CheckBlobResp, error)

func (*Server) CreateBlob

func (s *Server) CreateBlob(_ context.Context, req *goproto.CreateBlobReq) (*emptypb.Empty, error)

func (*Server) DeleteBlob

func (s *Server) DeleteBlob(_ context.Context, req *goproto.BlobKey) (*emptypb.Empty, error)

func (*Server) ListBlob

func (*Server) Read

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*Server) StatBlob

func (s *Server) StatBlob(_ context.Context, req *goproto.BlobKey) (*goproto.BlobInfo, error)

func (*Server) Write

func (s *Server) Write(server bytestream.ByteStream_WriteServer) (err error)

Jump to

Keyboard shortcuts

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