options

package
v0.41.1-geaaru Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright © 2022-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

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

func WithSolverOptions

func WithSolverOptions(c config.LuetSolverOptions) 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   config.LuetSolverOptions
	BuildValuesFile []string
	BuildValues     []map[string]interface{}

	PackageTargetOnly bool
	Rebuild           bool

	BackendArgs []string

	BackendType string

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

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