options

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackendArgs

func BackendArgs(r []string) func(cfg *Compiler) error

func Concurrency

func Concurrency(i int) func(cfg *Compiler) error

func EnableGenerateFinalImages

func EnableGenerateFinalImages(cfg *Compiler) error

func EnablePushFinalImages

func EnablePushFinalImages(cfg *Compiler) error

func ForcePushFinalImages

func ForcePushFinalImages(cfg *Compiler) error

func KeepImg

func KeepImg(b bool) func(cfg *Compiler) error

func NoDeps

func NoDeps(b bool) func(cfg *Compiler) error

func OnlyDeps

func OnlyDeps(b bool) func(cfg *Compiler) error

func OnlyTarget

func OnlyTarget(b bool) func(cfg *Compiler) error

func PullFirst

func PullFirst(b bool) func(cfg *Compiler) error

func PushImages

func PushImages(b bool) func(cfg *Compiler) error

func Rebuild

func Rebuild(b bool) func(cfg *Compiler) error

func Wait

func Wait(b bool) func(cfg *Compiler) error

func WithBackendType

func WithBackendType(r string) func(cfg *Compiler) error

func WithBuildValues

func WithBuildValues(r []string) func(cfg *Compiler) error

func WithCompressionType

func WithCompressionType(t compression.Implementation) func(cfg *Compiler) error

func WithContext

func WithContext(c types.Context) func(cfg *Compiler) error

func WithFinalRepository

func WithFinalRepository(r string) func(cfg *Compiler) error

WithFinalRepository Sets the final repository where to push images of built artifacts

func WithOptions

func WithOptions(opt *Compiler) func(cfg *Compiler) error

func WithPullRepositories

func WithPullRepositories(r []string) func(cfg *Compiler) error

func WithPushRepository

func WithPushRepository(r string) func(cfg *Compiler) error

WithPushRepository Sets the image reference where to push cache images

func WithRuntimeDatabase

func WithRuntimeDatabase(db types.PackageDatabase) func(cfg *Compiler) error

func WithSolverOptions

func WithSolverOptions(c types.BhojpurSolverOptions) func(cfg *Compiler) error

func WithTemplateFolder

func WithTemplateFolder(r []string) func(cfg *Compiler) error

Types

type Compiler

type Compiler struct {
	PushImageRepository      string
	PullImageRepository      []string
	PullFirst, KeepImg, Push bool
	Concurrency              int
	CompressionType          compression.Implementation

	Wait            bool
	OnlyDeps        bool
	NoDeps          bool
	SolverOptions   types.BhojpurSolverOptions
	BuildValuesFile []string
	BuildValues     []map[string]interface{}

	PackageTargetOnly bool
	Rebuild           bool

	BackendArgs []string

	BackendType string

	// TemplatesFolder. should default to tree/templates
	TemplatesFolder []string

	// Tells wether to push final container images after building
	PushFinalImages      bool
	PushFinalImagesForce bool

	GenerateFinalImages bool

	// Image repository to push to
	PushFinalImagesRepository string
	RuntimeDatabase           types.PackageDatabase

	Context types.Context
}

func NewDefaultCompiler

func NewDefaultCompiler() *Compiler

func (*Compiler) Apply

func (cfg *Compiler) Apply(opts ...Option) error

type Option

type Option func(cfg *Compiler) error

Jump to

Keyboard shortcuts

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