functions

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package functions wires the volcano functions subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployAll added in v0.45.0

func DeployAll(ctx context.Context, deps cliruntime.Deps, opts DeployAllOptions) ([]apiclient.Function, error)

DeployAll deploys every standard function in volcano/functions, as "functions deploy --all" does, and returns the functions whose deployment started. On error it still returns the ones started before the failure.

func New

func New(deps cliruntime.Deps) *cobra.Command

New returns the functions command.

func NewLocal

func NewLocal(deps cliruntime.Deps) *cobra.Command

NewLocal returns the functions command for local-mode projects.

func NewWithOptions added in v0.0.4

func NewWithOptions(deps cliruntime.Deps, options ...Option) *cobra.Command

NewWithOptions returns the functions command with custom function behavior.

Types

type DeployAllOptions added in v0.45.0

type DeployAllOptions struct {
	// ManifestPath names the volcano-config.yaml that declares function kinds
	// and variable scopes. Empty uses the default lookup.
	ManifestPath string
	// Batch uploads up to 100 functions per request, as the cloud command does.
	Batch bool
	// DurableFollows is set by a caller that deploys the durable functions
	// itself, so the output does not tell the user to.
	DurableFollows bool
	// Out and ErrOut are required.
	Out    io.Writer
	ErrOut io.Writer
}

DeployAllOptions configures DeployAll.

type Option added in v0.0.4

type Option func(*commandOptions)

Option configures function command behavior.

func WithInvokeTokenProvider added in v0.0.4

func WithInvokeTokenProvider(provider clifunction.InvokeTokenProvider) Option

WithInvokeTokenProvider configures the bearer token source for function invoke routes.

Directories

Path Synopsis
Package schedulers wires the volcano functions schedulers subcommands.
Package schedulers wires the volcano functions schedulers subcommands.

Jump to

Keyboard shortcuts

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