Documentation ¶
Index ¶
- func ParseComponent(pkg string) (component, name 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 DebianPackage
- type FileWithChecksum
- type Rebuilder
- func (Rebuilder) CloneRepo(_ context.Context, _ rebuild.Target, _ string, _ billy.Filesystem, ...) (rebuild.RepoConfig, error)
- func (Rebuilder) Compare(ctx context.Context, t rebuild.Target, rb, up rebuild.Asset, ...) (msg error, err error)
- func (Rebuilder) InferRepo(_ context.Context, _ rebuild.Target, _ 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 ParseComponent ¶
We expect target.Packge to be in the form "<component>/<name>".
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 DebianPackage ¶
type DebianPackage struct { DSC FileWithChecksum `json:"dsc" yaml:"dsc,omitempty"` Orig FileWithChecksum `json:"orig" yaml:"orig,omitempty"` Debian FileWithChecksum `json:"debian" yaml:"debian,omitempty"` Native FileWithChecksum `json:"native" yaml:"native,omitempty"` Requirements []string `json:"requirements" yaml:"requirements,omitempty"` }
DebianPackage aggregates the options controlling a debian package build.
func (*DebianPackage) GenerateFor ¶
func (b *DebianPackage) GenerateFor(t rebuild.Target, be rebuild.BuildEnv) (rebuild.Instructions, error)
GenerateFor generates the instructions for a DebianPackage
func (*DebianPackage) ToWorkflow ¶
func (b *DebianPackage) ToWorkflow() *rebuild.WorkflowStrategy
type FileWithChecksum ¶
type Rebuilder ¶
type Rebuilder struct{}
func (Rebuilder) CloneRepo ¶
func (Rebuilder) CloneRepo(_ context.Context, _ rebuild.Target, _ string, _ billy.Filesystem, _ storage.Storer) (rebuild.RepoConfig, error)
CloneRepo is not needed because debian uses source packages.
func (Rebuilder) InferRepo ¶
func (Rebuilder) InferRepo(_ context.Context, _ rebuild.Target, _ rebuild.RegistryMux) (string, error)
InferRepo is not needed because debian uses source packages.
func (Rebuilder) InferStrategy ¶
Click to show internal directories.
Click to hide internal directories.