nuget

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadPackage

func UploadPackage(ctx *context.Context)

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

func UploadSymbolPackage(ctx *context.Context)

UploadSymbolPackage adds a symbol package to an existing package https://docs.microsoft.com/en-us/nuget/api/symbol-package-publish-resource

Types

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

type PackageDependency struct {
	ID    string `json:"id"`
	Range string `json:"range"`
}

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

type ServiceResource struct {
	ID   string `json:"@id"`
	Type string `json:"@type"`
}

ServiceResource https://docs.microsoft.com/en-us/nuget/api/service-index#resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL