swift

package
v1.21.0-dev Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 18 Imported by: 1

Documentation

Index

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

Types

type EnumeratePackageVersionsResponse

type EnumeratePackageVersionsResponse struct {
	Releases map[string]Release `json:"releases"`
}

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"`
}

type Release

type Release struct {
	URL string `json:"url"`
}

type Resource

type Resource struct {
	Name     string `json:"id"`
	Type     string `json:"type"`
	Checksum string `json:"checksum"`
}

Jump to

Keyboard shortcuts

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