Documentation ¶
Index ¶
- Constants
- func Generate(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, pw progress.Writer, ...) error
- func GenerateMissingData(ctx context.Context, logger *slog.Logger, sqlDB *sql.DB, pw progress.Writer, ...) error
- type Client
- type DependenciesQuery
- type DependenciesRelation
- type DepsDev
- type GetDependenciesResponse
- type GetVersionResponse
- type PackageVersionQuery
Constants ¶
View Source
const ( DependenciesRelationSelf = "SELF" DependenciesRelationDirect = "DIRECT" DependenciesRelationIndirect = "INDIRECT" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDependencies ¶ added in v0.46.0
func (c *Client) GetDependencies(ctx context.Context, q DependenciesQuery) (resp GetDependenciesResponse, err error, notFound bool)
func (*Client) GetVersion ¶
func (c *Client) GetVersion(ctx context.Context, q PackageVersionQuery) (resp GetVersionResponse, err error, notFound bool)
type DependenciesQuery ¶ added in v0.46.0
type DependenciesRelation ¶ added in v0.46.0
type DependenciesRelation = string
type GetDependenciesResponse ¶ added in v0.46.0
type GetDependenciesResponse struct { Nodes []struct { VersionKey struct { System string `json:"system"` Name string `json:"name"` Version string `json:"version"` } `json:"versionKey"` Relation DependenciesRelation `json:"relation"` } `json:"nodes"` }
type GetVersionResponse ¶
type GetVersionResponse struct { VersionKey struct { System string `json:"system"` Name string `json:"name"` Version string `json:"version"` } `json:"versionKey"` Licenses []string `json:"licenses"` AdvisoryKeys []struct { ID string `json:"id"` } `json:"advisoryKeys"` IsDeprecated bool `json:"isDeprecated"` }
type PackageVersionQuery ¶
Click to show internal directories.
Click to hide internal directories.