genrgst

package
v2.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPkgToVO added in v2.17.0

func ConvertPkgToVO(pkgInfo *registry.PackageInfo) *registry.VersionOverride

Types

type CargoClient added in v2.16.3

type CargoClient interface {
	GetCrate(ctx context.Context, crate string) (*cargo.CratePayload, error)
	GetLatestVersion(ctx context.Context, crate string) (string, error)
}

type Controller

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

func NewController

func NewController(fs afero.Fs, gh RepositoriesService, testdataOutputter TestdataOutputter, cargoClient CargoClient) *Controller

func (*Controller) GenerateRegistry

func (c *Controller) GenerateRegistry(ctx context.Context, param *config.Param, logE *logrus.Entry, args ...string) error

type Group added in v2.17.0

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

type Package

type Package struct {
	Info    *registry.PackageInfo
	Version string
	SemVer  string
}

type Release

type Release struct {
	ID            int64
	Tag           string
	Version       *version.Version
	VersionPrefix string
	// contains filtered or unexported fields
}

type RepositoriesService

type RepositoriesService interface {
	Get(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error)
	GetLatestRelease(ctx context.Context, repoOwner, repoName string) (*github.RepositoryRelease, *github.Response, error)
	GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*github.RepositoryRelease, *github.Response, error)
	ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error)
	ListReleases(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
}

type TestdataOutputter

type TestdataOutputter interface {
	Output(param *output.Param) error
}

Jump to

Keyboard shortcuts

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