base

package
v0.8.17 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

func NewCLI

func NewCLI(console conslogging.ConsoleLogger, opts ...CLIOpt) *CLI

func (*CLI) AddDeferredFunc

func (c *CLI) AddDeferredFunc(f func())

func (*CLI) App

func (c *CLI) App() *cli.App

func (*CLI) BuiltBy

func (c *CLI) BuiltBy() string

func (*CLI) Cfg

func (c *CLI) Cfg() *config.Config

func (*CLI) CommandName

func (c *CLI) CommandName() string

func (*CLI) Console

func (c *CLI) Console() conslogging.ConsoleLogger

func (*CLI) DefaultBuildkitdImage

func (c *CLI) DefaultBuildkitdImage() string

func (*CLI) DefaultInstallationName

func (c *CLI) DefaultInstallationName() string

func (*CLI) ExecuteDeferredFuncs

func (c *CLI) ExecuteDeferredFuncs()

func (*CLI) Flags

func (c *CLI) Flags() *flag.Global

func (*CLI) GetBuildkitClient

func (cli *CLI) GetBuildkitClient(cliCtx *cli.Context) (c *client.Client, err error)

func (*CLI) GitSHA

func (c *CLI) GitSHA() string

func (*CLI) InitFrontend

func (cli *CLI) InitFrontend(cliCtx *cli.Context) error

func (*CLI) Logbus

func (c *CLI) Logbus() *logbus.Bus

func (*CLI) LogbusSetup

func (c *CLI) LogbusSetup() *setup.BusSetup

func (*CLI) SetAction

func (c *CLI) SetAction(action cli.ActionFunc)

func (*CLI) SetAppUsage

func (c *CLI) SetAppUsage(usage string)

func (*CLI) SetAppUsageText

func (c *CLI) SetAppUsageText(usageText string)

func (*CLI) SetAppUseShortOptionHandling

func (c *CLI) SetAppUseShortOptionHandling(use bool)

func (*CLI) SetBefore

func (c *CLI) SetBefore(before cli.BeforeFunc)

func (*CLI) SetCfg

func (c *CLI) SetCfg(cfg *config.Config)

func (*CLI) SetCommandName

func (c *CLI) SetCommandName(commandName string)

func (*CLI) SetCommands

func (c *CLI) SetCommands(commands []*cli.Command)

func (*CLI) SetConsole

func (c *CLI) SetConsole(cons conslogging.ConsoleLogger)

func (*CLI) SetFlags

func (c *CLI) SetFlags(flags []cli.Flag)

func (*CLI) SetLogbus

func (c *CLI) SetLogbus(logbus *logbus.Bus)

func (*CLI) SetLogbusSetup

func (c *CLI) SetLogbusSetup(setup *setup.BusSetup)

func (*CLI) SetVersion

func (c *CLI) SetVersion(version string)

func (*CLI) Version

func (c *CLI) Version() string

type CLIOpt

type CLIOpt func(CLI) CLI

func WithBuiltBy

func WithBuiltBy(builtby string) CLIOpt

func WithDefaultBuildkitdImage

func WithDefaultBuildkitdImage(image string) CLIOpt

func WithDefaultInstallationName

func WithDefaultInstallationName(name string) CLIOpt

func WithGitSHA

func WithGitSHA(sha string) CLIOpt

func WithVersion

func WithVersion(version string) CLIOpt

Jump to

Keyboard shortcuts

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