genrgst

package
v2.45.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 31 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 Config added in v2.45.0

type Config struct {
	VersionPrefix   string
	VersionFilter   *vm.Program
	AllAssetsFilter *vm.Program
	Package         string
}

func (*Config) FromRaw added in v2.45.0

func (c *Config) FromRaw(raw *RawConfig) 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
}

func (*Group) VersionConstraint added in v2.45.0

func (g *Group) VersionConstraint() (string, *Release)

type Package

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

type RawConfig added in v2.45.0

type RawConfig struct {
	VersionFilter   string `json:"version_filter,omitempty" yaml:"version_filter"`
	VersionPrefix   string `json:"version_prefix,omitempty" yaml:"version_prefix"`
	AllAssetsFilter string `json:"all_assets_filter,omitempty" yaml:"all_assets_filter"`
	Package         string `json:"name" yaml:"name"`
}

type Release

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

func (*Release) GreaterThan added in v2.45.0

func (r *Release) GreaterThan(r2 *Release) bool

func (*Release) LessThan added in v2.45.0

func (r *Release) LessThan(r2 *Release) bool

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