debian

package
v0.0.0-...-c955cd6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseComponent

func ParseComponent(pkg string) (component, name string, err error)

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

GenerateFor generates the instructions for a DebianPackage

func (*DebianPackage) ToWorkflow

func (b *DebianPackage) ToWorkflow() *rebuild.WorkflowStrategy

type FileWithChecksum

type FileWithChecksum struct {
	URL string `json:"url" yaml:"url,omitempty"`
	MD5 string `json:"md5" yaml:"md5,omitempty"`
}

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) 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

InferRepo is not needed because debian uses source packages.

func (Rebuilder) InferStrategy

func (Rebuilder) Rebuild

func (Rebuilder) Rebuild(ctx context.Context, t rebuild.Target, inst rebuild.Instructions, fs billy.Filesystem) error

Jump to

Keyboard shortcuts

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