github.com/creativeprojects/go-selfupdate@v1.2.0/errors.go (about)

     1  package selfupdate
     2  
     3  import "errors"
     4  
     5  // Possible errors returned
     6  var (
     7  	ErrNotSupported                = errors.New("operation not supported")
     8  	ErrInvalidSlug                 = errors.New("invalid slug format, expected 'owner/name'")
     9  	ErrIncorrectParameterOwner     = errors.New("incorrect parameter \"owner\"")
    10  	ErrIncorrectParameterRepo      = errors.New("incorrect parameter \"repo\"")
    11  	ErrInvalidID                   = errors.New("invalid repository ID, expected 'owner/name' but found number")
    12  	ErrInvalidRelease              = errors.New("invalid release (nil argument)")
    13  	ErrAssetNotFound               = errors.New("asset not found")
    14  	ErrValidationAssetNotFound     = errors.New("validation file not found")
    15  	ErrValidatorNotFound           = errors.New("file did not match a configured validator")
    16  	ErrIncorrectChecksumFile       = errors.New("incorrect checksum file format")
    17  	ErrChecksumValidationFailed    = errors.New("sha256 validation failed")
    18  	ErrHashNotFound                = errors.New("hash not found in checksum file")
    19  	ErrECDSAValidationFailed       = errors.New("ECDSA signature verification failed")
    20  	ErrInvalidECDSASignature       = errors.New("invalid ECDSA signature")
    21  	ErrInvalidPGPSignature         = errors.New("invalid PGP signature")
    22  	ErrPGPKeyRingNotSet            = errors.New("PGP key ring not set")
    23  	ErrCannotDecompressFile        = errors.New("failed to decompress")
    24  	ErrExecutableNotFoundInArchive = errors.New("executable not found")
    25  )