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 NPMCustomBuild
- type NPMPackBuild
- 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 NPMCustomBuild ¶
type NPMCustomBuild struct { rebuild.Location NPMVersion string `json:"npm_version"` NodeVersion string `json:"node_version"` VersionOverride string `json:"version_override"` Command string `json:"command"` RegistryTime time.Time `json:"registry_time"` }
NPMCustomBuild implements a user-specified build script.
func (*NPMCustomBuild) GenerateFor ¶
func (b *NPMCustomBuild) GenerateFor(t rebuild.Target, be rebuild.BuildEnv) (rebuild.Instructions, error)
GenerateFor generates the instructions for a NPMCustomBuild.
type NPMPackBuild ¶
type NPMPackBuild struct { rebuild.Location // NPMVersion is the version of the NPM CLI to use for the build. NPMVersion string `json:"npm_version"` // VersionOverride provides an alternative version value to apply to the package.json file. VersionOverride string `json:"version_override"` }
func (*NPMPackBuild) GenerateFor ¶
func (b *NPMPackBuild) GenerateFor(t rebuild.Target, be rebuild.BuildEnv) (rebuild.Instructions, error)
GenerateFor generates the instructions for a NPMPackBuild.
Click to show internal directories.
Click to hide internal directories.