Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingNuspecFile indicates a missing Nuspec file ErrMissingNuspecFile = util.NewInvalidArgumentErrorf("Nuspec file is missing") // ErrNuspecFileTooLarge indicates a Nuspec file which is too large ErrNuspecFileTooLarge = util.NewInvalidArgumentErrorf("Nuspec file is too large") // ErrNuspecInvalidID indicates an invalid id in the Nuspec file ErrNuspecInvalidID = util.NewInvalidArgumentErrorf("Nuspec file contains an invalid id") // ErrNuspecInvalidVersion indicates an invalid version in the Nuspec file ErrNuspecInvalidVersion = util.NewInvalidArgumentErrorf("Nuspec file contains an invalid version") )
View Source
var ( ErrMissingPdbFiles = util.NewInvalidArgumentErrorf("package does not contain PDB files") ErrInvalidFiles = util.NewInvalidArgumentErrorf("package contains invalid files") ErrInvalidPdbMagicNumber = util.NewInvalidArgumentErrorf("invalid Portable PDB magic number") ErrMissingPdbStream = util.NewInvalidArgumentErrorf("missing PDB stream") )
Functions ¶
func ParseDebugHeaderID ¶
func ParseDebugHeaderID(r io.ReadSeeker) (string, error)
ParseDebugHeaderID TODO
Types ¶
type Dependency ¶
Dependency represents a dependency of a Nuget package
type Metadata ¶
type Metadata struct {
Description string `json:"description,omitempty"`
ReleaseNotes string `json:"release_notes,omitempty"`
Readme string `json:"readme,omitempty"`
Authors string `json:"authors,omitempty"`
ProjectURL string `json:"project_url,omitempty"`
RepositoryURL string `json:"repository_url,omitempty"`
RequireLicenseAcceptance bool `json:"require_license_acceptance"`
Dependencies map[string][]Dependency `json:"dependencies,omitempty"`
}
Metadata represents the metadata of a Nuget package
type Package ¶
type Package struct {
PackageType PackageType
ID string
Version string
Metadata *Metadata
NuspecContent *bytes.Buffer
}
Package represents a Nuget package
func ParseNuspecMetaData ¶
ParseNuspecMetaData parses a Nuspec file to retrieve the metadata of a Nuget package
type PackageType ¶
type PackageType int
PackageType specifies the package type the metadata describes
const ( // DependencyPackage represents a package (*.nupkg) DependencyPackage PackageType = iota + 1 // SymbolsPackage represents a symbol package (*.snupkg) SymbolsPackage PropertySymbolID = "nuget.symbol.id" )
type PortablePdb ¶
type PortablePdb struct {
Name string
ID string
Content *packages.HashedBuffer
}
type PortablePdbList ¶
type PortablePdbList []*PortablePdb
func ExtractPortablePdb ¶
func ExtractPortablePdb(r io.ReaderAt, size int64) (PortablePdbList, error)
ExtractPortablePdb extracts PDB files from a .snupkg file
func (PortablePdbList) Close ¶
func (l PortablePdbList) Close()
Click to show internal directories.
Click to hide internal directories.