Documentation ¶
Index ¶
- Constants
- func CheckAcceptMediaType(requiredAcceptHeader string) func(ctx *context.Context)
- func DownloadManifest(ctx *context.Context)
- func DownloadPackageFile(ctx *context.Context)
- func EnumeratePackageVersions(ctx *context.Context)
- func LookupPackageIdentifiers(ctx *context.Context)
- func PackageVersionMetadata(ctx *context.Context)
- func UploadPackageFile(ctx *context.Context)
- type EnumeratePackageVersionsResponse
- type LookupPackageIdentifiersResponse
- type PackageVersionMetadataResponse
- type Release
- type Resource
Constants ¶
View Source
const ( AcceptJSON = "application/vnd.swift.registry.v1+json" AcceptSwift = "application/vnd.swift.registry.v1+swift" AcceptZip = "application/vnd.swift.registry.v1+zip" )
https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#35-api-versioning
Variables ¶
This section is empty.
Functions ¶
func CheckAcceptMediaType ¶
https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#35-api-versioning
func DownloadManifest ¶
func DownloadPackageFile ¶
https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#endpoint-4
func LookupPackageIdentifiers ¶
https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#endpoint-5
func PackageVersionMetadata ¶
https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#endpoint-2
Types ¶
type LookupPackageIdentifiersResponse ¶
type LookupPackageIdentifiersResponse struct {
Identifiers []string `json:"identifiers"`
}
type PackageVersionMetadataResponse ¶
type PackageVersionMetadataResponse struct { ID string `json:"id"` Version string `json:"version"` Resources []Resource `json:"resources"` Metadata *swift_module.SoftwareSourceCode `json:"metadata"` }
Click to show internal directories.
Click to hide internal directories.