depsdev

package
v0.39.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, logger log.Logger, sqlDB *sql.DB, pw progress.Writer, httpClient *http.Client) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client) Client

func (*Client) GetVersion

func (c *Client) GetVersion(q PackageVersionQuery) (resp GetVersionResponse, err error, notFound bool)

type DepsDev

type DepsDev struct{}

func (*DepsDev) AnonymiseData

func (d *DepsDev) AnonymiseData(ctx context.Context, sqlDB *sql.DB, orgs []string) (err error)

func (*DepsDev) CreateTables

func (d *DepsDev) CreateTables(ctx context.Context, sqlDB *sql.DB) error

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"`
}

type PackageVersionQuery

type PackageVersionQuery struct {
	System  string
	Name    string
	Version string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL