Documentation ¶
Index ¶
- func DeletePackage(ctx *context.Context)
- func DownloadPackageFile(ctx *context.Context)
- func DownloadSymbolFile(ctx *context.Context)
- func EnumeratePackageVersions(ctx *context.Context)
- func RegistrationIndex(ctx *context.Context)
- func RegistrationLeaf(ctx *context.Context)
- func SearchService(ctx *context.Context)
- func ServiceIndex(ctx *context.Context)
- func UploadPackage(ctx *context.Context)
- func UploadSymbolPackage(ctx *context.Context)
- type Auth
- type CatalogEntry
- type PackageDependency
- type PackageDependencyGroup
- type PackageVersionsResponse
- type RegistrationIndexPage
- type RegistrationIndexPageItem
- type RegistrationIndexResponse
- type RegistrationLeafResponse
- type SearchResult
- type SearchResultResponse
- type SearchResultVersion
- type ServiceIndexResponse
- type ServiceResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePackage ¶
DeletePackage hard deletes the package https://docs.microsoft.com/en-us/nuget/api/package-publish-resource#delete-a-package
func DownloadPackageFile ¶
DownloadPackageFile https://docs.microsoft.com/en-us/nuget/api/package-base-address-resource#download-package-content-nupkg
func DownloadSymbolFile ¶
DownloadSymbolFile https://github.com/dotnet/symstore/blob/main/docs/specs/Simple_Symbol_Query_Protocol.md#request
func EnumeratePackageVersions ¶
EnumeratePackageVersions https://docs.microsoft.com/en-us/nuget/api/package-base-address-resource#enumerate-package-versions
func RegistrationIndex ¶
RegistrationIndex https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-index
func RegistrationLeaf ¶
RegistrationLeaf https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-leaf
func SearchService ¶
SearchService https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-for-packages
func ServiceIndex ¶
ServiceIndex https://docs.microsoft.com/en-us/nuget/api/service-index
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
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"` }
CatalogEntry https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#catalog-entry
type PackageDependency ¶
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"` }
PackageDependencyGroup https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#package-dependency-group
type PackageVersionsResponse ¶
type PackageVersionsResponse struct {
Versions []string `json:"versions"`
}
PackageVersionsResponse 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"` }
RegistrationIndexPage 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"` }
RegistrationIndexPageItem https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#registration-leaf-object-in-a-page
type RegistrationIndexResponse ¶
type RegistrationIndexResponse struct { RegistrationIndexURL string `json:"@id"` Type []string `json:"@type"` Count int `json:"count"` Pages []*RegistrationIndexPage `json:"items"` }
RegistrationIndexResponse 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"` }
RegistrationLeafResponse 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"` }
SearchResult 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"` }
SearchResultResponse 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"` }
SearchResultVersion https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-result
type ServiceIndexResponse ¶
type ServiceIndexResponse struct { Version string `json:"version"` Resources []ServiceResource `json:"resources"` }
ServiceIndexResponse https://docs.microsoft.com/en-us/nuget/api/service-index#resources
type ServiceResource ¶
ServiceResource https://docs.microsoft.com/en-us/nuget/api/service-index#resource