Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingNuspecFile indicates a missing Nuspec file ErrMissingNuspecFile = errors.New("Nuspec file is missing") // ErrNuspecFileTooLarge indicates a Nuspec file which is too large ErrNuspecFileTooLarge = errors.New("Nuspec file is too large") // ErrNuspecInvalidID indicates an invalid id in the Nuspec file ErrNuspecInvalidID = errors.New("Nuspec file contains an invalid id") // ErrNuspecInvalidVersion indicates an invalid version in the Nuspec file ErrNuspecInvalidVersion = errors.New("Nuspec file contains an invalid version") )
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"` 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 }
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.