Documentation
¶
Index ¶
- func GetVersions(ctx context.Context, pkg string, mux rebuild.RegistryMux) (versions []string, err error)
- func RebuildMany(ctx context.Context, inputs []rebuild.Input, mux rebuild.RegistryMux) ([]rebuild.Verdict, error)
- func RebuildRemote(ctx context.Context, input rebuild.Input, id string, ...) error
- type CratesIOCargoPackage
- type ExplicitLockfile
- type Rebuilder
- func (Rebuilder) CloneRepo(ctx context.Context, t rebuild.Target, repoURI string, fs billy.Filesystem, ...) (r rebuild.RepoConfig, err error)
- func (Rebuilder) Compare(ctx context.Context, t rebuild.Target, rb, up rebuild.Asset, ...) (msg error, err error)
- func (Rebuilder) InferRepo(ctx context.Context, t rebuild.Target, mux rebuild.RegistryMux) (string, error)
- func (Rebuilder) InferStrategy(ctx context.Context, t rebuild.Target, mux rebuild.RegistryMux, ...) (rebuild.Strategy, error)
- func (Rebuilder) Rebuild(ctx context.Context, t rebuild.Target, inst rebuild.Instructions, ...) error
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 ¶
func (b *CratesIOCargoPackage) GenerateFor(t rebuild.Target, be rebuild.BuildEnv) (rebuild.Instructions, error)
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.
Click to show internal directories.
Click to hide internal directories.