cratesio

package
v0.0.0-...-eaaab9e Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersions

func GetVersions(ctx context.Context, pkg string, mux rebuild.RegistryMux) (versions []string, err error)

GetVersions returns the versions to be processed, most recent to least recent.

func RebuildMany

func RebuildMany(ctx context.Context, inputs []rebuild.Input, mux rebuild.RegistryMux) ([]rebuild.Verdict, error)

RebuildMany executes rebuilds for each provided rebuild.Input returning their rebuild.Verdicts.

func RebuildRemote

func RebuildRemote(ctx context.Context, input rebuild.Input, id string, opts rebuild.RemoteOptions) error

RebuildRemote executes the given target strategy on a remote builder.

Types

type CratesIOCargoPackage

type CratesIOCargoPackage struct {
	rebuild.Location
	RustVersion      string            `json:"rust_version" yaml:"rust_version,omitempty"`
	ExplicitLockfile *ExplicitLockfile `json:"explicit_lockfile" yaml:"explicit_lockfile,omitempty"`
}

CratesIOCargoPackage aggregates the options controlling a cargo build of a cratesio package.

func (*CratesIOCargoPackage) GenerateFor

Generate generates the instructions for a CratesIOCargoPackage

type ExplicitLockfile

type ExplicitLockfile struct {
	LockfileBase64 string `json:"lockfile_base64" yaml:"lockfile_base64,omitempty"`
}

ExplicitLockfile aggregates the options controlling a cargo build of a crate.

type Rebuilder

type Rebuilder struct{}

func (Rebuilder) CloneRepo

func (Rebuilder) CloneRepo(ctx context.Context, t rebuild.Target, repoURI string, fs billy.Filesystem, s storage.Storer) (r rebuild.RepoConfig, err error)

func (Rebuilder) Compare

func (Rebuilder) Compare(ctx context.Context, t rebuild.Target, rb, up rebuild.Asset, assets rebuild.AssetStore, inst rebuild.Instructions) (msg error, err error)

func (Rebuilder) InferRepo

func (Rebuilder) InferStrategy

func (Rebuilder) Rebuild

Jump to

Keyboard shortcuts

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