Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRemovalFolder = errors.New("can't remove folder")
ErrRemovalFolder will be raised when end user is trying to delete a folder and not a file.
Functions ¶
Types ¶
type Client ¶
type Client interface { // Get allow to GET what's inside a request path Get(ctx context.Context, input *GetInput) // Put will put a file following input Put(ctx context.Context, inp *PutInput) // Delete will delete file on request path Delete(ctx context.Context, requestPath string) // Load file content. (Should be used internally only). LoadFileContent(ctx context.Context, path string) (string, error) }
Client represents a client in order to GET, PUT or DELETE file on a bucket with a html output.
type GetInput ¶
type GetInput struct { RequestPath string IfModifiedSince *time.Time IfMatch string IfNoneMatch string IfUnmodifiedSince *time.Time Range string }
GetInput represents Get input.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.