frontends

package
v0.46.1 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: 21 Imported by: 0

Documentation

Overview

Package frontends wires the volcano frontends subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy added in v0.45.0

func Deploy(ctx context.Context, deps cliruntime.Deps, opts DeployOptions) (*apiclient.Frontend, error)

Deploy packages and uploads one frontend, as "frontends deploy" does, and returns the frontend whose deployment started.

func New

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

New returns the frontends command.

func NewLocal added in v0.45.0

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

NewLocal returns the frontends command for the local development server, which builds and serves frontends but has no custom domains.

Types

type DeployOptions added in v0.45.0

type DeployOptions struct {
	Path          string
	Name          string
	AppRoot       string
	VariableScope string
	Variables     []string
	// ExcludeFiles are files to leave out of the upload, such as an env file
	// the caller deployed from inside the frontend's directory.
	ExcludeFiles []string
	// Out is required.
	Out io.Writer
}

DeployOptions configures Deploy. The fields up to Variables mirror the flags of "frontends deploy".

Jump to

Keyboard shortcuts

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