Affected by GO-2023-1894
and 1 other vulnerabilities
GO-2023-1894 : code.gitea.io/gitea Open Redirect vulnerability
GO-2024-3056 : Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
Discover Packages
code.gitea.io/gitea
modules
packages
pub
package
Version:
v1.18.1
Opens a new window with list of versions in this module.
Published: Jan 17, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrMissingPubspecFile = errors .New ("Pubspec file is missing")
ErrPubspecFileTooLarge = errors .New ("Pubspec file is too large")
ErrInvalidName = errors .New ("Package name is invalid")
ErrInvalidVersion = errors .New ("Package version is invalid")
)
type Metadata struct {
Description string `json:"description,omitempty"`
ProjectURL string `json:"project_url,omitempty"`
RepositoryURL string `json:"repository_url,omitempty"`
DocumentationURL string `json:"documentation_url,omitempty"`
Readme string `json:"readme,omitempty"`
Pubspec interface{} `json:"pubspec"`
}
Metadata represents the metadata of a Pub package
Package represents a Pub package
ParsePackage parses the Pub package file
ParsePubspecMetadata parses a Pubspec file to retrieve the metadata of a Pub package
Source Files
¶
Click to show internal directories.
Click to hide internal directories.