constants

package
v1.18.0-RC8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 1 Imported by: 9

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

type SignScheme

type SignScheme string
const (
	ED25519   SignScheme = "ed25519"
	BLS0CHAIN SignScheme = "bls0chain"
)

func (SignScheme) String

func (s SignScheme) String() string

Jump to

Keyboard shortcuts

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