bootcompile

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package bootcompile implements the three manager-only boot-prompt compile commands. Authority, source selection and output addresses belong to the server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgent

func NewAgent(f *cmdutil.Factory) *cobra.Command

NewAgent compiles the Agent's source into its system memory.

func NewAppAgent

func NewAppAgent(f *cmdutil.Factory) *cobra.Command

NewAppAgent compiles an installed Agent's source for an App.

func NewWorker

func NewWorker(f *cmdutil.Factory, resolve func(*cobra.Command, string) (string, error), batch Batch) *cobra.Command

NewWorker resolves a worker name in the selected App before compiling it. With no worker argument it runs batch over the App's workers.

Types

type Batch added in v0.34.0

type Batch func(*cobra.Command, BatchOptions) error

Batch runs the batch compile.

type BatchOptions added in v0.34.0

type BatchOptions struct {
	All   bool     // compile every live worker, not only changed ones
	Only  []string // restrict to these workers (names, ids or URNs)
	Apply bool     // write; without it the run is a dry run
	// SetPointer is nil for the server default (set) and false for
	// --no-set-pointer, exactly as the single-worker compile sends it.
	SetPointer *bool
}

BatchOptions are the flags of `team worker compile` with no worker argument (cli#1463): compile the App's workers in one run.

Jump to

Keyboard shortcuts

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