Documentation
¶
Index ¶
- type IS
- type NoopS3Client
- type S
- func (s *S) CreateFile(w http.ResponseWriter, req *http.Request, pathParams map[string]string)
- func (s *S) DeleteFile(ctx context.Context, req *v1.DeleteFileRequest) (*v1.DeleteFileResponse, error)
- func (s *S) GetFile(ctx context.Context, req *v1.GetFileRequest) (*v1.File, error)
- func (s *S) GetFileContent(w http.ResponseWriter, req *http.Request, pathParams map[string]string)
- func (s *S) ListFiles(ctx context.Context, req *v1.ListFilesRequest) (*v1.ListFilesResponse, error)
- func (s *S) Run(ctx context.Context, port int, authConfig config.AuthConfig) error
- func (s *S) Stop()
- type S3Client
- type WS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IS ¶
type IS struct { v1.UnimplementedFilesInternalServiceServer // contains filtered or unexported fields }
IS is an internal server.
func NewInternal ¶
NewInternal creates an internal server.
func (*IS) GetFilePath ¶
func (s *IS) GetFilePath( ctx context.Context, req *v1.GetFilePathRequest, ) (*v1.GetFilePathResponse, error)
GetFilePath gets a file path.
type S ¶
type S struct { v1.UnimplementedFilesServiceServer // contains filtered or unexported fields }
S is a server.
func New ¶
func New(store *store.S, s3Client S3Client, sender sender.UsageSetter, pathPrefix string, log logr.Logger) *S
New creates a server.
func (*S) CreateFile ¶
CreateFile creates a file.
func (*S) DeleteFile ¶
func (s *S) DeleteFile( ctx context.Context, req *v1.DeleteFileRequest, ) (*v1.DeleteFileResponse, error)
DeleteFile deletes a file.
func (*S) GetFileContent ¶
func (s *S) GetFileContent( w http.ResponseWriter, req *http.Request, pathParams map[string]string, )
GetFileContent gets a file content.
func (*S) ListFiles ¶
func (s *S) ListFiles( ctx context.Context, req *v1.ListFilesRequest, ) (*v1.ListFilesResponse, error)
ListFiles lists files.
type WS ¶
type WS struct { v1.UnimplementedFilesWorkerServiceServer // contains filtered or unexported fields }
WS is a server for worker services.
func NewWorkerServiceServer ¶
NewWorkerServiceServer creates a new worker service server.
func (*WS) GetFilePath ¶
func (s *WS) GetFilePath( ctx context.Context, req *v1.GetFilePathRequest, ) (*v1.GetFilePathResponse, error)
GetFilePath gets a file path.
Click to show internal directories.
Click to hide internal directories.