...

Source file src/github.com/spf13/afero/gcsfs/errors.go

Documentation: github.com/spf13/afero/gcsfs

     1  // Copyright © 2021 Vasily Ovchinnikov <vasily@remerge.io>.
     2  //
     3  // The code in this file is derived from afero fork github.com/Zatte/afero by Mikael Rapp
     4  // licensed under Apache License 2.0.
     5  //
     6  // Licensed under the Apache License, Version 2.0 (the "License");
     7  // you may not use this file except in compliance with the License.
     8  // You may obtain a copy of the License at
     9  // http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  
    17  package gcsfs
    18  
    19  import (
    20  	"errors"
    21  	"syscall"
    22  )
    23  
    24  var (
    25  	ErrNoBucketInName     = errors.New("no bucket name found in the name")
    26  	ErrFileClosed         = errors.New("file is closed")
    27  	ErrOutOfRange         = errors.New("out of range")
    28  	ErrObjectDoesNotExist = errors.New("storage: object doesn't exist")
    29  	ErrEmptyObjectName    = errors.New("storage: object name is empty")
    30  	ErrFileNotFound       = syscall.ENOENT
    31  )
    32  

View as plain text