Documentation
¶
Overview ¶
Package pypi defines the structures to parse PyPI JSON API response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Name string `json:"filename"`
URL string `json:"url"`
Yanked Yanked `json:"yanked"`
}
File holds the information of a file in index response.
type IndexResponse ¶
type IndexResponse struct {
Name string `json:"name"`
Files []File `json:"files"`
Versions []string `json:"versions"`
}
IndexResponse defines the response of Index API. https://docs.pypi.org/api/index-api/
type Yanked ¶
type Yanked struct {
Value bool
}
Yanked represents the yanked field in the index response. This can either be false or a string representing the yanked reason.
func (*Yanked) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for BoolOrString
Click to show internal directories.
Click to hide internal directories.