constants

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 1 Imported by: 11

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      = "delete"
	FileOperationUpdate      = "update"
	FileOperationRename      = "rename"
	FileOperationCopy        = "copy"
	FileOperationUpdateAttrs = "update_attrs"

	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")
)

Functions

This section is empty.

Types

type ContextKey

type ContextKey string

ContextKey - type for key used to store values into context

const (
	// ContextKeyAllocation
	ContextKeyAllocation ContextKey = "allocation"
	// ContextKeyAllocationObject
	ContextKeyAllocationObject ContextKey = "allocation_object"
	// ContextKeyClient
	ContextKeyClient ContextKey = "client"
	// ContextKeyClientKey
	ContextKeyClientKey ContextKey = "client_key"

	// ContextKeyClientSignatureHeaderKey represents key for context value passed with common.ClientSignatureHeader request header.
	ContextKeyClientSignatureHeaderKey ContextKey = "signature"
)

Jump to

Keyboard shortcuts

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