Documentation ¶
Index ¶
- Variables
- func DeletePackage(ctx *context.Context)
- func DownloadPackageFile(ctx *context.Context)
- func DownloadSymbolFile(ctx *context.Context)
- func EnumeratePackageVersionsV2(ctx *context.Context)
- func EnumeratePackageVersionsV2Count(ctx *context.Context)
- func EnumeratePackageVersionsV3(ctx *context.Context)
- func FeedCapabilityResource(ctx *context.Context)
- func RegistrationIndex(ctx *context.Context)
- func RegistrationLeafV2(ctx *context.Context)
- func RegistrationLeafV3(ctx *context.Context)
- func SearchServiceV2(ctx *context.Context)
- func SearchServiceV2Count(ctx *context.Context)
- func SearchServiceV3(ctx *context.Context)
- func ServiceIndexV2(ctx *context.Context)
- func ServiceIndexV3(ctx *context.Context)
- func UploadPackage(ctx *context.Context)
- func UploadSymbolPackage(ctx *context.Context)
- type AtomTitle
- type Auth
- type CatalogEntry
- type EdmxDataServices
- type EdmxEntityContainer
- type EdmxEntitySet
- type EdmxEntityType
- type EdmxFunctionImport
- type EdmxFunctionParameter
- type EdmxMetadata
- type EdmxProperty
- type EdmxPropertyRef
- type EdmxSchema
- type FeedEntry
- type FeedEntryCategory
- type FeedEntryLink
- type FeedEntryProperties
- type FeedResponse
- type PackageDependency
- type PackageDependencyGroup
- type PackageVersionsResponse
- type RegistrationIndexPage
- type RegistrationIndexPageItem
- type RegistrationIndexResponse
- type RegistrationLeafResponse
- type SearchResult
- type SearchResultResponse
- type SearchResultVersion
- type ServiceCollection
- type ServiceIndexResponseV2
- type ServiceIndexResponseV3
- type ServiceResource
- type ServiceWorkspace
- type TypedValue
Constants ¶
This section is empty.
Variables ¶
var Metadata = &EdmxMetadata{ XmlnsEdmx: "http://schemas.microsoft.com/ado/2007/06/edmx", Version: "1.0", DataServices: EdmxDataServices{ XmlnsM: "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata", DataServiceVersion: "2.0", MaxDataServiceVersion: "2.0", Schema: []EdmxSchema{ { Xmlns: "http://schemas.microsoft.com/ado/2006/04/edm", Namespace: "NuGetGallery.OData", EntityType: &EdmxEntityType{ Name: "V2FeedPackage", HasStream: true, Keys: []EdmxPropertyRef{ {Name: "Id"}, {Name: "Version"}, }, Properties: []EdmxProperty{ { Name: "Id", Type: "Edm.String", }, { Name: "Version", Type: "Edm.String", }, { Name: "NormalizedVersion", Type: "Edm.String", Nullable: true, }, { Name: "Authors", Type: "Edm.String", Nullable: true, }, { Name: "Created", Type: "Edm.DateTime", }, { Name: "Dependencies", Type: "Edm.String", }, { Name: "Description", Type: "Edm.String", }, { Name: "DownloadCount", Type: "Edm.Int64", }, { Name: "LastUpdated", Type: "Edm.DateTime", }, { Name: "Published", Type: "Edm.DateTime", }, { Name: "PackageSize", Type: "Edm.Int64", }, { Name: "ProjectUrl", Type: "Edm.String", Nullable: true, }, { Name: "ReleaseNotes", Type: "Edm.String", Nullable: true, }, { Name: "RequireLicenseAcceptance", Type: "Edm.Boolean", Nullable: false, }, { Name: "Title", Type: "Edm.String", Nullable: true, }, { Name: "VersionDownloadCount", Type: "Edm.Int64", Nullable: false, }, }, }, }, { Xmlns: "http://schemas.microsoft.com/ado/2006/04/edm", Namespace: "NuGetGallery", EntityContainer: &EdmxEntityContainer{ Name: "V2FeedContext", IsDefaultEntityContainer: true, EntitySet: EdmxEntitySet{ Name: "Packages", EntityType: "NuGetGallery.OData.V2FeedPackage", }, FunctionImports: []EdmxFunctionImport{ { Name: "Search", ReturnType: "Collection(NuGetGallery.OData.V2FeedPackage)", EntitySet: "Packages", Parameter: []EdmxFunctionParameter{ { Name: "searchTerm", Type: "Edm.String", }, }, }, { Name: "FindPackagesById", ReturnType: "Collection(NuGetGallery.OData.V2FeedPackage)", EntitySet: "Packages", Parameter: []EdmxFunctionParameter{ { Name: "id", Type: "Edm.String", }, }, }, }, }, }, }, }, }
Functions ¶
func DeletePackage ¶
DeletePackage hard deletes the package https://docs.microsoft.com/en-us/nuget/api/package-publish-resource#delete-a-package
func DownloadPackageFile ¶
func DownloadSymbolFile ¶
https://github.com/dotnet/symstore/blob/main/docs/specs/Simple_Symbol_Query_Protocol.md#request
func EnumeratePackageVersionsV2 ¶ added in v1.17.4
func EnumeratePackageVersionsV2Count ¶ added in v1.19.0
func EnumeratePackageVersionsV3 ¶ added in v1.17.4
https://docs.microsoft.com/en-us/nuget/api/package-base-address-resource#enumerate-package-versions
func FeedCapabilityResource ¶ added in v1.17.4
func RegistrationIndex ¶
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-index
func RegistrationLeafV2 ¶ added in v1.17.4
func RegistrationLeafV3 ¶ added in v1.17.4
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-leaf
func SearchServiceV2 ¶ added in v1.17.4
func SearchServiceV2Count ¶ added in v1.19.0
func SearchServiceV3 ¶ added in v1.17.4
https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-for-packages
func ServiceIndexV2 ¶ added in v1.17.4
func ServiceIndexV3 ¶ added in v1.17.4
func UploadPackage ¶
UploadPackage creates a new package with the metadata contained in the uploaded nupgk file https://docs.microsoft.com/en-us/nuget/api/package-publish-resource#push-a-package
func UploadSymbolPackage ¶
UploadSymbolPackage adds a symbol package to an existing package https://docs.microsoft.com/en-us/nuget/api/symbol-package-publish-resource
Types ¶
type Auth ¶ added in v1.17.1
type Auth struct{}
func (*Auth) Verify ¶ added in v1.17.1
func (a *Auth) Verify(req *http.Request, w http.ResponseWriter, store auth.DataStore, sess auth.SessionStore) (*user_model.User, error)
https://docs.microsoft.com/en-us/nuget/api/package-publish-resource#request-parameters
type CatalogEntry ¶
type CatalogEntry struct { CatalogLeafURL string `json:"@id"` PackageContentURL string `json:"packageContent"` ID string `json:"id"` Version string `json:"version"` Description string `json:"description"` ReleaseNotes string `json:"releaseNotes"` Authors string `json:"authors"` RequireLicenseAcceptance bool `json:"requireLicenseAcceptance"` ProjectURL string `json:"projectURL"` DependencyGroups []*PackageDependencyGroup `json:"dependencyGroups"` }
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#catalog-entry
type EdmxDataServices ¶ added in v1.17.4
type EdmxDataServices struct { XmlnsM string `xml:"xmlns:m,attr"` DataServiceVersion string `xml:"m:DataServiceVersion,attr"` MaxDataServiceVersion string `xml:"m:MaxDataServiceVersion,attr"` Schema []EdmxSchema `xml:"Schema"` }
type EdmxEntityContainer ¶ added in v1.17.4
type EdmxEntityContainer struct { Name string `xml:"Name,attr"` IsDefaultEntityContainer bool `xml:"m:IsDefaultEntityContainer,attr"` EntitySet EdmxEntitySet `xml:"EntitySet"` FunctionImports []EdmxFunctionImport `xml:"FunctionImport"` }
type EdmxEntitySet ¶ added in v1.17.4
type EdmxEntityType ¶ added in v1.17.4
type EdmxEntityType struct { Name string `xml:"Name,attr"` HasStream bool `xml:"m:HasStream,attr"` Keys []EdmxPropertyRef `xml:"Key>PropertyRef"` Properties []EdmxProperty `xml:"Property"` }
type EdmxFunctionImport ¶ added in v1.17.4
type EdmxFunctionImport struct { Name string `xml:"Name,attr"` ReturnType string `xml:"ReturnType,attr"` EntitySet string `xml:"EntitySet,attr"` Parameter []EdmxFunctionParameter `xml:"Parameter"` }
type EdmxFunctionParameter ¶ added in v1.17.4
type EdmxMetadata ¶ added in v1.17.4
type EdmxMetadata struct { XMLName xml.Name `xml:"edmx:Edmx"` XmlnsEdmx string `xml:"xmlns:edmx,attr"` Version string `xml:"Version,attr"` DataServices EdmxDataServices `xml:"edmx:DataServices"` }
type EdmxProperty ¶ added in v1.17.4
type EdmxPropertyRef ¶ added in v1.17.4
type EdmxPropertyRef struct {
Name string `xml:"Name,attr"`
}
type EdmxSchema ¶ added in v1.17.4
type EdmxSchema struct { Xmlns string `xml:"xmlns,attr"` Namespace string `xml:"Namespace,attr"` EntityType *EdmxEntityType `xml:"EntityType,omitempty"` EntityContainer *EdmxEntityContainer `xml:"EntityContainer,omitempty"` }
type FeedEntry ¶ added in v1.17.4
type FeedEntry struct { XMLName xml.Name `xml:"entry"` Xmlns string `xml:"xmlns,attr,omitempty"` XmlnsD string `xml:"xmlns:d,attr,omitempty"` XmlnsM string `xml:"xmlns:m,attr,omitempty"` Base string `xml:"xml:base,attr,omitempty"` ID string `xml:"id"` Category FeedEntryCategory `xml:"category"` Links []FeedEntryLink `xml:"link"` Title TypedValue[string] `xml:"title"` Updated time.Time `xml:"updated"` Author string `xml:"author>name"` Summary string `xml:"summary"` Properties *FeedEntryProperties `xml:"m:properties"` Content string `xml:",innerxml"` }
type FeedEntryCategory ¶ added in v1.17.4
type FeedEntryLink ¶ added in v1.17.4
type FeedEntryProperties ¶ added in v1.17.4
type FeedEntryProperties struct { Version string `xml:"d:Version"` NormalizedVersion string `xml:"d:NormalizedVersion"` Authors string `xml:"d:Authors"` Dependencies string `xml:"d:Dependencies"` Description string `xml:"d:Description"` VersionDownloadCount TypedValue[int64] `xml:"d:VersionDownloadCount"` DownloadCount TypedValue[int64] `xml:"d:DownloadCount"` PackageSize TypedValue[int64] `xml:"d:PackageSize"` Created TypedValue[time.Time] `xml:"d:Created"` LastUpdated TypedValue[time.Time] `xml:"d:LastUpdated"` Published TypedValue[time.Time] `xml:"d:Published"` ProjectURL string `xml:"d:ProjectUrl,omitempty"` ReleaseNotes string `xml:"d:ReleaseNotes,omitempty"` RequireLicenseAcceptance TypedValue[bool] `xml:"d:RequireLicenseAcceptance"` Title string `xml:"d:Title"` }
type FeedResponse ¶ added in v1.17.4
type FeedResponse struct { XMLName xml.Name `xml:"feed"` Xmlns string `xml:"xmlns,attr,omitempty"` XmlnsD string `xml:"xmlns:d,attr,omitempty"` XmlnsM string `xml:"xmlns:m,attr,omitempty"` Base string `xml:"xml:base,attr,omitempty"` ID string `xml:"id"` Title TypedValue[string] `xml:"title"` Updated time.Time `xml:"updated"` Links []FeedEntryLink `xml:"link"` Entries []*FeedEntry `xml:"entry"` Count int64 `xml:"m:count"` }
type PackageDependency ¶
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#package-dependency
type PackageDependencyGroup ¶
type PackageDependencyGroup struct { TargetFramework string `json:"targetFramework"` Dependencies []*PackageDependency `json:"dependencies"` }
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#package-dependency-group
type PackageVersionsResponse ¶
type PackageVersionsResponse struct {
Versions []string `json:"versions"`
}
https://docs.microsoft.com/en-us/nuget/api/package-base-address-resource#response
type RegistrationIndexPage ¶
type RegistrationIndexPage struct { RegistrationPageURL string `json:"@id"` Lower string `json:"lower"` Upper string `json:"upper"` Count int `json:"count"` Items []*RegistrationIndexPageItem `json:"items"` }
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-page-object
type RegistrationIndexPageItem ¶
type RegistrationIndexPageItem struct { RegistrationLeafURL string `json:"@id"` PackageContentURL string `json:"packageContent"` CatalogEntry *CatalogEntry `json:"catalogEntry"` }
type RegistrationIndexResponse ¶
type RegistrationIndexResponse struct { RegistrationIndexURL string `json:"@id"` Type []string `json:"@type"` Count int `json:"count"` Pages []*RegistrationIndexPage `json:"items"` }
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#response
type RegistrationLeafResponse ¶
type RegistrationLeafResponse struct { RegistrationLeafURL string `json:"@id"` Type []string `json:"@type"` Listed bool `json:"listed"` PackageContentURL string `json:"packageContent"` Published time.Time `json:"published"` RegistrationIndexURL string `json:"registration"` }
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-leaf
type SearchResult ¶
type SearchResult struct { ID string `json:"id"` Version string `json:"version"` Versions []*SearchResultVersion `json:"versions"` Description string `json:"description"` Authors string `json:"authors"` ProjectURL string `json:"projectURL"` RegistrationIndexURL string `json:"registration"` }
https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-result
type SearchResultResponse ¶
type SearchResultResponse struct { TotalHits int64 `json:"totalHits"` Data []*SearchResult `json:"data"` }
https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#response
type SearchResultVersion ¶
type SearchResultVersion struct { RegistrationLeafURL string `json:"@id"` Version string `json:"version"` Downloads int64 `json:"downloads"` }
https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-result
type ServiceCollection ¶ added in v1.17.4
type ServiceIndexResponseV2 ¶ added in v1.17.4
type ServiceIndexResponseV3 ¶ added in v1.17.4
type ServiceIndexResponseV3 struct { Version string `json:"version"` Resources []ServiceResource `json:"resources"` }
https://docs.microsoft.com/en-us/nuget/api/service-index#resources
type ServiceWorkspace ¶ added in v1.17.4
type ServiceWorkspace struct { Title AtomTitle `xml:"atom:title"` Collection ServiceCollection `xml:"collection"` }