manifesttest

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PkgBuilder

type PkgBuilder struct {
	// contains filtered or unexported fields
}

PkgBuilder is a builder pattern implementation for manifest.Package objects

func NewPkgBuilder

func NewPkgBuilder(root string) PkgBuilder

NewPkgBuilder returns a new builder with sensible default values

func (PkgBuilder) Result

func (b PkgBuilder) Result() *manifest.Package

Result returns the manifest.Package object

func (PkgBuilder) WithBinaries

func (b PkgBuilder) WithBinaries(bins ...string) PkgBuilder

WithBinaries sets the name of the binaries in the package

func (PkgBuilder) WithChannel

func (b PkgBuilder) WithChannel(name string) PkgBuilder

WithChannel sets the the channel of the package

func (PkgBuilder) WithDest

func (b PkgBuilder) WithDest(dst string) PkgBuilder

WithDest sets the destination of the package

func (PkgBuilder) WithEnvOps

func (b PkgBuilder) WithEnvOps(ops ...envars.Op) PkgBuilder

WithEnvOps adds Ops to the package.

func (PkgBuilder) WithFS

func (b PkgBuilder) WithFS(fs fs.FS) PkgBuilder

WithFS sets the manifest source FS for this package.

func (PkgBuilder) WithFile

func (b PkgBuilder) WithFile(src, dst string, fs fs.FS) PkgBuilder

WithFile adds an external file to the package

func (PkgBuilder) WithName

func (b PkgBuilder) WithName(name string) PkgBuilder

WithName sets the name of the package

func (PkgBuilder) WithProvides

func (b PkgBuilder) WithProvides(provs ...string) PkgBuilder

WithProvides sets the virtual packages this package provides

func (PkgBuilder) WithRequires

func (b PkgBuilder) WithRequires(reqs ...string) PkgBuilder

WithRequires sets the required dependencies

func (PkgBuilder) WithSHA256

func (b PkgBuilder) WithSHA256(sha string) PkgBuilder

WithSHA256 sets the sha256 hash of the package

func (PkgBuilder) WithSource

func (b PkgBuilder) WithSource(src string) PkgBuilder

WithSource sets the source of the package

func (PkgBuilder) WithTrigger

func (b PkgBuilder) WithTrigger(event manifest.Event, actions ...manifest.Action) PkgBuilder

WithTrigger adds a lifecycle trigger to the package

func (PkgBuilder) WithUnsupportedPlatforms added in v0.2.21

func (b PkgBuilder) WithUnsupportedPlatforms(platforms []platform.Platform) PkgBuilder

WithUnsupportedPlatforms sets the unsupported platforms for the package

func (PkgBuilder) WithUpdateInterval

func (b PkgBuilder) WithUpdateInterval(dur time.Duration) PkgBuilder

WithUpdateInterval sets the update interval for the package

func (PkgBuilder) WithVersion

func (b PkgBuilder) WithVersion(version string) PkgBuilder

WithVersion sets the version of the package

func (PkgBuilder) WithWarnings

func (b PkgBuilder) WithWarnings(warnings ...string) PkgBuilder

WithWarnings sets the warnings in the package

Jump to

Keyboard shortcuts

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