Versions in this module Expand all Collapse all v0 v0.1.6 Feb 5, 2025 Changes in this version + const MavenCentral + func MakeMavenAuth(globalSettings, userSettings MavenSettingsXML) map[string]*HTTPAuthentication + func NewMavenDecoder(reader io.Reader) *xml.Decoder + type CachedInsightsClient struct + func NewCachedInsightsClient(addr string, userAgent string) (*CachedInsightsClient, error) + func (c *CachedInsightsClient) GetPackage(ctx context.Context, in *pb.GetPackageRequest, opts ...grpc.CallOption) (*pb.Package, error) + func (c *CachedInsightsClient) GetRequirements(ctx context.Context, in *pb.GetRequirementsRequest, opts ...grpc.CallOption) (*pb.Requirements, error) + func (c *CachedInsightsClient) GetVersion(ctx context.Context, in *pb.GetVersionRequest, opts ...grpc.CallOption) (*pb.Version, error) + func (c *CachedInsightsClient) GobDecode(b []byte) error + func (c *CachedInsightsClient) GobEncode() ([]byte, error) + type HTTPAuthMethod int + const AuthBasic + const AuthBearer + const AuthDigest + type HTTPAuthentication struct + AlwaysAuth bool + BasicAuth string + BearerToken string + CnonceFunc func() string + Password string + SupportedMethods []HTTPAuthMethod + Username string + func (auth *HTTPAuthentication) Get(ctx context.Context, httpClient *http.Client, url string) (*http.Response, error) + type MavenRegistry struct + ID string + Parsed *url.URL + ReleasesEnabled bool + SnapshotsEnabled bool + URL string + type MavenRegistryAPIClient struct + func NewMavenRegistryAPIClient(registry MavenRegistry) (*MavenRegistryAPIClient, error) + func (m *MavenRegistryAPIClient) AddRegistry(registry MavenRegistry) error + func (m *MavenRegistryAPIClient) GetProject(ctx context.Context, groupID, artifactID, version string) (maven.Project, error) + func (m *MavenRegistryAPIClient) GetRegistries() (registries []MavenRegistry) + func (m *MavenRegistryAPIClient) GetVersions(ctx context.Context, groupID, artifactID string) ([]maven.String, error) + func (m *MavenRegistryAPIClient) GobDecode(b []byte) error + func (m *MavenRegistryAPIClient) GobEncode() ([]byte, error) + func (m *MavenRegistryAPIClient) WithoutRegistries() *MavenRegistryAPIClient + type MavenSettingsXML struct + Servers []MavenSettingsXMLServer + func ParseMavenSettings(path string) MavenSettingsXML + type MavenSettingsXMLServer struct + ID string + Password string + Username string + type RequestCache struct + func NewRequestCache[K comparable, V any]() *RequestCache[K, V] + func (rq *RequestCache[K, V]) Get(key K, fn func() (V, error)) (V, error) + func (rq *RequestCache[K, V]) GetMap() map[K]V + func (rq *RequestCache[K, V]) SetMap(m map[K]V)