Documentation ¶
Index ¶
Constants ¶
View Source
const ( PropertyScope = "swift.scope" PropertyName = "swift.name" PropertyRepositoryURL = "swift.repository_url" )
Variables ¶
View Source
var ( ErrMissingManifestFile = util.NewInvalidArgumentErrorf("Package.swift file is missing") ErrManifestFileTooLarge = util.NewInvalidArgumentErrorf("Package.swift file is too large") ErrInvalidManifestVersion = util.NewInvalidArgumentErrorf("manifest version is invalid") )
Functions ¶
func TrimmedVersionString ¶
func TrimmedVersionString(v *version.Version) string
TrimmedVersionString returns the version string without the patch segment if it is zero
Types ¶
type Manifest ¶
type Manifest struct { Content string `json:"content"` ToolsVersion string `json:"tools_version,omitempty"` }
Manifest represents a Package.swift file
type Metadata ¶
type Metadata struct { Description string `json:"description,omitempty"` Keywords []string `json:"keywords,omitempty"` RepositoryURL string `json:"repository_url,omitempty"` License string `json:"license,omitempty"` Author Person `json:"author,omitempty"` Manifests map[string]*Manifest `json:"manifests,omitempty"` }
Metadata represents the metadata of a Swift package
type Person ¶
type ProgrammingLanguage ¶
type SoftwareSourceCode ¶
type SoftwareSourceCode struct { Context []string `json:"@context"` Type string `json:"@type"` Name string `json:"name"` Version string `json:"version"` Description string `json:"description,omitempty"` Keywords []string `json:"keywords,omitempty"` CodeRepository string `json:"codeRepository,omitempty"` License string `json:"license,omitempty"` Author Person `json:"author"` ProgrammingLanguage ProgrammingLanguage `json:"programmingLanguage"` RepositoryURLs []string `json:"repositoryURLs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.