Documentation
¶
Overview ¶
Package functions wires the volcano functions subcommands.
Index ¶
- func DeployAll(ctx context.Context, deps cliruntime.Deps, opts DeployAllOptions) ([]apiclient.Function, error)
- func New(deps cliruntime.Deps) *cobra.Command
- func NewLocal(deps cliruntime.Deps) *cobra.Command
- func NewWithOptions(deps cliruntime.Deps, options ...Option) *cobra.Command
- type DeployAllOptions
- type Option
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 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.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package schedulers wires the volcano functions schedulers subcommands.
|
Package schedulers wires the volcano functions schedulers subcommands. |
Click to show internal directories.
Click to hide internal directories.