Documentation
¶
Index ¶
- type PyPI
- func (p *PyPI) AddExtraDirectIndexURL(indexURL string)
- func (p *PyPI) CheckEndpoint() error
- func (p *PyPI) ClearExtraIndexURLs()
- func (p *PyPI) ForceReadPipConf()
- func (p *PyPI) GetExtraIndexURLs() []string
- func (p *PyPI) GetLatestVersion(packageName string) (string, error)
- func (p *PyPI) GetRequestMetrics() utils.HTTPClientMetrics
- func (p *PyPI) IsHostUnreachable(urlStr string) bool
- func (p *PyPI) MarkHostUnreachable(urlStr string)
- func (p *PyPI) SetCustomIndexURL() error
- func (p *PyPI) SetDirectIndexURL(indexURL string)
- func (p *PyPI) SetIndexURLFromPyProjectTOML(content []byte)
- func (p *PyPI) SetIndexURLFromRequirements(content string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PyPI ¶
type PyPI struct {
// contains filtered or unexported fields
}
PyPI represents a PyPI package manager
func (*PyPI) AddExtraDirectIndexURL ¶ added in v0.1.84
AddExtraDirectIndexURL allows adding an extra index URL directly from code
func (*PyPI) CheckEndpoint ¶ added in v0.1.65
func (*PyPI) ClearExtraIndexURLs ¶ added in v0.1.84
func (p *PyPI) ClearExtraIndexURLs()
ClearExtraIndexURLs clears all extra index URLs
func (*PyPI) ForceReadPipConf ¶ added in v0.1.84
func (p *PyPI) ForceReadPipConf()
ForceReadPipConf forces reading from pip.conf files, used for testing
func (*PyPI) GetExtraIndexURLs ¶ added in v0.1.84
GetExtraIndexURLs returns the list of extra index URLs
func (*PyPI) GetLatestVersion ¶
GetLatestVersion returns the latest version of a package from PyPI
func (*PyPI) GetRequestMetrics ¶ added in v0.1.84
func (p *PyPI) GetRequestMetrics() utils.HTTPClientMetrics
GetRequestMetrics returns metrics about HTTP requests
func (*PyPI) IsHostUnreachable ¶ added in v0.1.90
IsHostUnreachable checks if a host has been marked as unreachable
func (*PyPI) MarkHostUnreachable ¶ added in v0.1.90
MarkHostUnreachable marks a host as unreachable
func (*PyPI) SetCustomIndexURL ¶
SetCustomIndexURL sets a custom PyPI index URL based on environment variables or pip.conf.
func (*PyPI) SetDirectIndexURL ¶ added in v0.1.84
SetDirectIndexURL allows setting the index URL directly from code
func (*PyPI) SetIndexURLFromPyProjectTOML ¶ added in v0.1.84
SetIndexURLFromPyProjectTOML sets the PyPI index URL from pyproject.toml content.
func (*PyPI) SetIndexURLFromRequirements ¶ added in v0.1.84
SetIndexURLFromRequirements sets the PyPI index URL from a requirements file content.