Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileNotInManifestError ¶
type FileNotInManifestError struct {
Name string
}
FileNotInManifestError is returned by Validate methods when a file is documented in the manifest but is not in the package
func (FileNotInManifestError) Error ¶
func (e FileNotInManifestError) Error() string
func (FileNotInManifestError) ExitCode ¶
func (e FileNotInManifestError) ExitCode() int
type FileNotInPackageError ¶
type FileNotInPackageError struct {
Name string
}
FileNotInPackageError is returned by Validate methods when a file is in the package in the manifest but is not documented in the manifest
func (FileNotInPackageError) Error ¶
func (e FileNotInPackageError) Error() string
func (FileNotInPackageError) ExitCode ¶
func (e FileNotInPackageError) ExitCode() int
type HashMissmatchError ¶
HashMissmatchError is returned by Validate methods when hashes missmatch
func (HashMissmatchError) Error ¶
func (e HashMissmatchError) Error() string
func (HashMissmatchError) ExitCode ¶
func (e HashMissmatchError) ExitCode() int
type Manifest ¶
type Manifest interface { PackageInfo() PackageInfo FileInfo() []FileInfo }
Manifest the interface to be implemented by manifests
type MissingCopyrightInfoError ¶
type MissingCopyrightInfoError struct {
Name string
}
MissingCopyrightInfoError is returned when a manifest has no copyright info for a file described
func (MissingCopyrightInfoError) Error ¶
func (e MissingCopyrightInfoError) Error() string
func (MissingCopyrightInfoError) ExitCode ¶
func (e MissingCopyrightInfoError) ExitCode() int
type MissingLicenseInfoError ¶
type MissingLicenseInfoError struct {
Name string
}
MissingLicenseInfoError is returned when a manifest has no license info for a file described
func (MissingLicenseInfoError) Error ¶
func (e MissingLicenseInfoError) Error() string
func (MissingLicenseInfoError) ExitCode ¶
func (e MissingLicenseInfoError) ExitCode() int
type PackageInfo ¶
type PackageInfo struct {
Name string
}
PackageInfo holds generic package metadata for manifest and package
type UnknownError ¶
type UnknownError struct { }
UnknownError is for errors unknown to the validator
func (UnknownError) Error ¶
func (e UnknownError) Error() string
func (UnknownError) ExitCode ¶
func (e UnknownError) ExitCode() int