Documentation ¶
Overview ¶
Package constants provides constants. The convention of naming is to use MixedCaps or mixedCaps rather than underscores to write multiword names. https://golang.org/doc/effective_go#mixed-caps
Index ¶
Constants ¶
View Source
const ( // FileOperationInsert method name of add new file FileOperationInsert = "insert" // FileOperationDelete method name of delete file FileOperationDelete = "delete" // FileOperationUpdate method name of update file FileOperationUpdate = "update" // FileOperationRename method name of rename file FileOperationRename = "rename" // FileOperationCopy method name of copy file FileOperationCopy = "copy" // FileOperationMove method name of move file FileOperationMove = "move" // FileOperationCreateDir method name of create directory FileOperationCreateDir = "createdir" )
Variables ¶
View Source
var ( // ErrInvalidParameter parameter is not specified or invalid ErrInvalidParameter = errors.New("invalid parameter") // ErrUnableHash failed to hash with unknown exception ErrUnableHash = errors.New("unable to hash") // ErrUnableWriteFile failed to write bytes to file ErrUnableWriteFile = errors.New("unable to write file") // ErrNotImplemented feature/method is not implemented yet ErrNotImplemented = errors.New("Not Implemented") // ErrNotLockedWritMarker failed to lock WriteMarker ErrNotLockedWritMarker = errors.New("failed to lock WriteMarker") // ErrNotUnlockedWritMarker failed to unlock WriteMarker ErrNotUnlockedWritMarker = errors.New("failed to unlock WriteMarker") // ErrInvalidHashnode invalid hashnode ErrInvalidHashnode = errors.New("invalid hashnode") // ErrBadRequest bad request ErrBadRequest = errors.New("bad request") // ErrNotFound ref not found ErrNotFound = errors.New("ref not found") // ErrFileOptionNotPermitted requested operation is not allowed on this allocation (file_options) ErrFileOptionNotPermitted = errors.New("this options for this file is not permitted for this allocation") )
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey type for key used to store values into context
const ( // ContextKeyAllocation represents key for context value for allocation ContextKeyAllocation ContextKey = "allocation" // ContextKeyAllocationObject represents key for context value for allocation object ContextKeyAllocationObject ContextKey = "allocation_object" // ContextKeyClient represents key for context value for client ContextKeyClient ContextKey = "client" // ContextKeyClientKey represents key for context value for client key ContextKeyClientKey ContextKey = "client_key" // ContextKeyClientID represents key for context value for allocation id ContextKeyAllocationID ContextKey = "allocation_id" // ContextKeyClientSignatureHeaderKey represents key for context value passed with common.ClientSignatureHeader request header. ContextKeyClientSignatureHeaderKey ContextKey = "signature" // ContextKeyClientSignatureHeaderV2Key represents key for context value passed with common.ClientSignatureHeaderV2 request header. ContextKeyClientSignatureHeaderV2Key ContextKey = "signature_v2" )
Click to show internal directories.
Click to hide internal directories.