fileerror

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MissingSharedKeyCredential - Error is returned when SAS URL is being created without SharedKeyCredential.
	MissingSharedKeyCredential = errors.New("SAS can only be signed with a SharedKeyCredential")
)

Functions

func HasCode

func HasCode(err error, codes ...Code) bool

HasCode returns true if the provided error is an *azcore.ResponseError with its ErrorCode field equal to one of the specified Codes.

Types

type Code

Code - Error codes returned by the service

const (
	AccountAlreadyExists                  Code = "AccountAlreadyExists"
	AccountBeingCreated                   Code = "AccountBeingCreated"
	AccountIsDisabled                     Code = "AccountIsDisabled"
	AuthenticationFailed                  Code = "AuthenticationFailed"
	AuthorizationFailure                  Code = "AuthorizationFailure"
	AuthorizationPermissionMismatch       Code = "AuthorizationPermissionMismatch"
	AuthorizationProtocolMismatch         Code = "AuthorizationProtocolMismatch"
	AuthorizationResourceTypeMismatch     Code = "AuthorizationResourceTypeMismatch"
	AuthorizationServiceMismatch          Code = "AuthorizationServiceMismatch"
	AuthorizationSourceIPMismatch         Code = "AuthorizationSourceIPMismatch"
	CannotDeleteFileOrDirectory           Code = "CannotDeleteFileOrDirectory"
	ClientCacheFlushDelay                 Code = "ClientCacheFlushDelay"
	ConditionHeadersNotSupported          Code = "ConditionHeadersNotSupported"
	ConditionNotMet                       Code = "ConditionNotMet"
	DeletePending                         Code = "DeletePending"
	DirectoryNotEmpty                     Code = "DirectoryNotEmpty"
	EmptyMetadataKey                      Code = "EmptyMetadataKey"
	FeatureVersionMismatch                Code = "FeatureVersionMismatch"
	FileLockConflict                      Code = "FileLockConflict"
	InsufficientAccountPermissions        Code = "InsufficientAccountPermissions"
	InternalError                         Code = "InternalError"
	InvalidAuthenticationInfo             Code = "InvalidAuthenticationInfo"
	InvalidFileOrDirectoryPathName        Code = "InvalidFileOrDirectoryPathName"
	InvalidHTTPVerb                       Code = "InvalidHttpVerb"
	InvalidHeaderValue                    Code = "InvalidHeaderValue"
	InvalidInput                          Code = "InvalidInput"
	InvalidMD5                            Code = "InvalidMd5"
	InvalidMetadata                       Code = "InvalidMetadata"
	InvalidQueryParameterValue            Code = "InvalidQueryParameterValue"
	InvalidRange                          Code = "InvalidRange"
	InvalidResourceName                   Code = "InvalidResourceName"
	InvalidURI                            Code = "InvalidUri"
	InvalidXMLDocument                    Code = "InvalidXmlDocument"
	InvalidXMLNodeValue                   Code = "InvalidXmlNodeValue"
	MD5Mismatch                           Code = "Md5Mismatch"
	MetadataTooLarge                      Code = "MetadataTooLarge"
	MissingContentLengthHeader            Code = "MissingContentLengthHeader"
	MissingRequiredHeader                 Code = "MissingRequiredHeader"
	MissingRequiredQueryParameter         Code = "MissingRequiredQueryParameter"
	MissingRequiredXMLNode                Code = "MissingRequiredXmlNode"
	MultipleConditionHeadersNotSupported  Code = "MultipleConditionHeadersNotSupported"
	OperationTimedOut                     Code = "OperationTimedOut"
	OutOfRangeInput                       Code = "OutOfRangeInput"
	OutOfRangeQueryParameterValue         Code = "OutOfRangeQueryParameterValue"
	ParentNotFound                        Code = "ParentNotFound"
	ReadOnlyAttribute                     Code = "ReadOnlyAttribute"
	RequestBodyTooLarge                   Code = "RequestBodyTooLarge"
	RequestURLFailedToParse               Code = "RequestUrlFailedToParse"
	ResourceAlreadyExists                 Code = "ResourceAlreadyExists"
	ResourceNotFound                      Code = "ResourceNotFound"
	ResourceTypeMismatch                  Code = "ResourceTypeMismatch"
	ServerBusy                            Code = "ServerBusy"
	ShareAlreadyExists                    Code = "ShareAlreadyExists"
	ShareBeingDeleted                     Code = "ShareBeingDeleted"
	ShareDisabled                         Code = "ShareDisabled"
	ShareHasSnapshots                     Code = "ShareHasSnapshots"
	ShareNotFound                         Code = "ShareNotFound"
	ShareSnapshotCountExceeded            Code = "ShareSnapshotCountExceeded"
	ShareSnapshotInProgress               Code = "ShareSnapshotInProgress"
	ShareSnapshotOperationNotSupported    Code = "ShareSnapshotOperationNotSupported"
	SharingViolation                      Code = "SharingViolation"
	UnsupportedHTTPVerb                   Code = "UnsupportedHttpVerb"
	UnsupportedHeader                     Code = "UnsupportedHeader"
	UnsupportedQueryParameter             Code = "UnsupportedQueryParameter"
	UnsupportedXMLNode                    Code = "UnsupportedXmlNode"
	FileOAuthManagementAPIRestrictedToSRP Code = "FileOAuthManagementApiRestrictedToSrp"
)

Jump to

Keyboard shortcuts

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